Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
When we try to use the custom pixel for our GA4, it automatically sends the page_location that includes some information about the sandbox. That's why we can't see the real page location in GA4. This is weird. The documentation says to turn off the automatic page tracking to send that manually. But right now in GA4, it is impossible to stop automatic page tracking.
Even the GA4 setup with custom pixels shows most of the user acquisition as (not set) and the engagement time for pages doesn't appear properly.
Need a solution for all these so we can run the tracking through custom pixels smoothly.
Thanks.
Have the same issue where engagement time doesn't appear and shows as 0. Made some changes and sending send_page_view false in Config tag and sending separate page view tag, which helped us see the user_engagement events finally, however it still shows 0.
What changes you made to see the user_engagement event in GA4? I am facing the same issue, sending a separate page view tag based on the Shopify page_viewed event and setup send_page_view to false in Google Tag, firing on All Pages. Are you able to see engagement time in GA now?
Unfortunately not. I've tried many stuff but couldn't get the engagement time going. One other thing I'll try which is a long shot is that we have duplicate dataLayer, meaning one is still on top where the Consent Management Platform creating and one dataLayer in custom pixel. I'll try removing the one from top to see if that'll change things. I'd appreciate if you can figure this out and update here, I'll do the same if so.
I am testing in the test store to see if the custom pixel works (to migrate GA4 for a client from google youtube app to gtm). Consent banner is not enabled. Hence no duplicate data layer.
disable default page view tracking via below code:
gtag('config', TAG_ID, {'send_page_view': false});
There is other reasons for traffic appearing as "not set". To narrow them down be sure make the following changes.
I have the same issue
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024