# Fix duplicate conversions

- Check 41.13 · Tracking and analytics setup · Critical
- Source: https://checklist-seo-geo.com/en/tracking-analytics-setup/fix-duplicate-conversions
- Spot conversions and purchases counted twice in GA4, Tag Manager, Matomo or Google Ads, find the cause and remove it for good.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/tracking-analytics-setup/fix-duplicate-conversions.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

A duplicate conversion is a single real action (quote request, purchase, sign-up) counted two or more times by the analytics tool. The causes are almost always the same: a tag installed twice, two events marked as goals for the same action, a confirmation page reloaded, a trigger that fires several times. This task consists of detecting the duplicate, identifying its cause and removing it. Once it is done, the tool's conversions stay equal to or slightly below the real figures from the back office.

## Why it matters

Duplicates inflate results silently. A conversion rate that doubles after a redesign looks like a win; a page that “converts” a lot because its confirmation gets reloaded attracts effort it does not deserve. In advertising, conversions counted twice distort Google Ads automated bidding, which optimizes on a false signal.

Duplicates are not corrected after the fact: GA4 does not delete events already received, and changes to the counting method only apply to future data. The later a duplicate is spotted, the longer the unusable period.

## What it improves

- **KPI reliability**: conversion rate and revenue comparable from one month to the next. See [track conversions and conversion rate](https://checklist-seo-geo.com/en/seo-kpis/track-conversions-conversion-rate).
- **Channel comparison**: SEO, AI assistants and campaigns are judged on the same basis.
- **Paid campaigns**: bids based on real conversions.
- **Trust**: a report that matches the back office gets used; a wrong report gets abandoned.
- **Rankings**: no effect.

## How to check

**1. Compare with reality.** Over a full month, put the tool's key events or purchases side by side with the real requests or orders from the CRM or back office. A tool figure higher than the real one is almost certainly a duplicate.

**2. Look for repeated IDs (purchases).** In GA4, `Explore > Free form`: rows “Transaction ID”, values “Event count”, filter “Event name” exactly matches `purchase`. Sort by event count, descending: any ID at 2 or more is a duplicate (GA4 deduplicates some of them, but not hits sent with different IDs).

**3. Compare ratios.** In `Reports > Engagement > Events`, compare the number of conversion events with the number of users who triggered them. A ratio close to 2 for an event that should happen once (a quote request) reveals a systematic duplicate.

**4. Watch live.** With [Tag Assistant](https://tagassistant.google.com/), perform the action once. Warning signs: two Google tags with the same ID, two `page_view` events on load, two conversion events for a single submission.

**5. Inspect the network.** Browser developer tools, Network tab, filter `collect`: each GA4 event should appear in a single request to `google-analytics.com` (or your server-side tagging domain).

## How to implement

### Step 1 — Identify the cause

| Symptom | Likely cause | Fix |
|---|---|---|
| All page views and all events doubled | GA4 tag installed twice: code in the theme plus Tag Manager, or plus an extension (Site Kit, Shopify channel) | Keep a single installation (step 2) |
| One conversion doubled, the rest normal | Two events marked as key events for the same action (`form_submit` and `generate_lead`, or source event and created event) | Remove the star from one of them (step 3) |
| Irregular duplicates, especially on mobile | Thank-you or confirmation page reloaded, back button, restored tab | Server-side or browser-side guard (step 4) |
| Purchases doubled with different IDs | Transaction ID generated on page load, or two purchase sources | Stable order ID, a single source (step 5) |
| Conversion doubled in Tag Manager | Two triggers on the same tag, or tag fired on both `gtm.js` and `gtm.dom` | A single, precise trigger (step 6) |
| Duplicates in Google Ads only | Imported GA4 key event and Google Ads conversion tag, both set as primary conversions | A single primary action (step 7) |
| Duplicates on a React, Vue or Next.js site | Page view sent both by enhanced measurement (browser history) and by the code | A single method (step 6) |

### Step 2 — Keep a single tag installation

List every possible source:

- `gtag/js?id=G-…` code in the theme or layout (`header.php`, `theme.liquid`, `app.blade.php`, `layout.tsx`);
- Tag Manager container with a Google tag;
- extensions: Site Kit by Google, ecommerce extension, cookie extension that also injects the tag;
- native integrations: Shopify's Google & YouTube channel, a site builder's “Google Analytics” field.

Quick search in a page's source code:

```bash
curl -s https://example.com/ | grep -oE "G-[A-Z0-9]{6,12}|GTM-[A-Z0-9]{4,10}" | sort | uniq -c
```

The same `G-…` ID cited in two separate code blocks, or a hard-coded `G-…` while a `GTM-…` container also holds a Google tag, points to a double installation. Choose a single route, preferably Tag Manager if it is in place, remove the others, then check again with Tag Assistant.

### Step 3 — One key event per action

In GA4, `Admin > Data display > Events`, “Key events” tab:

1. List the marked events and the real action each one represents.
2. If two events represent the same action, remove the star from the one you are not keeping. Preferably keep the event sent after success (`generate_lead`) rather than `form_submit`.
3. If you used “Create event” from a source event, mark only the created event, not the source.

Also check the counting method: on the key event's row, menu on the right, “Change counting method”. “Once per event” is recommended by Google; “Once per session” (a legacy option) counts at most one conversion per session. For a quote request, “Once per session” limits duplicates caused by reloads, at the cost of losing a genuine second request in the same session. The change only applies to future data.

### Step 4 — Protect confirmation pages

**Server side (most reliable)**: the event is only inserted into the page on the first display. In Laravel, flashed session data disappears after one request; for an order, a `purchase_tracked_at` column filled on first display does the same job. Full examples are in [track conversions, forms and quote requests](https://checklist-seo-geo.com/en/tracking-analytics-setup/track-conversions-forms-quote-requests) and [track purchases](https://checklist-seo-geo.com/en/tracking-analytics-setup/track-purchases).

**Browser side**: when you do not control the server, store the hit in `localStorage` with an identifier specific to the conversion:

```js
function trackOnce(key, send) {
  const storageKey = `tracked_${key}`;

  try {
    if (localStorage.getItem(storageKey)) {
      return;
    }

    localStorage.setItem(storageKey, String(Date.now()));
  } catch (error) {
    // storage unavailable: send anyway
  }

  send();
}

trackOnce('order_CMD-2026-10458', () => {
  gtag('event', 'purchase', { transaction_id: 'CMD-2026-10458', value: 64.50, currency: 'EUR' });
});
```

For a thank-you page without an identifier, use a session key (`sessionStorage`): it prevents reloads in the same tab.

### Step 5 — Make purchases reliable

- `transaction_id` = the back-office order number, never a random number or a timestamp generated in the browser. GA4 deduplicates purchases that share the same ID.
- Never an empty ID: GA4 would deduplicate all those purchases together and undercount them.
- A single purchase source: ecommerce extension or Tag Manager or theme code, not two.
- In Matomo, the order ID passed to `trackEcommerceOrder` prevents counting the same order twice; check that it is the real number.

### Step 6 — Clean up Tag Manager

In the container:

1. **Google tags**: a single Google tag (type “Google Tag”) per `G-…` ID. Delete old duplicate configuration tags.
2. **Triggers**: each conversion tag has a single, precise trigger. A tag attached to both “Page View” and “DOM Ready”, or to a click and a form submission, fires twice.
3. **Firing options**: in the tag's advanced settings, “Once per page” prevents several hits on the same page without a reload.
4. **Single-page applications**: if enhanced measurement counts browser history changes, do not also create a `page_view` tag on a “History Change” trigger. Choose one or the other.

Use “Preview”, perform the action once and check the “Tags Fired” list event by event.

### Step 7 — Fix Google Ads duplicates

In Google Ads, `Goals > Conversions > Summary`:

1. Spot the actions that measure the same thing, for example an imported “Quote request (GA4)” and a “Quote request” from the Google Ads tag.
2. Keep a single action as “Primary” for optimization; set the other to “Secondary” or remove its tag.
3. In the action's settings, “Count” field: “One” for leads (one conversion per ad click), “Every” for purchases. The change applies to future conversions.

### Step 8 — Document and monitor

Record the date of the fix and the cause in the tracking plan: any comparison with the earlier period will need to take it into account. Add a monthly reconciliation check against the back office and, if possible, an alert on sudden changes: see [create alerts for traffic and conversion drops](https://checklist-seo-geo.com/en/automation-quality-control/create-alerts-traffic-conversion-drops).

## Common mistakes

- **Removing the wrong installation**: removing Tag Manager while it carries the other tags (advertising, consent). Take inventory before deleting anything.
- **Switching everything to “Once per session”** to hide a duplicate instead of fixing its cause.
- **Believing GA4 will correct the history**: data already received stays as it is.
- **Generating `transaction_id` in the browser** (`Date.now()`): every reload creates a new purchase.
- **Forgetting extensions**: a WordPress plugin or Shopify app update can reactivate a tag you had removed.
- **Comparing with real figures without aligning the scope**: time zone, cancelled orders, taxes.

## Frequently asked questions

### How can I tell whether GA4 is installed twice on my site?

Open the site with Tag Assistant and look at the first load: two Google tags with the same ID, or two page_view events, point to a double installation. You can also search for the G- ID in the page's source code and in your Tag Manager container. The usual causes are code in the theme forgotten after installing Tag Manager or an extension.

### Does GA4 deduplicate purchases automatically?

Yes, partly. GA4 deduplicates purchase events that carry the same transaction_id for the same user. This protects against reloads of the confirmation page, provided the ID is the real order number. A different ID on every hit creates duplicates, and an empty ID makes GA4 wrongly deduplicate all the purchases concerned.

### Should key events use “Once per session”?

Google recommends “Once per event”, which reflects real behavior. “Once per session” is a legacy option that counts at most one conversion per session: it can suit quote requests to limit the effect of reloads, but it hides the causes of duplicates and loses genuine multiple conversions. Fix the cause first, then choose the method according to what the conversion means.

### Can you delete duplicate conversions already recorded in GA4?

No, GA4 does not let you correct events that have already been processed, and configuration changes only apply going forward. Document the affected period and the cause; then, for your reports, compare periods after the fix or use the back office as the source for the faulty period. BigQuery exports allow reprocessing if you had enabled them.

## Resources

- [Google Analytics Help: Minimize duplicate key events with transaction IDs](https://support.google.com/analytics/answer/12313109?hl=en)
- [Google Analytics Help: Change the counting method of key events](https://support.google.com/analytics/answer/13366706?hl=en)
- [Google Analytics Help: Mark events as key events](https://support.google.com/analytics/answer/13128484?hl=en)
- [Google Ads Help: About the conversion counting setting](https://support.google.com/google-ads/answer/3438531?hl=en)
- [Google Analytics Help: DebugView](https://support.google.com/analytics/answer/7201382?hl=en)
- [Matomo: Manually tracking ecommerce orders](https://matomo.org/faq/reports/advanced-manually-tracking-ecommerce-actions-in-matomo/)

Next steps: [exclude internal traffic](https://checklist-seo-geo.com/en/tracking-analytics-setup/exclude-internal-traffic-if-relevant) and [measure lead quality and revenue](https://checklist-seo-geo.com/en/tracking-analytics-setup/measure-lead-quality-revenue).
