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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024