WooCommerce says 40 orders today and GA4 says 28. The orders are real and the money is in your account, but GA4 never received the purchase event. This guide explains where those sales go, how to check which cause applies to your store, and how to stop it happening.
If GA4 has the orders but the totals still differ from WooCommerce, read GA4 revenue doesn't match WooCommerce: 9 reasons. For cookie banners, see Consent Mode v2 on WooCommerce.
Why GA4 misses WooCommerce purchases
In a standard setup, the GA4 purchase event is a piece of JavaScript that runs once, in the buyer's browser, on the order-received (thank-you) page. WooCommerce has already saved the order on your server by then. If anything stops that one script from running, GA4 never hears about the sale. The usual reasons:
1. Ad blockers and browser privacy
Ad blockers, Brave, Safari's tracking protection and many privacy extensions block requests to google-analytics.com and googletagmanager.com. The buyer still pays, but the purchase event is dropped. How much this costs you depends on your audience: stores selling to tech-savvy or younger buyers lose more.
2. The buyer never sees your thank-you page
PayPal, Klarna, bank redirects and 3-D Secure take the buyer to another site to pay. If they close the tab after paying, lose signal, or the gateway returns them somewhere else, the thank-you page never loads. Membership and course sites often send buyers to a custom page (like /welcome/ or /training/) with no tracking on it at all.
3. Consent banners
In the UK and EU, a cookie banner may stop GA4 loading until the visitor accepts statistics cookies. Visitors who ignore or refuse the banner send nothing in a "basic" consent setup. Google's Consent Mode v2 in advanced mode lets GA4 send cookieless pings instead, so Google can model those visits and sales. Which mode is right for you is a privacy decision, not just a technical one.
4. Caching and script conflicts
Page caching can serve an old thank-you page, or a minify/defer setting can break the script that sends the purchase. Two tracking plugins (or a plugin plus Google Tag Manager) can also fight each other, so one purchase is sent twice or not at all.
5. Orders paid later
Bank transfer, cash on delivery and manually created orders are paid after the buyer has left. Browser tracking can't see them.
How to check which one affects your store
- Compare a date range. In GA4, open Reports › Monetization › Ecommerce purchases (or Explore with the
transaction_iddimension) for last week. Export your WooCommerce orders for the same dates. List the order numbers that are missing in GA4. - Group the missing orders by payment method. If most are PayPal or another redirect gateway, cause 2 is your main problem.
- Check the customer's country. If most missing orders come from the UK/EU and you have a cookie banner, cause 3 is likely.
- Place a test order with an ad blocker on. Open GA4 DebugView or Realtime and watch for the purchase. If it doesn't arrive, cause 1 applies to every buyer who blocks ads.
- Look for duplicates. If some orders show twice in GA4, two tags are sending the same purchase. Keep one.
The reliable fix: send the purchase from your server
The order is already on your server, so the dependable answer is to send the purchase from there. GA4's Measurement Protocol accepts events from a server with your Measurement ID and an API secret. The right moment to send is when WooCommerce confirms payment (the woocommerce_payment_complete hook, or the order moving to processing), not when a page loads.
Done well, a server-side purchase:
- fires once per order, whichever page the buyer ends up on, and whatever their browser blocks;
- includes the GA4
client_idfrom the buyer's_gacookie, saved at checkout, so the sale is joined to their visit and traffic source instead of showing as a new user; - uses the order number as
transaction_id, so GA4 can drop accidental duplicates; - retries if Google's servers don't answer, and records the result on the order so you can see what happened.
Keep the browser tag for the rest
Server-side purchase tracking doesn't replace gtag. Page views, product views, add to cart and checkout steps still come from the browser, because that's where the visit happens. Send the purchase from the server, and skip it in the browser so it isn't counted twice.
Respect consent
If you only send events after consent, carry that rule to the server: record the buyer's choice at checkout and skip the server purchase for visitors who refused. With Consent Mode v2 advanced, the browser can still send a cookieless purchase ping for those buyers, which keeps GA4's totals closer to reality without cookies.
What to expect after fixing it
GA4 will rarely match WooCommerce to the order. Refunds, test orders, consent choices and bot filtering keep a small gap. What changes is that the gap becomes small and stable, and you can explain every missing order. If you also run Meta ads, the same problem hits the Meta Pixel. The fix there is the Meta Conversions API, covered in our Conversions API guide. Paying with Klarna or Afterpay? See why those purchases go missing.
Do it without code
UnifiedTrackingHub sends WooCommerce purchases to GA4 (Measurement Protocol) and Meta (Conversions API) from your server the moment payment is confirmed, joins them to the buyer's visit, retries on failure, and writes a note on every order. Setup takes about 10 minutes.