Data Layer & Strategy

GA4 Not Matching Your Shop Orders? A 7-Step Audit

You open GA4 and see 412 purchases. Your Shopify, WooCommerce or Stripe dashboard says 458. Or the reverse. During Q4 you check this daily, and the gap starts to feel like a problem with your whole setup.

GA4 purchases not matching orders is normal to a degree, but a large or unexplained gap usually has a cause you can find. I work through the same checks in the same order each time, and this post gives you that audit.

By the end you will know which gaps are fixable, which are structural, and what variance to treat as acceptable.

Why GA4 and your shop will never match exactly

Your store’s order system is a database. It records an order when the order is created or paid, regardless of the buyer’s browser. GA4 is a measurement tool. It only records a purchase if a browser (or server) successfully sends a purchase event to Google.

That means GA4 depends on things your order database does not: the buyer reaching the confirmation page, scripts loading, consent being granted, and no blocker interfering. Each one can remove a purchase. Bugs can also add purchases that never existed as new orders.

So the goal is not a perfect match. The goal is a small, stable, explainable gap. A gap that suddenly changes is the signal that something broke.

Step 1: Decide exactly what you are comparing

Many gaps are comparison errors, not tracking errors. Before touching any tags, align these four things.

Orders versus transactions

Compare GA4’s purchase event count (or the Transactions metric) with orders in your store, not with payments, sessions or customers. If you take split payments or create draft orders by hand, your store may count differently from the website flow.

Date and time zone

Check the GA4 property time zone under Admin, then Property settings. Compare it with your store’s reporting time zone. A mismatch shifts late-evening orders into another day, which makes single-day comparisons look wrong. Compare a full week to reduce that noise.

Currency

If you sell in several currencies, GA4 reports in the property’s reporting currency, converted from the currency you send. Your store may report in another. Compare order counts first, then revenue.

Test and manual orders

Exclude test orders, internal staff orders and orders created in the admin, in your store export. Exclude internal traffic in GA4 if your team places test orders on the live site.

Step 2: Check consent and ad blockers for missing purchases

If GA4 shows fewer purchases, consent and blockers are the most common structural cause. If a visitor declines analytics cookies and your Consent Mode setup restricts measurement, their purchase may not be fully recorded in standard reports. Depending on your setup, Google may model some of that behavior, but modeled data does not equal a one-to-one order count.

Browser privacy tools and ad blockers can also stop the Google tag or Tag Manager from loading at all.

What to check:

  • Whether your consent banner is configured with Consent Mode, and whether the default state denies analytics storage for all regions or only some.
  • Whether the purchase tag in Google Tag Manager waits for the right consent signals through its consent settings.
  • Whether you could load tags from your own domain using server-side Tag Manager, which can reduce some loss. It does not override a visitor’s consent choice. See The Essential Shift to Server-Side Tagging in GA4.

Comparing the two numbers is often enough to spot a problem. On one Shopify Plus store, GA4 recorded about 40% fewer purchases than Shopify, yet only around 20% of visitors opted out on the consent banner. The numbers didn’t add up.

In GTM Preview, the purchase tag was firing on the thank-you page before the consent update had been applied. GA4 treated those purchases as unconsented, even for buyers who had clicked Accept. Once I changed the trigger so the tag fired after the consent update, the gap dropped from 40% to 14%.

GA4 purchases not matching orders: purchase tag firing before the consent update, before and after the fix
The fix that cut the gap from 40% to 14%: make the purchase tag wait for the consent update.

Step 3: Check the thank-you page, reloads and payment redirects

Most purchase tracking fires when the order confirmation page loads. That is fragile. Test it by placing a real or sandbox order and watching in GTM Preview mode.

Payment redirects

With PayPal, Klarna, bank transfers and other off-site payment methods, the buyer may pay and never return to your confirmation page. The order exists in your store, but no purchase event fires. Compare orders by payment method to spot it. If one method has a much bigger gap, that is your culprit.

Missing or late dataLayer data

If the tag fires before the dataLayer push is ready, the event can go out with missing values or not at all. Your push should happen before the GTM container’s trigger evaluates it. A complete example:

window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T-10458',
    value: 89.90,
    tax: 7.20,
    shipping: 5.00,
    currency: 'USD',
    items: [
      {
        item_id: 'SKU-123',
        item_name: 'Canvas Tote',
        price: 84.90,
        quantity: 1
      }
    ]
  }
});

In GTM, the GA4 event tag should be a Google Analytics: GA4 Event tag with event name purchase, using a Custom Event trigger whose event name is purchase. Make sure ecommerce data is sent from the dataLayer in the tag settings.

Reloads and revisits

A buyer who refreshes the confirmation page or reopens the email link can fire the event again. That moves you from missing purchases to extra ones, which is the next step.

Step 4: Check transaction_id and duplicates

If GA4 shows more purchases than your store, look for duplicates. Open Reports, then Monetization, then Ecommerce purchases, or build an Explore report with transaction ID as a dimension and event count as the metric. Any ID with a count above one is a repeat.

Also check for empty or (not set) transaction IDs. GA4 can deduplicate purchases that share an ID, but an event without one cannot be matched to an order at all. Causes and fixes for repeats are covered in How to Fix Duplicate Purchase Events in GA4, so I will not repeat them here.

Also check for the same purchase being sent by two sources, such as a store plugin plus a GTM tag.

Step 5: Check refunds, cancellations, tax and shipping in value

If order counts line up but revenue does not, the problem is almost always how value is built.

  • Refunds and cancellations: Your store may subtract them from reported revenue. GA4 does not unless you send a refund event. Decide whether you want to track refunds in GA4 at all.
  • Tax and shipping: Decide whether value includes them. Your store’s revenue figure may be net or gross. Pick one definition and make both sides use it.
  • Discounts: Confirm value is the amount actually paid, after discount codes and gift cards.
  • Currency: Send the correct three-letter currency code with every purchase.

Pull five recent orders and compare each one’s store total with the GA4 value. The pattern in the differences usually shows the cause quickly.

Step 6: Compare by segment to find where the gap lives

Instead of one overall number, split the comparison. Look at it by day, device, browser, payment method and traffic source. A gap concentrated in one place points to a specific cause:

  • One payment method: redirect problem.
  • One browser or Safari-heavy traffic: privacy or blocker loss.
  • One country or region: consent defaults.
  • Starting on a specific date: a release, plugin update or banner change.

Step 7: Set an acceptable variance and monitor it

Once you have fixed what you can, set a tolerance. I do not give a universal number, because the right one depends on your audience, consent rates and payment mix. Establish your own baseline by comparing several normal weeks, then treat that range as expected.

Build a simple Looker Studio report with a daily or weekly table: store orders (from a spreadsheet export or connector), GA4 purchases, the difference and the percentage gap. Add a threshold so a jump stands out. Review it after each site release, plugin update or consent banner change.

Remember that GA4 is for understanding marketing performance and behavior. Your store remains the source of truth for finance and fulfillment.

Key takeaways

  • A small gap between GA4 and your store is normal; a sudden or large one is not.
  • Align orders, time zone, currency and test orders before debugging tags.
  • Consent, blockers and off-site payment redirects are the usual reasons for missing purchases.
  • Duplicates and missing transaction_id values explain most extra purchases.
  • Define value clearly, including tax, shipping, discounts and refunds.
  • Set your own baseline variance and monitor it in Looker Studio.

If your numbers still do not line up after this audit, I can review your dataLayer, GTM container and consent setup and tell you what is fixable. Get in touch with The GTM Guy and send me the gap you are seeing.