Facebook Pixel Does Not Show Add To Cart Event

Solved

Facebook Pixel Does Not Show Add To Cart Event

kmacgillivray
Tourist
6 0 2

Hi folks! 

 

My facebook pixel is not tracking add to carts. I am using the latest Dawn theme. I have already disabled drawer/popup cart and am just using the page option, but it is still not firing. 

 

Following directions from this page however, I cannot find type="submit" in the main-product.liquid file in order to add the code onclick="fbq('track', 'addtocart');". 

Is it possible this has moved in the 2023 version?

 

Thanks.

Accepted Solution (1)

sahilsharma9515
Shopify Partner
1079 132 203

This is an accepted solution.

Hi @kmacgillivray Yes it has been moved and you can find the submit button in card-product.liquid, you may add the onclick code in this file.

 

Hopefully it will help you. If yes then Please don't forget 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! ❤️


View solution in original post

Replies 3 (3)

sahilsharma9515
Shopify Partner
1079 132 203

This is an accepted solution.

Hi @kmacgillivray Yes it has been moved and you can find the submit button in card-product.liquid, you may add the onclick code in this file.

 

Hopefully it will help you. If yes then Please don't forget 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! ❤️


kmacgillivray
Tourist
6 0 2

Thank you!! 

sahilsharma9515
Shopify Partner
1079 132 203

Welcome @kmacgillivray , If you need any other assistance then please feel free to ask the same.

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! ❤️