Hello @NolkOS ,
I am Gina from the flareAI app helping Shopify merchants get $6Million+ in sales from Google Search, on autopilot. Hope you are having a good day.
If you set up both a Google Tag Manager (GTM) tag on your theme and Shopify’s Google Analytics 4 (GA4) tracking, it can potentially result in duplicate sessions being counted.
GTM Tag
When you install GTM on your theme, it allows you to add various tracking tags, including GA4. If you’ve already configured GA4 within GTM, this means that GTM is sending pageview and event data to GA4 directly.
Shopify GA4 Tracking
Shopify provides built-in integration with GA4, allowing you to enable GA4 tracking by simply entering your GA4 tracking ID in the Shopify admin. When enabled, Shopify will automatically send relevant data to GA4, such as pageviews, transactions, and events.
If you have both the GTM tag and Shopify’s GA4 tracking enabled simultaneously, both mechanisms will be sending data to GA4, potentially leading to duplicate sessions being counted. For example, a single pageview could be recorded twice—once through GTM and once through Shopify’s tracking.
The best practice here is, you should choose one method for tracking GA4 data consistently.
-
GTM Only
If you’ve set up GA4 tracking within GTM, you can disable the built-in GA4 tracking in Shopify. Go to your Shopify admin, navigate to “Settings” > “Online Store” > “Preferences,” and remove the GA4 tracking ID. This way, you’ll rely solely on the GTM tag to send data to GA4. -
Shopify GA4 Only
If you prefer to use Shopify’s built-in GA4 tracking, you should remove the GTM tag from your theme. You can do this by removing the GTM code snippet or any references to GTM in your theme’s code.
By choosing one method and ensuring only one tracking mechanism is active, you can prevent duplicate session counting and maintain accurate analytics data in your GA4 reports.
Hope this helps
Gina