when people add items to their cart my Facebook Pixel is not firing this event.
When the initiate checkout, the Facebook Pixel catches up again.
I already read some posts in this community and every time they talk about the "ajax-cart-template.liquid". I don't have that liquid either. I wanted to add the "addtocart" event manually but don't seem to find the path of my cart pages to paste it into the <body> section.
I have plugins installed like
or Upsell Plugins like "Candy Rack – One Click Upsell"
and "Best Custom Product Options by Relentless"
This is Rae from Shopify. Thanks for reaching out about the 'AddToCart' event on your pixel, and welcome to the Shopify Community.
In order to help investigate this further, can you please confirm how you added your pixel to your Shopify site? Did you code the pixel in, or add it to the 'Online Store > Preferences' section of your admin by following these steps?
Also, what theme are you using at the moment? You can find the name of your theme under 'Online Store > Themes' in your admin.
If your theme has a pop out cart, or a 'drawer' cart, this could be why the event is not firing. These cart styles don't exist as their own page, but instead, they appear on the side of the site and can be popped open and close, without the page switching, or the URL changing. Due to this, the 'AddToCart' event may not fire when using this type of cart.
However, depending on which theme you're using, you may be able to edit the cart to be a 'page' style instead. To check if this is the case, open your Shopify admin and click on 'Online Store > Themes' and select 'Customize' on your live theme. In the theme editor, click 'Theme Settings' at the top lefthand side of the page. Then, if you see a 'Cart' section, select this. In this section, check to see whether your theme offers the ability to switch the cart from a pop out/'drawer' to a 'page' style instead. If so, please go ahead and make this change. Once that's done, you can follow these steps to test your pixel again to see if the 'AddToCart' event fires correctly.
Please keep me posted on how this goes. If you're still having troubles, just reply to me here with the name of your theme and your store's URL and I'll be glad to take a closer look on my end.
This is quite strange that you are not getting Add to cart recorded into your Fb pixel.
Just want to ask you that have you installed the pixel by hard coding it into your theme file or have you installed it from "Online Store >> Preferences"
Because if you will install it by hard coding, then you will have to do it for all your files but if you go for installing from preferences setting, then Add to cart always gets recorded.
Thanks for your answers.
So I am using the Debut Theme. I have made a couple of own tweaks to it and gone into the code.
When it comes to the pixel I installed it under "Online Store > Preferences".
Regardings this: "In the theme editor, click 'Theme Settings' at the top lefthand side of the page. Then, if you see a 'Cart' section, select this."
I dont see a "Cart" Section - but I know that when I add something to my cart it redirects me to another page. Not a pop up or similar. The only popup there is on selected products once you add them it shows a notification in the top right corner.
Now it says that Facebook registered 1 AddToCart within the last 7 days when Shopify registered more than 20 - My main traffic is from Facebook Marketing Ads so this is still broken I would say.
Please provide us your website url so that i can check and tell you exact issue.
thanks for taking the time.
The website is: www.jubela.de
The thing is that I edited the code from time to time myself to fit to my needs. I have basic html/coding knowledge so I was able to change some stuff without help. Now it comes back haunting me ^^
I wanted to follow up on this thread to check in on your question, make sure everything has been resolved, and confirm that your Facebook pixel is now working correctly.
I checked out the URL that you shared above, and when I visited your site and added something to my cart, the 'AddtoCart' event fired correctly on my end. With this in mind, is your pixel now consistently and accurately firing this event?
If you're still noticing issues with the pixel, or if there's anything else I can assist with, please let me know and I'll be happy to help out further.
Hey @Rae ,
I have a similar problem, not all events on the product page get recorded. While reading through your earlier responses, I noticed you talked about the page/cart selection part. Not sure if that could be the problem, but I made a second product section in my code, so I could edit the product page code separately for different products. The main product I sell on the store also uses this customized product page.
Could it be that the facebook pixel doesn't track the products that use the customized product page template? And if yes, how do I relink those products to the pixel? I got a tutorial on relinking pages with the pixel from a fb staff member, but even with that I somehow can't figure out how to do it -.-
I would really appreciate if you could help me with that. My store url is www.chromotech.de. Thank you so much!
Thank you for reaching out about this and sharing these details.
To confirm, is your Facebook Pixel ID added to your Shopify admin under 'Online store > Preferences > Facebook Pixel', as mentioned in these steps? Or, is the pixel coded in to your theme?
Also, can you please confirm which events on your product page aren't being recorded? The standard events that can be tracked with a Facebook pixel are mentioned here. For example, 'ViewContent' is one of the events that may occur on a product page. Is this event being tracked on your product pages currently?
Once I have these details, I'll be glad to help take a closer look into this.
I hope to hear back from you soon!
thanks for getting back to me. I installed the pixel under preferences > facebook pixel, it's not manually added to the code.
For the events, on my product and home page, no event seems to get triggered. When I checked with the facebook pixel helper, the pixel first started firing when I reached the cart, there it added the view content event.
Right now my events do get tracked though, I installed an app called win ads, which lets you add multiple pixels to your store. The app now tracks the events that previously didn't get tracked. So when you take a look at the store from now on, it will show the events getting triggered. If possible I would like to have the events tracked also without the app, because it's rather expensive to use.
Should I uninstall it for now, so you can take a look at the issue?
Also, I checked to see whether the theory with the multiple product pages was right, and indeed, when I reverted back to a theme duplicate where I didn't have the multiple product templates, the pixel was firing normally. So the problem seems to come, atleast in part, from the several different product templates I use on the store. I used the first half of this tutorial for adding the second product page:https://community.shopify.com/c/Shopify-Design/Product-pages-Get-customization-information-for-produ...
Reverting all products back to the original product template doesn't fix the problem though. Once I select a different template for a product, the pixel stops firing permanently on all home and product pages across the store.
I hope that was clear, and thank you for your help!