Analytics and Tracking

Duplicate Transaction

One order recorded more than once in GA4 or an ad platform, so reported purchases, revenue and ROAS run higher than real sales.

Quick facts: Duplicate Transaction

Category
Analytics and Tracking
Level
Intermediate
Affects
Revenue reporting, conversion rate, ROAS, value-based bidding
Where to see it
GA4 Explorations (Transaction ID), Shopify or WooCommerce order reports, Google Ads conversions, Meta Events Manager
In this article4
  1. How duplicate transactions happen
  2. Why it matters
  3. Common mistakes
  4. How to act on it

A duplicate transaction is a single order that analytics or an advertising platform has recorded more than once, so the purchases and revenue in your reports are higher than the sales you actually made. It almost always comes from the purchase event firing again for an order that has already been tracked.

How duplicate transactions happen

Most shops send the purchase event when the order confirmation page loads. That works until the page loads again for the same order, which happens more often than people expect:

  • The customer refreshes the confirmation page or comes back to it with the back button.
  • The confirmation email links to an order status page that sends the purchase event again.
  • The payment step sends the customer away and back, as with PayPal, Klarna, Clearpay or a bank’s security check, and the return lands on the confirmation page twice.
  • The customer reopens the tab later to check delivery details.
  • Two tracking set-ups each send a purchase, which is a form of double firing.

Every purchase event should carry a transaction ID, normally your order number. That ID is what lets you find repeats, and Google’s tools can use it to ignore some of them. How many repeats each platform catches varies, though, so the dependable fix is to stop the event being sent twice in the first place.

Why it matters

Duplicate transactions inflate revenue, conversion rate and return on ad spend. If one order in ten is counted twice, reported revenue runs about ten per cent high, and every channel looks more profitable than it is. Campaigns whose buyers are most likely to revisit the confirmation page look best of all. Ad platforms bidding towards a revenue target then spend against money that never reached your bank account.

The gap also erodes trust in reporting. When the finance team’s sales figure and the marketing dashboard disagree, the whole report tends to be ignored, including the parts that are right. Regular reconciliation against your shop platform or accounts catches the problem early.

Common mistakes

  • Sending purchase events without a transaction ID, which makes duplicates impossible to find.
  • Using a value that changes on each page load, such as a timestamp, as the transaction ID.
  • Tracking purchases on an order status page that customers revisit from their emails.
  • Comparing GA4 revenue including VAT with shop figures excluding VAT, which can mask duplicates or be mistaken for them.
  • Leaving a shop platform’s built-in integration running alongside a hand-built one after a migration.

How to act on it

To find duplicates in GA4, build a free-form exploration with Transaction ID as the dimension and Transactions as the metric, sorted highest first. Any order number with a count above one has been recorded more than once. Then compare a month’s total purchases and revenue with the figures in Shopify, WooCommerce or your accounts.

To stop them, make sure the purchase event fires only once per order. The usual methods are to record on the server that an order has been tracked and skip the event if it has, or to store the order number in the browser and check it before firing. Use your platform’s native integration where it already handles this, send values on the same VAT basis every time, and send refund events for cancelled or returned orders so revenue stays honest. This is part of my work on Facebook ads for online shops, where ROAS figures drive the budget.

Do and do not

Do

  • Send your order number as the transaction ID on every purchase
  • Fire the purchase event once per order, checked on the server or in the browser
  • Reconcile GA4 revenue with shop figures every month

Do not

  • Track purchases on order status pages customers revisit
  • Use timestamps or random values as transaction IDs
  • Mix revenue including and excluding VAT

Questions people ask about this

Does GA4 remove duplicate transactions automatically?

Not reliably. Sending a transaction ID gives GA4 and Google Ads what they need to recognise a repeat, but repeats still show up in many accounts, especially when the ID is missing or changes between sends. Check your own data with a transaction ID exploration rather than assuming it is clean.

Should purchase values include VAT?

Choose one basis and use it everywhere. Many UK businesses send revenue excluding VAT because it matches their accounts and the money they keep, and GA4's purchase event has a separate tax parameter for recording the VAT itself. What matters most is that GA4, Google Ads, Meta and your own reports all use the same basis, so ROAS and reconciliation compare like with like.

How do I clean up past duplicate transactions?

You cannot edit or delete individual events in GA4 once they are processed. Annotate the affected period and, where accuracy matters, use your shop or accounting figures for revenue during that time. If you export GA4 data through the BigQuery export, you can remove duplicates in your own queries by keeping one row per transaction ID.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.