Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 purchase event missing on order confirmation: how to fix it

TRK-077High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

GA4 (Google Analytics 4) records a sale through an event called purchase. It should fire once, when the customer lands on the order confirmation page after paying. It carries the order details: a transaction_id, the value, the currency and an items list.

This issue means that event never arrives. Customers can pay and see a thank-you page, but GA4 has no record of the sale. Other events such as page_view may still work, which makes the gap easy to miss.

Why it costs you leads or sales

The sale still happens, so you do not lose the order itself. You lose the data you use to grow. Revenue reports in GA4 show zero or too little. Google Ads and other platforms that import GA4 conversions cannot see which campaigns produce sales, so bidding and budget decisions rely on bad data.

You may cut a campaign that works, or keep funding one that does not. The longer the event is missing, the more spend is judged on incomplete numbers.

Where the purchase signal is lost
  1. Product pageVisitor views the item
  2. CheckoutVisitor pays
  3. Confirmation pageNo purchase event sent
  4. GA4 revenue reportSale missing
  5. Ads conversion importNo sale to learn from

The customer completes the order, but the confirmation page never sends the purchase event, so everything downstream goes blind.

Orders in the store vs purchases in GA4Example numbers
Orders in the store vs purchases in GA4 (example)Orders in store: 100 orders; Purchases in GA4: 12 orders0387710012Orders in storePurchases in GA4orders

Example: a store takes 100 orders in a week, but GA4 only records the few that load the confirmation page with the tag working.

How to check if your site has it

Check for the purchase event
  1. Compare GA4 with your store

    In GA4 open Reports > Monetization > Ecommerce purchases for the last 7 days. Compare the purchase count with the orders in your store admin. A large gap points to this issue.

  2. Open DebugView

    In GA4 go to Admin > DebugView. Turn on Google Tag Assistant preview for your container, or install the Google Analytics Debugger browser extension.

  3. Place a test order

    Complete an order using a 100% discount code or the store's test payment mode. Do not enter a real card in a live store unless you plan to refund it.

  4. Look for the event

    On the confirmation page, watch DebugView for a purchase event. Click it and check it has transaction_id, value, currency and items.

  5. Check the browser console

    In DevTools run dataLayer in the console, or open the Network tab and filter for collect. If you see no purchase push or no request with en=purchase, the event is not sent.

How to fix it

First find which layer fails. Either the page never pushes the order data, or the GA4 tag never fires on that push, or the hit is blocked or sent from another domain. Then use the section for your platform.

Common causes and what to look for
CauseWhat you seeFix
No dataLayer push on confirmation pagedataLayer has no purchase entryAdd the push or enable the platform's ecommerce tracking
GA4 tag trigger does not matchPush exists, tag does not fire in Tag AssistantSet the trigger to the Custom Event named purchase
Checkout on another domainEvent appears on one domain but not the otherSet up cross-domain measurement and add the domain to the tag
Confirmation page blocked or redirectedCustomer never reaches the pageFix the return URL or redirect
Consent blocks analyticsNo hit until consent is givenCheck your consent mode setup
Fix by platform
  1. Use the Google & YouTube app or customer events

    In Shopify admin open Settings > Customer events. Check that your GA4 pixel is connected and not in a disconnected state. If you use the Google & YouTube app, confirm your GA4 property is linked.

  2. Avoid duplicate setups

    Use one method only (app, custom pixel or a theme snippet). Remove old code from the theme or from Additional scripts so the purchase is not sent twice or blocked.

  3. Test with a real checkout

    Shopify's checkout and thank-you pages run in a sandbox, so use Tag Assistant or DebugView on a test order to confirm the event arrives.

GA4 purchase push to the data layer (use real order values)javascript
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T-10045',
    value: 59.90,
    currency: 'USD',
    items: [
      {
        item_id: 'SKU-123',
        item_name: 'Example product',
        price: 59.90,
        quantity: 1
      }
    ]
  }
});

How to confirm it's fixed

Confirmation checks
  • A test order shows a purchase event in DebugView
  • The event has transaction_id, value, currency and items
  • Tag Assistant shows the GA4 tag fired on the purchase push
  • The value matches the order total in your store
  • The event appears once, not twice
  • After 24 to 48 hours, GA4 Ecommerce purchases matches your store orders closely

How to prevent it happening again

Purchase tracking usually breaks after a change: a theme update, a new checkout app, a Tag Manager publish or a consent banner change. Test a full order after each of those.

Habits that keep it working
  • Test a purchase after every theme, plugin or checkout change
  • Keep one owner for the Tag Manager container and review changes before publishing
  • Add a weekly check that GA4 purchases roughly match store orders
  • Keep the confirmation page out of page caches
  • Run an automated test purchase on a schedule

How FunnelGuard handles this

FunnelGuard detects this issue today. A robot visitor runs a test purchase through your checkout on a schedule, from the EU or the US, and checks whether the GA4 purchase hit is sent on the confirmation page. If it is missing, the failure is re-checked from a second region, then one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause.

Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). It stops before payment unless your store's test mode is set up, and it never enters real card details. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my GA4 purchase event not showing up?

Most often the confirmation page does not push the order data, or the GA4 tag is not set to fire on the purchase event. It can also be blocked by consent settings or lost when checkout runs on another domain. Place a test order and watch DebugView to see which step fails.

How do I test the GA4 purchase event?

Open Admin > DebugView in GA4, enable debug mode through Tag Assistant or the Google Analytics Debugger extension, and place a test order. Use a 100% discount code or your store's test payment mode. The purchase event should appear on the confirmation page with its parameters.

Why does GA4 show fewer purchases than my store?

Some purchases are not tracked because the event fails for some customers. Typical reasons are visitors who decline consent, ad blockers, customers who close the tab before the confirmation page loads, and payment redirects that skip the page. A big gap, such as most orders missing, points to a broken setup.

What parameters does the GA4 purchase event need?

Send transaction_id, value, currency and an items array. Each item should have item_id and item_name, plus price and quantity. Without value and currency, revenue will not report correctly.

Why is the purchase event missing on my Shopify thank-you page?

Check Settings > Customer events and your Google & YouTube app connection in Shopify admin. A disconnected pixel or old code in the theme can stop it. Shopify's checkout runs in a sandbox, so use DebugView to test an order.

Can a consent banner stop the GA4 purchase event?

Yes. If analytics consent is denied or the consent setup blocks the tag, GA4 may not receive the event, or may receive only limited signals. Test with consent both granted and denied to see the difference.

How long until purchases appear in GA4 reports after a fix?

DebugView shows events within seconds. Standard reports can take 24 to 48 hours to fully update. Use DebugView to confirm the fix straight away.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: test purchase.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.