By GA4 Setup Agency. Updated 28 November 2026. Filed under eCommerce Tracking.
The purchase event is the one number everyone checks, and WooCommerce gives you several ways to break it.
What a purchase event needs
transaction_id: the order number.valueandcurrency.taxandshippingwhere you report them.- An
itemsarray with consistent IDs, names, prices and quantities.
Where orders go missing
Many stores fire purchase on the order received page. If a payment gateway does not send the buyer back, or the buyer closes the tab, the browser event never runs. Check gateway return settings, and consider server-side sending based on order status for critical data.
Why orders double
Reloading the confirmation page or running two plugins can repeat the event. Mark the order as tracked once sent and keep only one tagging method per destination.
Caching and checkout blocks
Exclude cart, checkout and account pages from full page caching. If you move to the block checkout, retest every event because older hooks may not apply.
Test matrix
Place test orders for each payment method, with a coupon, a variable product and shipping. Compare GA4 values with the WooCommerce order screen.
Example data layer
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: '1042',
value: 59.00,
currency: 'GBP',
items: [{ item_id: 'SKU-18', item_name: 'Canvas Bag', price: 59.00, quantity: 1 }]
}
});
The first push clears the previous ecommerce object so old items do not carry over. The values here are illustrative.
Investigating a gap
Export a week of orders and a week of GA4 transaction IDs, then match them by order number. Group the unmatched orders by payment method, device and time. A pattern, such as one gateway or one express checkout button, points to the cause far faster than editing tags at random.
Orders created in the admin
Phone orders and subscription renewals may never load a browser page. Exclude them from your comparison or send them server-side with a clear label.
We offer WooCommerce tracking setup and wider ecommerce tracking.
About the author
This guide was written and published by GA4 Setup Agency, an analytics and conversion tracking service for businesses in the USA and UK. Platform interfaces change often, so please check the linked official documentation before editing a live account.
Need help with your tracking?
Tell us what is not adding up and we will review your setup.
Get a Free Tracking Audit

