Facebook Pixel not tracking events other than pageview

Facebook Pixel not tracking events other than pageview

svalkyrie23
Explorer
87 2 12

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.

 

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?

Replies 3 (3)

Sam_Mahmud
Shopify Partner
295 9 18

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

 

purchase datalayer.pngdatalayer variables.pngTags For CAPI.pngAll ecommerce events in pixel.pngevent matching for purchase event.png

 

Your COFFEE TIP! Can Create something incredible!
Require Assistance with website design or enhanced conversion tracking Via Google Tag Manager GTM ?
sam.analyst4@gmail.com! or WhatsApp!
Solved? accept it as solution with like
svalkyrie23
Explorer
87 2 12

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

svalkyrie23
Explorer
87 2 12

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?