Shopify Custom Pixel
What it does:
→ Connects with GTM.
→ Subscribes to Shopify events.
→ Pushes e-commerce data layers.
It makes sure you have data in GTM for:
→ Recommended GA4 events
→ Enhanced Conversions
→ Dynamic Remarketing
→ New Customer Data
→ Cart Data
It's fully optimized for GA4 and Google Ads.
I spent quite some time refining the code.
But I'm always looking for feedback on data layer formatting, variables, etc.
If you have any questions or need some additional support, let me know.
Cheers,
Luc
P.S. Keep in mind that Shopify Custom Pixel code works with sandboxed JavaScript - which means that you won't be able to debug the Custom Pixel implementation using the GTM preview mode. Instead, use browser logging to check whether your GTM setup works.
You'll get the Custom Pixel code to start pushing a GA4 / Google Ads optimized data layer to your GTM web container.