# How to fix duplicate tracking in GA4

Littledata's Shopify to Google Analytics 4 (GA4) connection automatically tracks user behavior including page views, shopping events, purchases and more. You do not need any further tags or scripts on your page for accurate data in Google Analytics.

### Check for duplicate pageviews

If you had any tracking prior to adding Littledata's connection it's important to check whether your Google Analytics still receives duplicate pageviews.

Apart from doubling pageview count, duplicate pageviews will skew other GA4 metrics including bounce rate, engagement, views-per-session, key event rates etc.

To determine whether your property receives duplicate pageviews you should debug your website GA4 connection: a) Install the debugger plugin on your browser - one of the most popular is [Google Analytics Debugger](https://chromewebstore.google.com/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna?hl=en\&pli=1) b) Go to Google Analytics Admin (Gear icon in bottom left corner) and open Debug View. It will be blank initially, because its not receiving any debug hits c) In a new tab of the same browser open your Shopify store, and turn on the debugger plugin by clicking on the plugin icon

![how to turn on ga4 debugger](/files/1lW8523JsF4MFjqzt3Nu)

When the page loads, if you see 2 pageviews with no time interval in between, just like on the screenshot below, it's proof that your GA4 receives duplicate pageviews.

![duplicate pageviews in ga4 debugger](/files/OUCQSDy8bNFWEruhwpXJ)

Other signs that you are receiving duplicate pageviews can be increased Views-per-session or a very low bounce rate (less than 20%). However, it's always advised to confirm such doubts by debugging using this procedure.

Additonally, you can also check for double pageviews using the [Tag Assistant:](https://tagassistant.google.com/)

![tag-assistant-debugging](/files/VrNvIngkDFQTdojzTcHc)

### Sources of duplicate tracking

To solve the problem of duplicate pageviews, you need to disable any other way of GA4 tracking on your website. These are the most common ways that legacy GA4 installation lingers on:

1. Google & YouTube Sales Channel in Shopify
2. GA4 tag in Google Tag Manager
3. gtag code directly in your store theme
4. Custom web pixel
5. Third party apps

### Disable Google Sales Channel in Shopify

During Littledata's installation process, you will be prompted to disable Shopify's Google Analytics tracker from the Google Sales Channel.

If our audit detects that the original Shopify tracking is still active, follow these steps to remove it.

1. Go to your Shopify store admin and **Sales Channels > Google & YouTube.**

   ![Shopify sales channel](/files/0AqIqJnYVOZZhx5VVMZE)
2. Click **Disconnect** next to the 'Google Analytics' property.

   ![Disconnect duplicate tracking](/files/2UAgphTxW1KvKTJyLWtc)

If you don’t disconnect the Google Analytics 4 property from the Google Channel it will trigger [double pageviews and ecommerce events in GA4](https://blog.littledata.io/2019/05/27/is-google-analytics-accurate).

### Disable tags in Google Tag Manager (GTM)

If you use GTM you should check whether you have an active GA4 configuration tag and pause it.

![pause ga4 configuration tag in gtm](/files/ummj1ZdGdbbGd4R2AN0B)

Even if the GA4 Measurement ID does not match the one that Littledata is connected to, it could be a [different data stream](https://support.google.com/analytics/answer/12270356) feeding into the same web property.

For a more detailed instruction, make sure to check our guide on [how to disable pageviews in GTM](/advanced/troubleshooting/how-to-disable-pageviews-in-gtm.md).

### Gtag code directly in your store theme

Google's gtag script might have been added directly to the Shopify `theme.liquid` file.

For this particular scenario you need to check with your developer, this tutorial won't go into detail due to technical complexity.

### Custom web pixel

Shopify allows you to add a 'web pixel' to your storefront, and this might include the gtag tracking - similar to above.

Here's how to [remove custom web pixels](https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/manage#disconnect-custom-pixel)

### Third Party Apps

There are quite a few Shopify Store Apps which could be sending data to your Google Analytics 4 properties, our recommendation is to always keep an eye out for apps which have the following keywords in the name: "Tracking", "GA4/Google Analytics 4", "Revenue" etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.littledata.io/integrations/shopify-to-google-analytics/fix-duplicate-tracking-ga4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
