WooCommerce Purchases Missing in GA4? The Complete Fix (GTM Setup Guide)
Quick answer
GA4 only records a WooCommerce sale when a purchase event arrives with a transaction ID, a value and a currency. Most stores send that event from the order-received (thank-you) page, so anything that stops that page from loading β a payment gateway that never redirects the buyer back, a cached thank-you page, a consent banner that blocks the tag, or a dataLayer that was never switched on β hides the sale while WooCommerce still records the order. Measure the gap first, find the pattern in the missing orders, then rebuild cleanly: one GTM install, one dataLayer, one container sending the purchase to GA4, Google Ads and Meta from the same event. The steps below do exactly that, with screenshots of the real builder flow and the real container.
How bad is the gap? Measure it before you fix anything
Do not start by rebuilding tags. A small gap is normal, and rebuilding a working setup to chase it usually makes things worse.
Compare two lists. Export last week’s WooCommerce orders, then look each order number up as a transaction ID in GA4 (Explore β Blank β Transaction ID as rows, Ecommerce purchases as values). The order numbers with no matching purchase event are your missing orders. What those orders share tells you the cause; the table below maps each pattern to its fix.
Know what “normal” looks like. A gap under about 5% between WooCommerce and GA4 is generally healthy β shoppers who decline cookies or run ad blockers are never fully measured. A gap above 10β15% is worth investigating. Those are the rules of thumb Analytify publishes in its troubleshooting guide.
Do not compare fresh data. GA4 standard reports can take 24β48 hours to process, so compare a week that closed at least three days ago, and use Realtime or DebugView for anything from today.
Take a large gap seriously. A Search Engine Journal audit of WooCommerce stores, summarised by WPPoland, found one store where GA4 recorded 81% of web orders in late 2024, 41% a year later and just 32% over the Christmas period β a steady decline from a consent gap, a banner that had switched itself off, and duplicate purchases elsewhere. Missing purchases are usually a slow leak with several small causes, not one dramatic failure.
Why WooCommerce purchases go missing in GA4
Seven usual causes, in the order to check them. Most stores find their answer in the first three.
1. The buyer never reaches the thank-you page
The purchase event fires on the order-received page, so if the payment gateway takes the buyer off-site to pay and never brings them back, there is no page load for the tag to fire on. WooCommerce’s own documentation for its Google Analytics extension states the dependency plainly: purchase tracking “requires a payment gateway that redirects to the thank you/order received page after payment”. If the missing orders share one payment method, the gateway’s return setting is the fix, not a new tag.
2. Nothing pushes the purchase into the dataLayer
GA4 ecommerce events come from the dataLayer, the structured object the store hands to Google Tag Manager on each page. If no plugin builds that dataLayer, GTM has nothing to read and no purchase event exists to send. With GTM4WP (Google Tag Manager for WordPress), the WooCommerce switch “Track e-commerce” is the master switch for the whole dataLayer, and it is off by default. This is the most common “it never worked” cause β GTM installed, tags in place, dataLayer never switched on. The fix is one checkbox, in step 3 below.
3. Consent is declined β or the banner stopped working
In the EEA, the UK and Switzerland, visitors must grant consent before tracking, and without it GA4 and Google Ads capture no user data. That is the steady, expected part of the gap. The unexpected part is a banner that silently stops showing: consent platforms sold on monthly page-view allowances can run out mid-month, and the banner stops appearing until the next billing date β which looks exactly like tracking breaking overnight. If everything went missing from one date, check the banner before touching any tag.
4. The order-received page is cached
Page caching should skip the checkout and the order-received page, but a misconfigured cache serves a stored copy of the thank-you page instead of running it fresh β and a cached copy does not fire the purchase tag. Exclude the cart, checkout and order-received pages from caching. Note that a test order placed while logged in as admin can look fine while real buyers’ purchases vanish, because the admin view often bypasses the cache.
5. Two tracking installs are fighting
A store accumulates tracking code: a GA4 tag pasted into the theme header, Site Kit, a second GTM snippet from an earlier attempt, a hardcoded Meta Pixel. Two installs sending the same events double-count some purchases and make the real problem impossible to see. Before building anything new, view source on a product page and the order-received page and search for gtag, googletagmanager and fbq. There should be exactly one GTM container; remove the rest first.
6. The wrong GA4 property is receiving the data
The tags fire, the events arrive β in a different property. A staging Measurement ID left in the live container, a second property created during setup, or an ID typed with one wrong character all produce the same symptom: GA4 shows nothing while GTM Preview shows everything firing. Check the Measurement ID against GA4 Admin β Data Streams. Thirty seconds, and it saves hours.
7. The purchase fires twice
The opposite problem, hiding inside the same numbers: if a buyer reloads the order-received page, the purchase tag fires again and GA4 records a second purchase with the same transaction ID. The audit quoted above found hundreds of duplicated order numbers at one store. If GA4’s purchase count is higher than WooCommerce on some days, check for reloads β and use the order-age window in your dataLayer plugin (GTM4WP’s “Only track orders younger than” setting) so an old order cannot re-fire.
What the missing orders share β the pattern table
| Missing orders share⦠| Likely cause | Fix |
|---|---|---|
| Placed in the last two days | Not processed yet | Wait 48 hours, then compare |
| Nothing; small, even gap | Declined consent, ad blockers | Expected β check consent wiring, then accept it |
| One payment method; buyer never returns | Gateway does not redirect back | Gateway auto-return / redirect setting |
| One payment method; buyer returns late | Order older than the dataLayer window | Raise “Only track orders younger than” |
| A funnel or custom thank-you page | Page skips WooCommerce’s order-received step | DataLayer plugin’s custom thank-you page setting |
| Everything from one date | Cache, an update, or a second plugin | Exclude the order-received page from cache; check versions; keep one sender |
| No ecommerce events at all | Nothing set up to send them | Turn on the dataLayer (step 3) and build the container (step 2) |
| Purchases higher than orders | Thank-you page reloaded | Order-age window; one purchase per order ID |
Adapted from Synctag’s diagnostic pattern for the same problem, extended with the plugin settings and the cache and consent cases above. Find your pattern first β it decides which steps below actually matter for your store.
The fix: a complete WooCommerce GTM setup, step by step
Six steps. If your pattern points at one cause, jump to that step β but a store that has never had clean tracking should do all six, because the causes stack: a store with a missing dataLayer and a cached thank-you page needs both fixed.
Step 1 β Audit what is already installed
Open a product page and the order-received page, view source, and search for gtag, googletagmanager and fbq. Remove every duplicate: a second GA4 snippet, a hardcoded Pixel, an old GTM container. Keep exactly one GTM container. Skipping this is how a store ends up with the new container and the old snippet both firing.
Step 2 β Build the container with TagManagerBuilder
Building this container by hand means creating a Google tag, a GA4 event tag for every event, dataLayer variables for the values each event needs, a trigger for each event name, plus the equivalent tags for Google Ads and Meta β repetitive work where one mistyped event name silently breaks an event. The builder on this site generates the whole container from your selections, using the IDs you type rather than placeholders. Other generators show sample IDs such as G-XXXXXXXXXX that must be replaced before anything works; this one does not.
1. Choose your platform β WooCommerce. The platform decides which events the builder offers.

