Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Purchase event missing or fired twice: how to find and fix it

CNV-221High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A purchase event is the tracking message your site sends to analytics and ad platforms when an order completes. In GA4 it is named purchase. It should carry the order value, currency, items and a transaction_id (a unique order number).

There are two failure modes. Missing: the event never fires, or fires without a value. Duplicated: it fires two or more times for one order. Common causes are a tag in both the theme and Google Tag Manager, a plugin plus a manual tag, a page reload or back button on the confirmation page, and a missing transaction_id.

Why it costs you leads or sales

Ad platforms optimise toward the conversions you report. If purchases are missing, campaigns look like they lose money and smart bidding learns from too little data. If purchases are doubled, revenue and ROAS look better than they are, and you may scale spend that does not pay back.

Where the purchase signal is lost
  1. Ad clickVisitor arrives from an ad
  2. CheckoutCustomer pays
  3. Confirmation pagePurchase event missing or sent twice
  4. Ad and analytics platformsNo sale, or two sales, recorded
  5. Bidding and reportsDecisions based on wrong data

The order succeeds, but the purchase event breaks on the confirmation page, so every platform downstream gets nothing.

Reported vs real purchasesExample numbers
Reported vs real purchases (example)Real orders: 100 orders; Reported, event missing on some: 60 orders; Reported, event fired twice: 190 orders07314610060190Real ordersReported, event missi…Reported, event fired…orders

Example: 100 real orders in a week. A missing tag reports too few, a duplicate tag reports too many.

How to check if your site has it

Check the purchase event yourself
  1. Place a test order

    Use your store's test mode or a low-value real order. Do not use real card details on a live store unless you intend to pay.

  2. Open Tag Assistant or GTM Preview

    Load the confirmation page with Google Tag Assistant or GTM Preview mode and look for purchase events.

  3. Count the events

    You should see exactly one purchase per order. Zero or two means a problem.

  4. Inspect the payload

    Check that transaction_id, value and currency are present and correct.

  5. Reload the confirmation page

    Refresh it. A second purchase event on reload means the event is not guarded against repeats.

  6. Compare with the platform

    In GA4 Reports, Monetization, Ecommerce purchases, compare orders with your store's order count for the same period.

How to fix it

First decide where the purchase event should come from. Pick one source: your platform's native integration, a plugin, or a Google Tag Manager tag. Then remove every other copy.

Correct GA4 purchase event in the dataLayerjavascript
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T-10482',
    value: 59.90,
    currency: 'USD',
    items: [{ item_id: 'SKU-1', item_name: 'Example product', price: 59.90, quantity: 1 }]
  }
});
Fix by platform
  1. Find all sources

    In WooCommerce, check your GA4 or ads plugin, any code in the theme's header, and GTM tags. Only one should send purchase.

  2. Disable duplicates

    Turn off purchase tracking in all but one plugin or tag.

  3. Test on the order-received page

    Check one event with the right order number and total.

Guard against reload duplicatesjavascript
var orderId = 'T-10482'; // from your order data
var key = 'purchase_sent_' + orderId;
if (!localStorage.getItem(key)) {
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({ ecommerce: null });
  window.dataLayer.push({ event: 'purchase', ecommerce: { transaction_id: orderId, value: 59.90, currency: 'USD' } });
  localStorage.setItem(key, '1');
}

How to confirm it's fixed

Confirmation checks
  • One purchase event appears for one test order in Tag Assistant or GTM Preview
  • The event includes transaction_id, value and currency
  • Reloading the confirmation page does not send a second event
  • Meta Events Manager and Google Ads show one conversion for the order
  • GA4 order count matches your store over several days

How to prevent it happening again

Duplicates and gaps usually return after a theme update, a new plugin, a checkout change or someone adding a second tag. Keep one owner for tracking, document where purchase is sent from, and retest after every change to checkout, themes or your tag setup.

How a duplicate creeps in
  1. Week 1

    Example: purchase is sent by your GA4 plugin and numbers match.

  2. Week 6

    Example: an agency adds a GTM purchase tag for Google Ads.

  3. Week 7

    Example: both fire, so revenue in reports doubles.

  4. Week 9

    Example: ad spend is raised based on inflated ROAS.

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs your checkout journey on a schedule and checks that the purchase event is sent once, with a transaction_id, to the platforms you track. It stops before payment unless your store's test mode is set up. If the event is missing or fires more than once, the failure is re-checked from a second region and you get one alert with a screenshot and a likely cause.

Questions people ask

Why is my purchase event not showing in GA4?

The tag may not be firing on the confirmation page, the trigger may be wrong, or consent settings may block it. Use Tag Assistant or GTM Preview on a test order to see whether a purchase event is sent and whether it has a value and transaction_id.

Why is my purchase event firing twice?

Usually the same tag exists in two places, such as a plugin and Google Tag Manager, or the confirmation page is reloaded and re-sends it. Remove the extra source and guard the event so it fires once per order.

Does GA4 remove duplicate purchases with the same transaction_id?

GA4 can ignore repeat purchase events that carry the same transaction_id, but this should not be relied on alone. Other platforms, like Meta and Google Ads, have their own deduplication rules, so fix the source of the duplicate.

How do I stop the purchase event firing when the thank-you page is refreshed?

Save the order ID in localStorage or a cookie after the first push and skip the event if it is already stored. Some platforms also let you fire only on the first view of the order status page.

Why do my Google Ads conversions not match my store orders?

Common causes are a missing or duplicated purchase tag, ad-click attribution gaps, consent denied, and conversion windows. Check one order end to end first to rule out tag problems before looking at attribution.

How do I test a purchase event without paying?

Use your store's test mode or a payment gateway sandbox, then check the confirmation page with Tag Assistant or GTM Preview. FunnelGuard also stops before payment unless test mode is set up.

Can FunnelGuard tell me if my purchase event fires twice?

Yes. FunnelGuard checks that the purchase event is sent once with a transaction_id on your checkout journey and alerts you if it is missing or repeated.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: purchase event once with transaction_id.

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.