View content firing 2 times on product page

BrijBhushanGarg
Shopify Partner
4 0 0

Hi guys,

 

I noticed that "View content" event is firing two times on the product pages.

 

1st view content has content ID as "Product Name - Variant Name" and 2nd has content ID as "Product Name".

 

Screenshot is below. URL in screenshot is https://houseofekam.com/products/pink-bandhani-curtains-1

 

BrijBhushanGarg_0-1697688337249.png

 

Can anyone please help decode and resolve this?

 

Regards,

Brij

Replies 3 (3)

sahilsharma9515
Shopify Partner
601 66 97

Hi @BrijBhushanGarg 

 

This is mostly because you manually added an event for your page, while your Theme automatically fired event before.

 

If you have manually added the event in the theme then you need to remove that, and this will solve your issue.

 

If you need any assistance then please feel free to ask the same.

 

Hopefully it will help you. If yes then Please hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


BrijBhushanGarg
Shopify Partner
4 0 0

Hi. Can you help identify if event is added to the theme?

 

I dont recollect doing so. Also, I have removed the pixel code from theme.liquid

sahilsharma9515
Shopify Partner
601 66 97

Hi @BrijBhushanGarg 

 

You need to check your code files and remove all the extra instances of facebook pixel that has been added in theme.

 

If you are only facing this issue in the product page then you need to look into your product.liquid file itself.

 

If you need any assistance then please feel free to ask the same.

 

Hopefully it will help you. If yes then Please hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️