2. Pick the tools you use β GA4 at minimum, then Google Ads and Meta if you run ads.

3. Pick the events. For a standard setup, select all 23 WooCommerce events β an unused event costs nothing. The 14 ecommerce events cover the buying funnel (page_view, view_item, view_item_list, add_to_cart, remove_from_cart, begin_checkout, add_payment_info, purchase, refund, add_to_wishlist, apply_coupon, search, login, sign_up); the 9 engagement events cover the rest (form_submission, lead, phone_click, whatsapp_click, email_click, outbound_click, scroll, file_download, calendly_booking).

4. Enter your real IDs β GA4 Measurement ID, Google Ads conversion ID and label, Meta Pixel ID. The builder uses the IDs you type, not placeholders, so the container it generates is ready to import.

5. Check the Advanced options. Consent Mode v2, Enhanced Conversions, Debug Mode and Cross-Domain Tracking are off by default, and so is Server-Side Tracking. The one option on by default is “Generate Ecommerce DataLayer references”, which creates the dataLayer variables the ecommerce tags read.

6. Review and generate. The Review step shows the machine event names before you generate, so you can catch a wrong selection before it becomes a container. Then download the container JSON.

7. Check what was generated. A WooCommerce setup with GA4, Google Ads and Meta and all 23 events generates 37 tags, 23 triggers and 6 variables: one Google tag, one GA4 event tag per event, one trigger per event, and the matching Google Ads and Meta tags on the same triggers.

