Skip to content

TroubleshootingGA4

Shopify GA4 Duplicate Purchases: Find the Second Sender

GA4 purchase event firing twice on Shopify? Use a ten-minute sender check, then a Transaction ID exploration to investigate the affected orders.

Published
Reviewed

The symptom

One paid Shopify order appears to produce two purchases in GA4. I would check one known order before comparing monthly totals. The useful evidence is its outgoing purchase requests, their destinations and their IDs.

  • GA4 purchase event firing twice on Shopify
  • Shopify GA4 duplicate purchases appeared after adding an app or server sender
  • One Shopify order maps to two different GA4 transaction IDs
  • GA4 revenue rose without a corresponding rise in paid orders

Direct answer

For Shopify GA4 duplicate purchases, I find the second sender before changing the ID logic. A GA4 purchase event firing twice on Shopify can come from two installations or a custom reload trigger. Whether both count needs a separate check in GA4.

Google’s transaction-ID rules apply to web streams. Each order needs a unique, non-empty ID. I do not treat two DebugView entries or two network requests as proof that reported revenue doubled.

Causes, ranked

  1. Two purchase senders. I check the Google & YouTube app, custom pixels, published GTM tags and server forwarding. I verify that each actually sends purchase rather than inferring it from installation.
  2. Two ID formats for one order. I compare an order’s actual outgoing values. An order name, an order ID and a checkout token are not interchangeable strings.
  3. A custom page-load trigger. I test reload and revisit. Shopify documents checkout_completed as once per checkout, so I inspect custom code before blaming that standard event.
  4. A server sender overlaps the browser. I compare the same order and timestamp in both paths, then choose a single owner for collection or a documented deduplication design.
  5. A report counts the wrong thing. I compare ecommerce purchases with item quantities and other transaction metrics before changing tracking.

Sources: Shopify checkout completion and Google’s ecommerce metric definitions.

How to diagnose it

GA4 Explore recipe: group by transaction_id

  1. Open Explore > Free form in the receiving property. Select a closed date range that contains the affected orders.
  2. Import dimensions Transaction ID and Event name, and metrics Event count and Ecommerce purchases.
  3. Put Transaction ID in Rows and both metrics in Values. Add a filter: Event name exactly matches purchase. Transaction ID is GA4’s reporting dimension for transaction_id.
  4. Sort Event count descending. Inspect rows above one and rows with missing IDs. Export the table for the order comparison.
  5. Compare every suspicious row with the Shopify order it represents. Look for two different GA4 IDs belonging to one order as well as a repeated ID.
  6. Check the exploration’s data-quality indicator and row coverage before treating the export as complete. Return to outgoing requests for the sender proof.

The recipe uses Google’s Free-form exploration controls, Transaction ID dimension and ecommerce metrics. Google documents sampling and row limits in its reporting-surfaces comparison.

This exploration is a shortlist. GA4’s deduplication means an already-collapsed duplicate may not appear as an extra reported purchase. Two different IDs can also each have a count of one. Neither result clears the installation without matching the order.

Decision table

Find the duplicate in 10 minutes

Use this as a first inspection, not a promise that every fault takes ten minutes to fix. Keep one known order and a sender list beside you.

TimePossible sourceWhere I lookCheck on the same order
0-2 minGoogle & YouTube app plus a custom pixelChannel settings and Settings > Customer eventsDoes each path send purchase to the same GA4 destination?
2-4 minTwo GTM tags or containersPublished container versions and outgoing requestsWhich trigger sends each request?
4-6 minCustom thank-you or order-status page codeInstalled integration code and reload testDoes reloading send another purchase?
6-8 minBrowser plus server forwardingBrowser request and server delivery logAre both reporting the same paid order?
8-10 minDifferent or missing IDsPurchase payloads beside the order recordDoes one order have two ID strings or an absent ID?

Shopify’s app-pixel instructions explain how to inspect Customer events. Google’s Shopify custom-pixel limitations warn that Tag Assistant and GTM Preview may not work correctly in the sandbox. A missing Preview event is not evidence that the pixel sent nothing.

Disable only a confirmed redundant sender. If IDs differ, choose one stable order identifier. If a custom page-load trigger sends again on reload, repair that trigger. Repeat the checkout after the change and check reported purchases as well as requests.

Should you fix it yourself or bring in help?

You can inventory senders and build the exploration. I would ask for help before disabling the store’s only working purchase path, or when browser and server logic disagree.

I keep a reversible configuration change, repeat the real checkout and compare the next closed period with paid orders. A single clean test proves that path; the order comparison checks whether the fix holds across the store.

One clear problem, fixed.

I remove the duplicate purchase path on your Shopify store.

I complete a real test order and show the corrected purchase in GA4, with its transaction ID and value checked against the order.

$350 · 3 working days after access

Urgent, within 24 hours: +25%.

When several systems disagree, or a cheaper fix already failed.

I match every Shopify order against what GA4, Meta and Google Ads recorded, wherever order-level data is available. I separate attributed and modelled totals that cannot be matched to individual orders.

I prove the cause in your own data, rebuild the broken tracking, and add a daily check so it does not silently break again.

From $1,500

See a redacted sample report

Questions this symptom raises

Why is my GA4 purchase event firing twice on Shopify?

I first check whether the Google & YouTube app, a custom pixel, GTM or a server sender reports the same order. I compare the outgoing requests before deciding which path to disable. Two installed integrations are a lead, not proof that both send purchase.

Does GA4 deduplicate Shopify duplicate purchases?

Google documents purchase deduplication by transaction ID for web streams, not app streams. Use a unique, non-empty ID for each order. Different IDs for the same order defeat that match; an empty string can collapse unrelated purchases.

Will a Transaction ID exploration find every duplicate?

No. I use it to shortlist repeated IDs and unexpected ID formats. Already-deduplicated events, missing IDs and two different IDs for one order need request inspection and an order-level comparison as well.

Read more, or check a neighbouring symptom.

See Google & YouTube app versus a custom web pixel for the installation choice. For missing events, see GA4 not tracking purchases. For remaining value differences, see GA4 revenue doesn’t match Shopify.

All symptoms

Daniil Maximkin

Hi, I’m Daniil.

I work with you from defining the problem to implementation and handover. You talk to the person who does the work. I work in English and Russian; written correspondence in Spanish with translation support.

Tried it and still stuck?

Describe what's wrong

The first answer is free, within one working day. Or write directly: next@taskfordaniel.com