Sunny
Sunny

Reputation: 31

Facebook pixel giving error of ViewContent and pageView

I am getting pageView and ViewContent error of facebook pixel on the product page of my e-commerce website. It is working fine on localhost and other pages of website, but showing error on product page. My website is in python and facebook code is placed into a common page and included on every enter image description herepage.

fbq('track', 'ViewContent', {
                    content_type: 'product',
                    content_ids: ['GPROD'+'{{ src.sku }}'],
                    content_name: '{{ product_obj.category_name }}',
                    content_category: '{{ product_cat_parents|last }}',
                    value: Math.round(parseFloat('{{ src.pricing.tax_exclusive_price_moq }}')),
                    currency: 'INR'
                });

Upvotes: 0

Views: 1006

Answers (1)

Nitish Chauhan
Nitish Chauhan

Reputation: 73

Its not a problem on code end. Your Facebook pixel is not activated. Just Goto Facebook and try to activate it.

Once activated init the facebook pixel before tracking code.

fbq("init", FACEBOOK_PIXEL);

Upvotes: 0

Related Questions