Duplicate page_view in GA4

Duplicate page_view in GA4

Guest_user
Shopify Partner
2 0 0

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.

page-view.png

 

 

Replies 2 (2)

Sushant
Shopify Partner
77 2 16

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"

 

4.png3.png2.png1.png

 

Any Likes and Accept as Solutions are greatly appreciated✌ Having trouble? Hire us! https://seventhtriangle.com/
Guest_user
Shopify Partner
2 0 0

Thanks for your response!

 

This setting is already enable but still showing duplicated page_view event.