On this page
What this issue is
After checkout, many stores show an order status page. Customers return to it from emails to see shipping progress, download invoices or check delivery. If your GA4 purchase event is attached to that page, it fires on every visit, not just the first one after payment.
This is different from a refresh of the thank-you page (TRK-079). Here the cause is a trigger that matches the wrong page: a URL pattern, a platform setting or a script that runs on all order pages. The visits can come days or weeks after the sale.
Why it costs you leads or sales
Each extra event adds revenue and a transaction that never happened. Your reported revenue, ROAS (return on ad spend) and conversion rate all look better than reality. Bidding strategies that learn from GA4 imports or Google Ads conversions can then spend on the wrong signals.
Example: 100 real orders worth $50 each, with customers opening the status page about 3 times on average.
- PaymentCustomer pays once
- ConfirmationFirst purchase event
- Status page triggerMatches every visit
- Email link revisitPurchase fires again
- ReportsRevenue inflated
The break is the trigger that matches the status page, so later visits are counted as new sales.
How to check if your site has it
Place a test order
Use a real low-value product with a discount code, or the store's test mode if you have it. Note the order number.
Open GA4 DebugView
In GA4 go to Admin > DebugView, and use Tag Assistant or the GTM preview mode to send debug traffic.
Complete the order
Confirm one
purchaseevent appears with your transaction_id.Revisit the status page
Open the order status link from the confirmation email in the same debug session. If a new
purchaseappears, you have this issue.Look for repeat IDs in reports
In GA4 Reports > Monetization > Ecommerce purchases, or an Explore report, check whether the same transaction_id is counted more than once or revenue exceeds your store's total.
How to fix it
The goal is one purchase per order. Fire it only on the first load after payment, and keep a transaction_id so GA4 can de-duplicate events. The steps depend on your platform.
Use a customer event, not page code
Go to Settings > Customer events and use the standard
checkout_completedevent for your pixel. Avoid putting purchase code in the order status scripts box (older stores: Settings > Checkout > Order status page > Additional scripts).Remove old status page scripts
If Additional scripts contains a GA4 purchase push, delete it or wrap it so it runs once.
Check your ecommerce plugin
In WooCommerce, the thank-you page is the order-received endpoint. Make sure your GA4 plugin is not set to run on the My Account > View order page.
Limit by URL
If you use custom code, run it only when the URL contains
order-receivedand a first-view flag is set.
Tighten the trigger
Open the GA4 purchase tag and its trigger. Replace a broad rule such as Page Path contains
orderwith a Custom Event trigger on thepurchasedataLayer event pushed by your site.Add a once-per-order guard
Create a Custom JavaScript variable that returns false if the order ID is already stored, and add it as a trigger condition. See the code below.
Push purchase only after payment
Output the purchase dataLayer push only in the response to the just-completed payment, not on templates reused by the status page.
Store a sent flag
Save the order ID in localStorage, or a server-side flag on the order, and skip the push if it already exists.
(function () {
var orderId = '{{ORDER_ID}}'; // replace with your order number
var key = 'ga4_purchase_sent_' + orderId;
try {
if (localStorage.getItem(key)) return;
localStorage.setItem(key, '1');
} catch (e) {}
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: orderId,
value: 49.99,
currency: 'USD',
items: [{ item_id: 'SKU123', item_name: 'Example product', price: 49.99, quantity: 1 }]
}
});
})();How to confirm it's fixed
- A new test order sends exactly one purchase event in DebugView.
- Reopening the order status link does not send another purchase.
- Opening it in a new browser or on your phone does not send one either.
- The transaction_id matches the order number in your shop admin.
- After a few days, GA4 purchase count and revenue are close to your store's order export.
How to prevent it happening again
- Trigger purchase from a dataLayer event, not a URL pattern.
- Always send transaction_id so GA4 can discard exact duplicates.
- Re-run the order status revisit test after theme, plugin or checkout changes.
- Keep a changelog of who edits tags in GTM.
- Compare GA4 revenue with store revenue monthly.
How FunnelGuard handles this
FunnelGuard does not check for this yet. Repeat purchase events on a revisited order status page is a possible future check, so today you need to watch for it yourself.
What FunnelGuard does cover nearby: a robot visitor runs your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and checks the tracking hits sent to GA4, Google Ads, Meta and other platforms. It stops before payment unless your store's test mode is set up. That helps you notice when tracking breaks at a step, but it does not tell you whether a purchase repeats on later visits.
Questions people ask
Why is my GA4 purchase event firing every time someone visits the order status page?
The purchase tag is usually triggered by a URL or page type that includes the order status page, or by a platform script that runs on it. Each visit then looks like a new sale. Switch to a trigger tied to the one-time purchase dataLayer event.
How do I stop GA4 counting the same order more than once?
Fire purchase only once per order and always send a unique transaction_id. Add a guard that skips the push if the order was already sent. Then test by revisiting the status link in DebugView.
Does GA4 remove duplicate purchases with the same transaction_id?
GA4 can de-duplicate purchase events that share a transaction_id in some reports, but you should not rely on it. Fixing the trigger is more reliable, and it also keeps Google Ads and other platforms accurate.
How can I tell if my GA4 revenue is inflated by repeat purchase events?
Compare GA4 purchases and revenue with your store's order export for the same dates. If GA4 is consistently higher, open the order status link after a test order in DebugView and see if purchase fires again.
Where do I fix purchase firing on the Shopify order status page?
Use Settings > Customer events with the checkout_completed event instead of code in the order status page. Remove any old GA4 purchase code from the Additional scripts box if your store still has one.
Will fixing this correct my past GA4 data?
No. GA4 does not let you edit past events in standard reports. Note the date of the fix and compare periods before and after it, using your store's order data as the source of truth.
Can FunnelGuard detect purchase events firing on the order status page?
Not yet. This is a possible future check. FunnelGuard currently runs your real journeys and checks the tracking hits at each step, so use a manual DebugView test to watch for repeat firing.
Related issues
- TRK-079purchase fires twice (refresh of thank-you page)Fix guide
- TRK-078purchase sent without transaction_idFix guide
- TRK-077purchase event missing on order confirmationFix guide
- TRK-082purchase value differs from order totalFix guide
- TRK-091ecommerce object not cleared in dataLayer (items leak into next event)Fix guide
- TRK-081purchase value includes or excludes tax/shipping inconsistentlyFix guide