For the full platform walkthrough β install routes, the complete event list and the common errors β see the WooCommerce hub. The recipe index lists every platform Γ tool Γ event combination on the site.
Step 3 β Install GTM and switch on the WooCommerce dataLayer
The builder gives you the container. Getting GTM onto every page of the store, and getting the dataLayer built, is the plugin’s job. The cleanest route is GTM4WP (Google Tag Manager for WordPress) by Thomas Geiger: it installs the container properly and pushes a real WooCommerce dataLayer with product IDs, prices, currency and order values. Before you commit to this combined setup, compare it with a generated container in GTM4WP vs TagManagerBuilder for WooCommerce.
- In WordPress, go to Plugins β Add New, search for “Google Tag Manager for WordPress”, and activate it.
- Go to Settings β Google Tag Manager and enter your GTM container ID. GTM4WP must be the only thing injecting the container.
- Open the Integration tab, select WooCommerce, and tick Track e-commerce. This is the master switch β without it there is no purchase push at all.
- Set the dataLayer format to the GA4 ecommerce format, and keep the item ID consistent with your Google Ads feed (SKU or product ID β pick one and do not mix them).
With the switch on, the store pushes a purchase object like this on the order-received page:
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: '12345',
currency: 'USD',
value: 89.00,
items: [{ item_id: 'SKU-123', item_name: 'Example Mug', price: 89.00, quantity: 1 }]
}
});
The ecommerce: null line first clears the previous ecommerce object so a stale value cannot leak into the next event. The three fields GA4 needs for a purchase are transaction_id (the order number), value and currency; without them the event arrives but the revenue does not.
Step 4 β Import the container into GTM safely
The download is a GTM container JSON file. Importing it is a two-minute job, but doing it wrong can wipe a live container.
| Action | When to use it | What happens |
|---|---|---|
| Merge | Always, unless the container is brand new and empty | New tags, triggers and variables are added alongside the existing ones; choose “rename on conflict” if a name already exists |
| Overwrite | Only on a fresh, empty container | Everything already in the container is replaced β every existing tag, trigger and variable is gone |
| Import into a fresh workspace first | Always, on a container that matters | Review the imported tags and test them in Preview before anything touches the live version |
| Web JSON into a web container only | Always | A server container JSON imported into a web container (or the reverse) fails with an “incompatible container” error |
The import itself is Admin β Import Container β choose the JSON file, the workspace, and Merge or Overwrite. After the import, check for duplicate tags before you publish: if the container already had a GA4 tag or a Meta Pixel tag and the import added a second one, every event will fire twice. For the full version of what goes wrong here, see the site’s import-error guide, the most-read troubleshooting post on the site for a reason.
Step 5 β Check the container in GTM before you publish
Open the container and confirm the structure is what the builder promised: one Google tag carrying the GA4 Measurement ID, one GA4 event tag per event, one trigger per event, and the dataLayer variables the ecommerce tags read. The screenshots below are from this site’s own container, “Tag Manager Builder” (GTM-5NF3RF2P), showing the same structure a generated WooCommerce container has.




