Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 purchase firing on every order status page visit: fix

TRK-080High impactCould addBy FunnelGuardPublished Updated
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.

Reported vs real revenueExample numbers
Reported vs real revenue (example)Real revenue: 5,000 USD; Reported in GA4: 15,000 USD05,75011,5005,00015,000Real revenueReported in GA4USD

Example: 100 real orders worth $50 each, with customers opening the status page about 3 times on average.

How one order becomes many
  1. PaymentCustomer pays once
  2. ConfirmationFirst purchase event
  3. Status page triggerMatches every visit
  4. Email link revisitPurchase fires again
  5. 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

Test it yourself
  1. 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.

  2. Open GA4 DebugView

    In GA4 go to Admin > DebugView, and use Tag Assistant or the GTM preview mode to send debug traffic.

  3. Complete the order

    Confirm one purchase event appears with your transaction_id.

  4. Revisit the status page

    Open the order status link from the confirmation email in the same debug session. If a new purchase appears, you have this issue.

  5. 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.

Fix by platform
  1. Use a customer event, not page code

    Go to Settings > Customer events and use the standard checkout_completed event for your pixel. Avoid putting purchase code in the order status scripts box (older stores: Settings > Checkout > Order status page > Additional scripts).

  2. Remove old status page scripts

    If Additional scripts contains a GA4 purchase push, delete it or wrap it so it runs once.

Push purchase once per orderjavascript
(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

Confirmation checks
  • 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

Habits that keep it fixed
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.