All things Shopify and commerce
I have connected GA4 using Shopify default custom pixel. I have also connected GTM by adding GTM tracking code in theme.liquid file. I have notice the debug view it's tracking duplicate page_view event. Do anyone know how can I prevent this ? I want to connect both GA4 and GTM because I am tracking some custom event there.
This is the intended behaviour of Google. Essentially anytime gtag.pageview event is fired(which is fired for both GTM and GA4) GA4 will consider it as a page view.
There is a way to block such duplicate events in GA4 itself. Navitate to:
Admin>Data collection and modification>Data Streams
Click on your data stream,
Under Google Tag, click on Configure tag Settings
Click on the Google Tag
Under Additional Settings, toggle on the "Ignore duplicate instance of on-page configuration"
Thanks for your response!
This setting is already enable but still showing duplicated page_view event.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025