TRACKING SPECIALIST — BARIS ASA · LONDON
Synctag
Start the check → TRACKING SPECIALIST — BARIS ASA · LONDON

READING ROOM › SYMPTOM FILES › SYM-117

SYMPTOM FILE SYM-117 FILED 23 NOV 2026 · REVISED 23 NOV 2026

GA4 shows purchases that never happened in the store: test orders, staging sites and unknown senders.

ALSO FILED AS
  • “GA4 shows purchases that never happened”
  • “GA4 transaction IDs not in Shopify”
  • “GA4 recorded a purchase the store doesn't have”
  • “GA4 transaction ID is the Shopify checkout ID”
  • “fake purchases in GA4”
  • “GA4 purchase event being spoofed”
  • “GA4 purchases from staging site”
  • “test orders showing in GA4 revenue”

Baris Asa, tracking consultant, London · Filed 23 November 2026 · Last checked: 23 November 2026

If GA4 shows more purchases than the store took, and some GA4 orders don’t exist in the store at all, one of two things happened. A real order arrived under a different identifier, or something sent a purchase the store never took. Check the identifier first. Then test orders, a staging site, a reload that makes a new ID, and hits from outside. One export of GA4’s order IDs and the site each came from tells you which.

Not your case if every GA4 order matches a store order:

Orphan orders are one way GA4’s purchase count ends up above the store’s. Count them before you read any revenue gap.

How do I find the purchases the store doesn’t have?

One export from each side. No GTM access needed. Use a closed week a few days old, so GA4 has finished processing.

  1. Export the store’s orders for that week, with the order number and total. Shopify’s Orders list still holds test orders, so archive or remove them first, or they’ll match and hide.
  2. In GA4, open Explore, Blank. Rows: Transaction ID, then Hostname (the site the purchase came from), then Date. Values: Ecommerce purchases and Purchase revenue. Export it.
  3. Put both lists in one sheet and look each Transaction ID up in the order list (XLOOKUP or VLOOKUP). The IDs with no match are the orphans.
  4. Size it. Add up Purchase revenue on the orphan rows and divide by the week’s GA4 Purchase revenue. That is the share of the gap this note explains.
  5. Read what the orphans share. The exhibit shows the shapes.
Transaction IDHostnamePurchasesIn the store?
1042 to 1311shop.example.co.uk270yes
5512340001… (long)shop.example.co.uk6not by this number
9001 to 9003staging.example.co.uk3no
7f3a9c… (random)shop.example.co.uk4no
(not set)(not set)2no
ORPHAN IDs · one closed week, by hostname · worked example, illustrative, not a client account

Each row is a different sender. A long number on your own site is usually a real order under its internal ID. A second hostname is a site that shouldn’t be sending. Random strings on your own site come from the browser. Rows with nothing set have no page behind them.

1. Is it a real order under a different number?

Check this before you call anything fake. Shopify gives one order several identifiers, according to its developer docs:

  • Order name: what the admin and the Order status page show, such as #1042. Shopify’s examples also include EN1001 and 1001-A.
  • Order number: the number the name is built from, without prefix or suffix.
  • Order ID: a separate global ID, sent as a long number or as a string like gid://shopify/Order/5512340001, depending on how the tag reads it. The checkout_completed event a Shopify pixel listens to carries the order ID and the checkout token, not the name.
  • Checkout token: the ID of the checkout the order came from.
  • Confirmation number: a random code like XPAV284CT that some customers see instead of the name.

A tag that sends the order ID while you match on the name makes every order look fake. The test: if the orphans share one format and their number equals the store orders left unmatched that week, they’re real. Check two of them against an order’s value and time.

The fix (your developer or agency): send one identifier from every sender, the one your reports use. Two senders using two formats for the same order is the double count in F-101 , because GA4 only deduplicates an identical transaction_id.

2. Are they test orders?

Shopify says test orders and simulated transactions don’t display in its payouts or reports. GA4 hears about them anyway: the thank-you page loads and the tag fires. So GA4 shows purchases the store’s reports leave out.

One catch. Shopify says orders through third-party gateways aren’t test orders, even with the gateway in test mode, and can’t be deleted. Those sit in both systems as real orders.

What you’ll see: orphans on your own site on the days someone tested the checkout, once test orders are out of your export.

The fix (in GA4 Admin, Data filters): an internal traffic filter on the IP you test from is the surest route. A developer traffic filter excludes events sent in debug mode, a flag set by Tag Assistant, GTM Preview or the tag’s settings. That only helps if the checkout tag can run in debug mode; check that yours does. Either way, place one test order with the filter in Testing and confirm it is caught before you set it Active. Both filters are F-602 working as designed. The steps, and what to do about test orders in Google Ads, are in Test orders and Google Ads. Counted as revenue in the ad platforms, test orders are F-302 ; as key events in GA4, they overlap with F-104 .

3. Is a staging or copied site sending to the live property?

A staging site built from a copy of the live theme, or a GTM container copied to a second store, carries the live GA4 measurement ID with it. Every test order there lands in your property, numbered by a different database. If those numbers overlap with real ones, the lookup in step 3 matches them to the wrong orders. That is why Hostname sits next to the ID.

What you’ll see: a hostname in the export that isn’t the live shop.

The fix (your developer): give staging its own property, or take the tag off it. Then, in GA4 Admin: a Web hostname traffic data filter keeps a known hostname out from now on. Google says data filters work from the point of creation forward, don’t affect historical data, and data they exclude is never processed. Run it in Testing first; Google says a filter can take 24 to 36 hours to apply. The testing steps are in Spam and junk referrals in GA4.

