Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Please no generic chat gpt copy pastes please.... someone who is willing to come back to the comment and respond not just post a solution that doenst work and leave.
I installed the facebook instagram app. I've gone to facebook and checked the activity it did not show anything. So I used the manual code ship and added to theme.liquid but it only shows pageview. When I re-run facebook troubleshooter I get pageview and view content.
I'm missing add to cart/ checkout/ purchase etc. How do I add these? I assumed it would have been implemented automatically by the facebook app in Shopify, but much like GA4 integration it doesn't work as expected and I need to manually add code.
How do I add the code for each event to fire on each page?
Hi svalkyrie23,
Thanks for your query.
Facebook and Instagram app supposed to track all these events automatically.
As you are looking for manual integration, the best way would be Google Tag Manager GTM. Using GTM you can configure every ecommerce standard and custom events like view item, add to cart, checkout, purchase, form submission, click tracking and so on.
Tracking with GTM consist of 4 major steps:
1. Custom Datalayer setup in snippet or custom pixel
2. Data layer variables creation like (value, currency, item name, item id,)
3. Trigger for the each event
4. Tag creation and assigning the variables as event parameter and trigger for firing the event tag.
For Facebook Conversion API you can configure Server side tracking with server container. Which ensures the better data accuracy.
Feel free to ask if you have any questions.
Thanks
Hey @Sam_Mahmud ! You were actually helping me a while back for GA4 setup which I got working. I will reach out to you on this, thank you!!
Help - anyone else able to provide datalayer / GA setup for this in depth please?
Im surprised so many people have it implemented but so little documentation on it even on youtube, it’s as if no one uses facebook pixel?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025