---
title: "A tracking tag is added twice"
description: "The same analytics ID or outside script is loaded more than once, which can count every visit and every sale twice."
url: https://ursy.com/issues/tracking-tag-duplicated/
updated: 2026-11-29T21:57:25+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/tracking-tag-duplicated/
---

# A tracking tag is added twice

> The same analytics ID or outside script is loaded more than once, which can count every visit and every sale twice.

The same analytics ID or outside script is loaded more than once, which can count every visit and every sale twice.

## Why it matters {#why-it-matters}

When the same [Google](https://ursy.com/wiki/google/) Analytics ID is on the page twice, for example once from a plugin and once from a pasted snippet, each page view and each purchase can be counted twice. Reports then show more traffic and sales than you really had, and decisions are made on wrong numbers.

A script loaded twice also costs download time and can run its code twice.

## How to fix it {#how-to-fix-it}

Find where each copy comes from: a plugin, the theme, a tag manager or code pasted into the header. Keep one, usually the tag manager or a single plugin, and remove the rest.

Check again with the Tracking Checker, and compare your analytics numbers for a week before and after the change.

### What the problem looks like {#what-the-problem-looks-like}

```
<!-- Added by an analytics plugin -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<!-- Pasted into the theme header years ago -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
```

The same measurement ID loaded twice, so page views and sales can be counted twice.

### What it looks like fixed {#what-it-looks-like-fixed}

```
<!-- One Google tag, from one place only -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
```

Keep one source, usually the tag manager or a single plugin, and remove the rest.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
Help me remove duplicate tracking from [your website address], built with [your platform, e.g. WordPress with Site Kit]. A checker says the same analytics ID or outside script loads more than once on [the page address], which can count every visit and sale twice. First, read the page source (or ask me to paste it) and list every copy of each analytics ID and repeated script, and what most likely adds it. If I use a tag manager, ask me to list its tags and triggers. Explain plainly which events, such as page views and purchases, are counted twice. Then tell me which single source to keep and give me the exact steps to remove the others. Rules: keep exactly one working copy, keep purchase and conversion events firing once, keep the consent settings, back up first, and change nothing else. Tell me how to confirm in the analytics real-time or debug view. Finally, tell me to re-check with the URSY.com Tracking Checker at ursy.com/tracking-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Check analytics plugins, header and footer code plugins, theme options and your tag manager. Keep one of them for each tag.

### Shopify {#shopify}

Check the Google channel, apps, customer events (pixels) and code pasted into theme.liquid. Remove the copies you do not need.

### A hand-made site {#a-hand-made-site}

Search your templates for the measurement ID and keep one copy in the shared head template.

## Check it is fixed {#check-it-is-fixed}

Run the Tracking Checker again: each analytics ID and outside script should load only once. In the analytics real-time view, one page view should count once.

## Questions {#questions}

### Will my old reports be corrected? {#will-my-old-reports-be-corrected}

No. Past data stays as it was recorded. Make a note of the date of the fix so you can compare fairly.

### Does a tag manager plus a plugin count twice? {#does-a-tag-manager-plus-a-plugin-count-twice}

If both send page views to the same measurement ID, yes. Keep one of them for that ID.

---

**Cite this page:** A tracking tag is added twice. URSY.com. Updated 29 November 2026. https://ursy.com/issues/tracking-tag-duplicated/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[A tracking tag is added twice](https://ursy.com/issues/tracking-tag-duplicated/), URSY.com`. One section: add its id, for example https://ursy.com/issues/tracking-tag-duplicated/#section-id (every heading above has one).

Section links: https://ursy.com/citations/1/#p-5790 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/tracking-tag-duplicated/
- As JSON: https://ursy.com/issues/tracking-tag-duplicated/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
