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.
- Product pageVisitor views the item
- CheckoutVisitor pays
- Confirmation pageNo purchase event sent
- GA4 revenue reportSale missing
- 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.
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
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.
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.
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.
Look for the event
On the confirmation page, watch DebugView for a
purchaseevent. Click it and check it hastransaction_id,value,currencyanditems.Check the browser console
In DevTools run
dataLayerin the console, or open the Network tab and filter forcollect. If you see nopurchasepush or no request withen=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.
| Cause | What you see | Fix |
|---|---|---|
| No dataLayer push on confirmation page | dataLayer has no purchase entry | Add the push or enable the platform's ecommerce tracking |
| GA4 tag trigger does not match | Push exists, tag does not fire in Tag Assistant | Set the trigger to the Custom Event named purchase |
| Checkout on another domain | Event appears on one domain but not the other | Set up cross-domain measurement and add the domain to the tag |
| Confirmation page blocked or redirected | Customer never reaches the page | Fix the return URL or redirect |
| Consent blocks analytics | No hit until consent is given | Check your consent mode setup |
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.
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.
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.
Check your ecommerce plugin
For WooCommerce, use a GA4 plugin that supports ecommerce events and enable the purchase event in its settings. Plugin names and menus vary.
Make sure the thank-you page uses the standard template
Custom thank-you pages or redirects to a static page often lose the order data. Use the WooCommerce order-received endpoint or pass the order ID to your page.
Clear caches
Exclude the checkout and order-received pages from page caching so the order data is not served stale.
Create the trigger
Add a Custom Event trigger with the event name
purchase.Create the GA4 event tag
Add a GA4 Event tag with the event name
purchase. Tick Send Ecommerce data and choose Data Layer as the source.Preview and publish
Use Preview mode, place a test order and confirm the tag fires on the
purchasepush. Then publish the container.
Add the push to the order confirmation page
In Webflow Ecommerce open Settings > Checkout and find the order confirmation page. Add the purchase code in the page's custom code or in Project settings > Custom code, using the order data Webflow exposes.
Publish and test
Custom code only runs on the published site, so publish and test there.
Connect Google Analytics
In the Wix dashboard open Marketing & SEO > Marketing Integrations and connect your GA4 measurement ID.
Check ecommerce tracking
Use DebugView on a test order. If the purchase does not appear, check whether the integration supports your checkout or use Tag Manager with Wix's supported events.
Push the event once per order
On the confirmation page, after the order is confirmed server-side, push the purchase to the data layer or call gtag with the real order values.
Use real order data
Fill
transaction_id,value,currencyanditemsfrom the order, not from hard-coded values.
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
- A test order shows a
purchaseevent in DebugView - The event has
transaction_id,value,currencyanditems - 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.
- 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.
Related issues
- TRK-078purchase sent without transaction_idFix guide
- TRK-079purchase fires twice (refresh of thank-you page)Fix guide
- TRK-082purchase value differs from order totalFix guide
- TRK-083items array missing from ecommerce eventsFix guide
- TRK-092Old UA enhanced ecommerce schema pushed instead of GA4 schemaFix guide
- TRK-098Purchase tracked only when customer returns from PayPal/3DS redirectFix guide