How to fix duplicate tracking in GA4
During install, disable the Google Sales Channel in Shopify. If our audit finds more Google Analytics tracking still active, follow this guide to remove it.
Littledata's Shopify to GA4 connection tracks pageviews, shopping events and purchases for you. You don't need any other GA4 tags or scripts on your store. This page shows you how to check for duplicate tracking and remove the old setup.
Why duplicate pageviews are a problem
If you had GA4 tracking before you added Littledata, GA4 may now get two pageviews for every page load. This doubles your pageview count. It also skews other metrics, like engagement rate, views per session and key event rates.
Check for duplicate pageviews
Install a debugger extension
Install a GA4 debugger extension in your browser, such as Google Analytics Debugger for Chrome.
You can also check with Google Tag Assistant. Connect it to your store and look for more than one pageview for a single page load.

Where duplicate tracking comes from
To fix duplicates, remove every other way GA4 is installed on your store. The most common sources are:
Shopify's Google & YouTube sales channel
A GA4 tag in Google Tag Manager (GTM)
gtag code added directly to your store theme
A custom web pixel
Third-party apps
Disconnect Google Analytics in the Google & YouTube channel
Pause GA4 tags in Google Tag Manager
If you use GTM, check for an active Google tag (GA4 configuration tag) or GA4 event tags, and pause them.
Check these tags even if their Measurement ID is different from the one Littledata uses. It could be a different data stream sending data to the same property.
For detailed steps, see How to disable pageviews in Google Tag Manager.
Remove gtag code from your theme
Google's gtag script may have been added directly to your Shopify theme, usually in the theme.liquid file. Ask your developer to find and remove it.
Remove custom web pixels
Shopify lets you add custom web pixels to your store, and some of these load gtag. In your Shopify admin, check Settings > Customer events for any pixel that sends data to Google Analytics. See Shopify's guide on how to disconnect a custom pixel.
Check third-party apps
Some Shopify apps send data to GA4 on their own. Look for apps with words like "tracking", "GA4", "Google Analytics" or "revenue" in the name. Uninstall them, or turn off their Google Analytics tracking feature (see the app's documentation).
Related articles
Last updated
Was this helpful?