Check two things: the Google tag must fire on All Pages and be sequenced before the event tags, so no event tag can fire before the Google tag exists; and every trigger name must match its event name exactly β purchase is not Purchase, and a trigger listening for the wrong name silently never fires.
Step 6 β Test with a real order, then publish
Do not publish on faith. Place a logged-out test order β logged in as admin, caching and consent behave differently β and watch it in two places:
- GTM Preview mode: the
purchaseevent should appear in the event list on the order-received page, with the purchase tag fired and the transaction ID, value and currency visible in the tag’s values. - GA4 DebugView: the purchase event should arrive within seconds, with the same transaction ID. If Preview shows the tag fired but DebugView stays empty, the problem is between GTM and GA4 β usually the wrong Measurement ID, or consent holding the tag.
Only when the test purchase lands in DebugView with the right values should you publish the container. Then place one more test order after publishing, because Preview and the live container are not the same thing.
Send the same purchase to Google Ads and Meta
The same purchase should feed every ad platform you use β that is the point of routing it through GTM rather than installing each platform’s code separately. The generated container already includes these tags on the same purchase trigger; this section is what to check, not what to build again.
Google Ads: the conversion tracking tag fires on the purchase trigger, with the conversion ID and label from your Google Ads account, and reads the value and currency from the same dataLayer variables. Pass the order ID as the transaction ID so Google can deduplicate. Add the Conversion Linker tag on All Pages so clicks are attributed, and mark the purchase as a conversion in Google Ads so it feeds bidding. Full steps are on the WooCommerce Google Ads purchase recipe.
Meta: the Pixel base code loads through GTM and a Purchase event fires on the same trigger, with value, currency and content IDs from the same variables. Check it in Meta Events Manager with Test Events. If you later add server-side tracking, send the same event ID from browser and server so Meta deduplicates the pair instead of counting two purchases β a duplicated purchase is the fastest way to make reported return on ad spend fiction. Full steps are on the WooCommerce Meta purchase recipe.
When the thank-you page cannot be trusted
Some stores cannot fix the thank-you page dependency at all: a gateway that never returns the buyer, a one-page checkout that never loads the order-received page, or a funnel that replaces it entirely. For those stores the browser-side purchase event will always leak, and the honest fix is to send the purchase from the server as well β WooCommerce tells the server about the order directly, so the event no longer depends on the buyer’s browser loading a page. That is server-side tracking, and this site’s server-side tracking guide for WooCommerce covers the full setup. It does not change your consent obligations, but it removes the thank-you page from the chain, the single biggest cause of missing purchases.
Verification checklist
| Check | Where | Pass looks like |
|---|---|---|
| One GTM install only | View source on product + order-received pages | One googletagmanager snippet, no second gtag or fbq |
| DataLayer switched on | GTM4WP β Integration β WooCommerce | “Track e-commerce” ticked, GA4 format |
| Purchase push present | GTM Preview on the order-received page | purchase event with transaction_id, value, currency |
| Container structure right | GTM Tags / Triggers / Variables | Google tag on All Pages, one trigger per event |
| Test purchase in GA4 | GA4 DebugView | Purchase event with the test order’s transaction ID |
| Test purchase in Google Ads | Google Ads β Conversions | Conversion recorded with the order value |
| Test purchase in Meta | Meta Events Manager β Test Events | Purchase event with value and currency |
| No duplicates | GA4, a week after publishing | Purchase count matches WooCommerce orders within ~5% |
| Thank-you page not cached | Cache plugin / host settings | Cart, checkout and order-received pages excluded |
Work through the list in order. A store that passes all nine has no missing-purchase problem left to find β and if the gap is still there after all nine pass, the remaining difference is consent and ad blockers, the healthy few percent.
Related guide: GTM4WP vs TagManagerBuilder for WooCommerce: which one gets your tracking working?
Frequently asked questions
Why are my WooCommerce orders not showing in GA4?
Because GA4 only records a sale when a purchase event arrives with a transaction ID, value and currency. Most stores send that event from the order-received page, so a gateway that never redirects the buyer back, a dataLayer that was never switched on, a cached thank-you page, or a consent banner blocking the tag will hide the sale while WooCommerce still records the order. Compare order numbers with GA4 transaction IDs to find which orders are missing, then use the pattern table above to find the cause.
How do I check if WooCommerce purchase tracking works?
Place a logged-out test order and watch for the purchase event in GA4 DebugView. The event should arrive within seconds with the test order’s number as the transaction ID. If it appears in GTM Preview but not in DebugView, the problem is between GTM and GA4 β usually the wrong Measurement ID or consent holding the tag.
Does GA4 need a plugin to track WooCommerce purchases?
Yes, in practice. GA4 cannot see WooCommerce orders by itself β something has to push each purchase into the dataLayer in GA4’s format. GTM4WP does that with its “Track e-commerce” switch, and the container generated by the builder on this site turns those pushes into GA4, Google Ads and Meta tags. WooCommerce’s own free Google Analytics extension is the alternative if you do not use GTM.
Why does GA4 show fewer purchases than WooCommerce?
A gap under about 5% is normal β shoppers who decline cookies or run ad blockers are never measured. A larger gap means something is broken: the thank-you page is not loading, the dataLayer is off, the thank-you page is cached, or the events are going to the wrong property.
Why does GA4 show more purchases than WooCommerce?
The purchase tag is firing twice β usually because a buyer reloaded the order-received page and the tag fired again with the same transaction ID. Use the order-age window in your dataLayer plugin so an old order cannot re-fire, and check for a second GA4 install sending the same event.
Can I track WooCommerce purchases without the thank-you page?
Yes β with server-side tracking, WooCommerce tells the server about the order directly, so the purchase event no longer depends on the buyer’s browser loading the order-received page. This site’s server-side tracking guide for WooCommerce covers the setup. It does not change consent obligations, but it removes the single biggest cause of missing purchases.