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.
- Ad clickVisitor arrives from an ad
- CheckoutCustomer pays
- Confirmation pagePurchase event missing or sent twice
- Ad and analytics platformsNo sale, or two sales, recorded
- 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.
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
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.
Open Tag Assistant or GTM Preview
Load the confirmation page with Google Tag Assistant or GTM Preview mode and look for
purchaseevents.Count the events
You should see exactly one
purchaseper order. Zero or two means a problem.Inspect the payload
Check that
transaction_id,valueandcurrencyare present and correct.Reload the confirmation page
Refresh it. A second purchase event on reload means the event is not guarded against repeats.
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.
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 }]
}
});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.
Disable duplicates
Turn off purchase tracking in all but one plugin or tag.
Test on the order-received page
Check one event with the right order number and total.
Check Customer events
In Settings, Customer events, review pixels. Make sure the same pixel is not added twice, for example by an app and manually.
Remove old script from checkout settings
If your plan still has Additional scripts on the order status page, remove purchase code that duplicates an app or pixel.
Test an order
Confirm one purchase event per order.
Review triggers
Your purchase tag should fire on the
purchasecustom event only, not on All Pages or on both the page view and the event.Pass transaction_id
In the GA4 event tag, send ecommerce data from the dataLayer so
transaction_idis included.Set tag firing option
Use Once per event, and use Preview mode to confirm a single firing.
Check where code lives
Look in Project settings, Custom code and in page-level code for the order confirmation page.
Remove duplicate tags
Keep one purchase source, either GTM or a direct tag.
Test an order
Check the event on the confirmation page.
Review Marketing Integrations
In Wix, check Google Analytics and Meta pixel integrations under Marketing integrations. Avoid also adding the same tags in Custom code.
Test an order
Confirm one event after checkout.
Check Order Confirmation Page code
In Commerce settings, Advanced, the Order Confirmation Page injection should not repeat what Google Analytics integration already sends.
Test an order
Confirm one purchase event.
Fire server-confirmed orders only
Push the event only after the order is confirmed, using the real order ID as transaction_id.
Guard against reloads
Store the order ID in localStorage or a cookie and skip the push if it was already sent.
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
- One
purchaseevent 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.
Week 1
Example: purchase is sent by your GA4 plugin and numbers match.
Week 6
Example: an agency adds a GTM purchase tag for Google Ads.
Week 7
Example: both fire, so revenue in reports doubles.
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.
Related issues
- CNV-218Order confirmation page blank or errorsFix guide
- CNV-219Order confirmation email not sentFix guide
- CNV-220Order email shows wrong totals or itemsFix guide
- CNV-225Order not reaching fulfilment/ERPFix guide
- CNV-226Post-purchase survey breaks confirmation pageFix guide
- CNV-222Download link for digital product brokenFix guide