4. Does the thank-you page make a new ID on each load?

What you’ll see: random strings on the live hostname, often the same value and day as a real order.

GA4 drops a repeat only when it carries the same transaction_id. An ID built in the browser, from a timestamp or random string, changes on every reload, so each copy is kept and none matches the order. The fix (your developer): read the ID from the order. The fire-once guard is in GA4 purchase fires again when the customer refreshes the thank-you page.

5. Is something outside your site sending purchases?

Two routes reach GA4 without a real checkout.

A leaked Measurement Protocol secret. The Measurement Protocol lets a server send events to GA4 with an api_secret, the private key for that route. Google’s wording: “The api_secret is private. Don’t expose it in the client-side code of your website or app.” Exposure, Google says, allows unauthorised parties to send arbitrary or spam data to your property. The fix (your developer): search page source and theme files for it. If it’s there, create a new secret under Admin, Data streams, your stream, Measurement Protocol API secrets. Move every legitimate sender to it, confirm events still arrive, then delete the old one. A correct setup is in GA4 Measurement Protocol explained.

Hits with your public measurement ID. Your G- ID sits in every page’s source, and the browser route needs nothing else. There is no secret to rotate.

What you’ll see: purchases with absurd values, odd currencies or junk product names, no other activity around them, and often no transaction ID. Hostname helps but doesn’t settle it: Hostname comes from the page address the hit reports, which a sender can fake. Your own server sends refunds, renewals or offline sales on purpose, and those can look like this too. Ask whoever runs it before calling anything spam.

The fix: exclude those rows in Explorations and note the date. If they carry a hostname that isn’t yours, the hostname filter in section 3 keeps them out from then on.

Can I remove the fake purchases already in GA4?

No. Google’s data deletion requests replace parameter text with “(data deleted)”, but the event still counts in the overall metrics, and numeric parameters aren’t deleted. Requests take 7 to 63 days and can’t be undone once complete.

What works:

  • Revenue: send a refund event with the orphan’s transaction_id, and the same value and currency as the purchase. Google defines Purchase revenue as revenue from purchases minus any refunds, so the money comes out. Ecommerce purchases still counts the order, and Gross purchase revenue keeps it. How to send one is in GA4 revenue won’t drop after refunds.
  • Reports: in Explorations, exclude the orphan IDs or the stray hostname, and keep the list with the report.
  • The record: write down the date the fix went live, and compare from the first full week after it.

How do I know it’s fixed?

  • A closed week’s export from the fix date has no Transaction ID without a matching order, apart from server sends you know about.
  • Every Transaction ID is in the format your store’s reports use.
  • The Hostname column shows only the live shop.
  • With the filter in Testing, a test order from that IP shows the filter’s name under the Test data filter name dimension. Once the filter is Active, test orders don’t appear in reports at all.

Can’t tell an orphan from a real order in another format? Send me the export. Reading a week of IDs against the store’s orders is where reconciling GA4 with the store starts.

Common questions

Why does GA4 show purchases that aren’t in my store?

Either a real order arrived under a different identifier, or something sent a purchase the store never took. Check the identifier format first (order name such as #1042, a long order ID, a checkout token), then test orders, a staging or copied site, a reload that makes a new ID, and hits from outside your site.

Do Shopify test orders show up in GA4?

They can. Shopify says test orders don’t display in its payouts or reports, but the GA4 tag on the thank-you page fires either way. Orders through third-party gateways in test mode aren’t test orders at all, and count in both systems.

How do I stop test orders reaching GA4?

The surest route is an internal traffic filter on the IP you test from. A developer traffic filter works only if the checkout tag can run in debug mode. Filters act only from the moment they’re created, take 24 to 36 hours to apply, and the data they exclude is never processed.

Can I delete fake purchases from GA4?

No. A data deletion request blanks the text, but the event still counts and numeric parameters stay. A refund event with the orphan’s transaction_id, value and currency takes the money out of Purchase revenue; Ecommerce purchases still counts the order.

Can someone send fake purchases to my GA4 property?

Yes, two ways: with your Measurement Protocol API secret, or with your public measurement ID through the browser route, which needs no secret. Rotating the secret stops the first, not the second.

Sources

Read on 23 November 2026:

  • Google Analytics Help, minimise duplicate key events with transaction IDs (same transaction ID deduplicated, no window given, empty string deduplicates all empty-ID purchases)
  • Google Analytics Help, data filters (developer traffic, internal traffic and web hostname traffic; Testing, Active and Inactive; evaluated from creation forward; excluded data never processed), filter out developer traffic (debug mode; 24 to 36 hours), debug mode (Tag Assistant, preview mode, debug_mode on the tag) and filter out internal traffic
  • Google Analytics Help, data deletion requests (text replaced with “(data deleted)”, event still counted, numeric parameters not deleted, 7 to 63 days, not reversible once complete)
  • Google Analytics Help, dimensions and metrics (Hostname, Ecommerce purchases, Purchase revenue minus refunds, Gross purchase revenue)
  • Google Analytics developer docs, Measurement Protocol overview and sending events (api_secret private, not in client-side code, exposure allows spam data; Measurement Protocol API secrets in the data stream)
  • Google Analytics developer reference, recommended events: refund (transaction_id required; currency required when value is set)
  • Shopify Help Center, test orders (test orders and simulated transactions don’t display in payouts or reports) and processing a test order (third-party gateway orders in test mode aren’t test orders and can’t be deleted)
  • Shopify developer docs, Order object (name, number, id, checkoutToken, confirmationNumber) and checkout_completed (checkout.order.id, checkout.token)

← back to the reading room