> For the complete documentation index, see [llms.txt](https://help.littledata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.littledata.io/integrations/shopify-to-google-analytics/fix-duplicate-tracking-ga4.md).

# 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.

{% hint style="info" %}
During installation, the Littledata app asks you to disable other Google Analytics tracking apps, including Shopify's Google & YouTube sales channel. You confirm this by ticking **I have disabled other tracking apps**. If you still see duplicates after installing, use this guide.
{% endhint %}

### 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

{% stepper %}
{% step %}

### Install a debugger extension

Install a GA4 debugger extension in your browser, such as [Google Analytics Debugger](https://chromewebstore.google.com/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna) for Chrome.
{% endstep %}

{% step %}

### Open DebugView in GA4

In Google Analytics, click **Admin** (the gear icon in the bottom left). Under **Data display**, click **DebugView**. It will be empty until it gets debug data.
{% endstep %}

{% step %}

### Open your store with the debugger on

In a new tab in the same browser, open your Shopify store. Click the extension icon to turn the debugger on, then reload the page.
{% endstep %}

{% step %}

### Look for two pageviews

Go back to DebugView. If you see two `page_view` events at the same moment for one page load, GA4 is getting duplicate pageviews.

![duplicate pageviews in ga4 debugger](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-46e864ff5c5fb0e9996470ae71befa410ea5ebd7%2Fduplicate-pvs.png?alt=media\&token=2ec3acf7-1e61-4bc6-af91-05c86503de43)
{% endstep %}
{% endstepper %}

You can also check with [Google Tag Assistant](https://tagassistant.google.com/). Connect it to your store and look for more than one pageview for a single page load.

![tag-assistant-debugging](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-0f9467262a481b7b9353ad9df782cc4e932f25b5%2Fscreenshot-2025-01-27-at-14.40.33.png?alt=media\&token=f0df0ae4-5f0e-4792-b05c-dc5b6ff91ae9)

{% hint style="info" %}
A sudden rise in views per session or a very high engagement rate can also point to duplicate pageviews. Always confirm with a debugger before you change anything.
{% endhint %}

### Where duplicate tracking comes from

To fix duplicates, remove every other way GA4 is installed on your store. The most common sources are:

1. Shopify's Google & YouTube sales channel (the connected GA4 property and any manually added Google tags)
2. A GA4 tag in Google Tag Manager (GTM)
3. gtag code added directly to your store theme
4. A custom web pixel
5. Third-party apps

#### Remove Google Analytics from the Google & YouTube channel

The Google & YouTube sales channel can send data to GA4 in two ways. Check both: removing one doesn't remove the other.

**1. The connected Google Analytics property**

{% stepper %}
{% step %}

### Open the Google & YouTube channel

In your Shopify admin, go to **Sales channels** > **Google & YouTube**.

![Shopify sales channel](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-91d023be72fca7fe8f51d9495312e71cb7d077d5%2Fscreenshot-2023-08-18-at-4.50.40-pm.png?alt=media\&token=8143e130-6c8f-4dd1-ae52-08674f51200c)
{% endstep %}

{% step %}

### Disconnect the Google Analytics property

Find the Google Analytics property section and click **Disconnect**.<br>

![Disconnect duplicate tracking](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-318e148406b81db9970fdacad1b3723a0a05d8f9%2Fscreenshot-2023-08-18-at-4.55.21-pm.png?alt=media\&token=6e7c7357-9c86-4659-b207-41f5608347b8)
{% endstep %}
{% endstepper %}

**2. Manually added Google tags**

Even when the Google Analytics section shows as **Inactive**, the channel can still load a GA4 tag that was added manually or kept during Shopify's tag migration. This tag sends its own pageviews, shopping events and purchases on top of Littledata's.

{% stepper %}
{% step %}

### Open the data sharing settings

In **Sales channels** > **Google & YouTube**, go to **Settings** > **Data sharing and tag management**.
{% endstep %}

{% step %}

### Find the Google tags

Under **Additional conversion measurement settings**, open **Google tags**.
{% endstep %}

{% step %}

### Remove the GA4 tag

Under **Manually added Google tags**, find any tag with a GA4 Measurement ID (it starts with `G-`) and click the trash icon to remove it.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If either of these stays active, GA4 will get duplicate pageviews and ecommerce events.
{% endhint %}

#### 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](https://support.google.com/analytics/answer/12270356) sending data to the same property.

For detailed steps, see [How to disable pageviews in Google Tag Manager](https://help.littledata.io/advanced/troubleshooting/how-to-disable-pageviews-in-gtm).

#### 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](https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/manage#disconnect-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

* [How it works: Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4)
* [How to disable pageviews in Google Tag Manager](https://help.littledata.io/advanced/troubleshooting/how-to-disable-pageviews-in-gtm)
* [Google Tag Manager FAQ](https://help.littledata.io/integrations/shopify-to-google-analytics/google-tag-manager-faq)
* [FAQ: Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics/faq-shopify-to-google-analytics)
