A sale for two lamps appears twice in Analytics. The customer has one receipt and the warehouse has one parcel to send. Start with the order, not the revenue chart. Find out when the application decided the order was purchased, who sent that fact to GA4 and whether each sender used the same identifier.

The repair has two jobs. One purchase should represent the original order even if a receipt is reopened. A second, genuine order must still be counted. A quick fix that suppresses every purchase after the first in a session can make duplicates vanish by hiding real revenue.

Pick a test order the shop can recognise

Use an authorised sandbox, test catalogue and payment method. A paid production order can trigger payment, fulfilment, stock movement and emails. If you need evidence from a live order, use a permitted, redacted observation and agree with the shop on how its records will be handled. Never include emails, phone numbers or customer details in the Analytics transaction ID or an incident screenshot.

Choose two different product quantities so calculation errors are visible. Suppose a hypothetical order has two lamps at A45eachandashadeatA20. Item value is A$110 before tax and shipping in this example. Record the store’s order identifier, order state, currency, item IDs, prices, quantities, shipping and tax. Google’s recommended purchase schema defines value as the sum of item price times quantity, excluding shipping and tax. Currency is required when sending value. If your store’s displayed prices include GST, agree how prices are represented and avoid counting tax twice. A different definition of value can explain discrepancies even when the event count is correct. Google’s purchase event reference

Map every producer

A shop may have a native Analytics integration, a commerce plugin that pushes an ecommerce object, a GTM tag that consumes that object and a server callback after payment. A platform sending a data-layer message and a GTM tag forwarding it may be halves of one producer. A native integration independently dispatching a purchase and GTM dispatching the same one are two producers. Draw the actual flow. A GTM Preview trace cannot show a server event that never passed through the browser.

For each dispatch record the time, source integration, event name, destination, transaction_id, value, currency and item summary. For a server integration, ask the maintainer to provide an approved, redacted log or test endpoint trace. If your system also uses retries, note the application’s order identifier and the retry identity separately. A delivery attempt is not a second order.

Action on the same test order Store order What to inspect
First accepted checkout A new order exists Expected purchase, correct stable ID and item values.
Reload confirmation Same order Whether an extra dispatch occurs and which component sends it.
Open receipt in order history Same order Whether a page-view trigger mistakes reading for buying.
Return via the gateway again Same order Whether the return handler re-emits or invents a fresh ID.
Place a second legitimate order Different order A new purchase with a distinct ID, including in the same session.

Separate duplicate delivery from a duplicate in reports

Inspect one order with DebugView, browser collection requests and the relevant server log. A pair of browser requests for the same order shows duplicate delivery attempts. GA4 applies certain deduplication rules in reporting, so this finding alone does not prove two final purchases. Conversely, an apparently tidy report may mask an implementation that occasionally sends conflicting IDs, users or amounts.

For web purchase events, use the backend’s stable, non-empty transaction_id for each transaction. Google warns that repeated IDs for distinct transactions can undercount and that an empty string can cause empty-ID purchases to be deduplicated together. Google's transaction-ID deduplication applies to web streams and matching purchases from the same user. It is not a generic once-only guarantee across arbitrary server and browser identities, nor a cure for every event type. Google’s transaction ID and duplicate purchase guidance

Watch for an identifier derived from the browser timestamp, page load or newly generated random string. Each receipt refresh then looks like a distinct transaction. Also watch for a placeholder such as order_id sent literally for every purchase, or prefix differences such as SHOP-203 versus 203. Where two environments or stores feed one property, ensure genuine IDs cannot collide. Prefer a consistent, non-identifying order key that all authorised senders know.

Reconcile a set, not just the grand total

Suppose the store reports orders A, B, C and D, while a processed export for the same eligible period contains A, B, B and D. Both totals say four. Matching counts would conceal a duplicate B and a missing C. A useful reconciliation has four groups: present once in both, repeated in Analytics, present only in the store, and present only in Analytics. Investigate one example from each group. If the report adds several item rows for one transaction, collapse to distinct orders before declaring a duplicate.

Compare the same time zone and order state. Some stores create an order at authorisation and later capture or cancel it. Decide whether your event represents a completed purchase, and define how refunds are handled before reconciling net revenue. Analytics measurement coverage may differ from a complete order ledger because of consent, blockers and interrupted returns. Do not destroy a customer’s working checkout to make every historical amount agree.

Keep retries, cancellations and refunds in their own lanes

Consider a gateway that sends the same paid notification twice because the shop was slow to acknowledge it. The customer paid once and the provider is doing the sensible thing by retrying delivery. The integration should recognise the same durable order or payment transition. Turning each retry into a new purchase ID converts an ordinary delivery mechanism into fictitious demand.

Now consider a second legitimate payment attempt for the same underlying order after the first card was declined. The application owner needs to define the moment an order qualifies for purchase. Dispatching on the first attempt overstates success. Generating another purchase on each refresh overstates it again. Use the agreed commerce state and verify the example in the sandbox with the store's actual lifecycle. Two shops using the same platform may have different capture and fulfilment arrangements.

A refund is a later financial event with its own purpose. Where you implement Google's ecommerce refund event, follow its documented transaction and item structure and use the original purchase identifier as required. Don't try to repair a duplicated purchase count by synthesising refunds for customers who received no refund. That can make a revenue total look tidy while damaging the order lifecycle represented in the data. Google’s ecommerce event implementation guide

Before a finance team sees an amended comparison, separate actual store losses, legitimate refunds, collection gaps and duplicate measurement. If a wholesale order was invoiced outside the web checkout, for example, the accounting system can correctly include it while the website purchase report does not. If a single high-value order was duplicated under two identifiers, the reverse may be true. For historical presentation, document the known adjustment and its limits in the report instead of treating fresh tagging changes as a retroactive repair.

Repair the proven path, then replay both orders

If the native integration already sends a correct purchase and the GTM installation duplicates it, agree which implementation owns the purchase and remove only that overlap through the normal release process. If delivery belongs to the application, have the developer attach it to an agreed order-state transition and design for retries using the durable transaction identity. An arbitrary browser flag can hide a legitimate new order or fail after a device change.

Repeat the complete sandbox test and, crucially, place the second genuine order. Verify the parameter values and item arithmetic on both. After processing, check transaction-level output in the intended property and re-run a small eligible order reconciliation. Record the deployment date and any period that needs caveating. A change from two sales for one lamp order to one proper record is a measurement repair, not a sudden collapse in trade.