Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 missing on thank-you page: how to find and fix it

TRK-012High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A thank-you page (or order confirmation page) is the page shown after someone submits a form, books a call or pays. Most GA4 conversions are recorded here: a generate_lead or purchase event fires when the page loads. If the GA4 tag is missing from this page, no event is sent and GA4 sees nothing.

Where the tracking breaks
  1. Ad or search clickVisitor lands with GA4 running
  2. Landing pagepage_view recorded
  3. Form or checkoutCustomer completes it
  4. Thank-you pageGA4 tag missing
  5. Conversion in GA4Never recorded

The visitor converts, but the page that should report it has no GA4 tag.

Why it costs you leads or sales

Your sales still happen, but your data says they did not. Reports show traffic with no conversions, so channels and campaigns look like failures. If you import GA4 conversions into Google Ads, bidding gets no signal and spends worse. You may pause campaigns that actually work.

Real vs reported conversionsExample numbers
Real vs reported conversions (example)Real leads: 100 conversions; Reported, tag missing: 0 conversions; Reported, tag fixed: 100 conversions038771000100Real leadsReported, tag missingReported, tag fixedconversions

Example: 100 real leads in a month, with GA4 missing on the thank-you page versus working.

How to check if your site has it

Check the thank-you page for GA4
  1. Complete a real test conversion

    Submit your own form or place a test order so you land on the real thank-you page. Do not open the URL directly if it needs session data.

  2. Use Tag Assistant

    Open tagassistant.google.com, connect your site and repeat the conversion. Check that a Google tag with your G- measurement ID appears on the thank-you page.

  3. Watch GA4 DebugView

    In GA4 go to Admin > DebugView, with Tag Assistant or the Chrome GA debugger on. Confirm page_view and your conversion event arrive when the page loads.

  4. Check the network tab

    In browser DevTools > Network, filter by collect. A request to google-analytics.com/g/collect with your tid=G-XXXX should appear on the thank-you page.

  5. Test each path

    Repeat on mobile, with each payment method and each form. The tag can be missing on only one of them.

How to fix it

The goal is the same everywhere: the GA4 tag loads on the thank-you page, and the conversion event fires once. Pick your platform below.

Add GA4 to the thank-you page
  1. Check how GA4 is installed

    Look in your analytics plugin (for example Site Kit) or theme header settings. Make sure it is not excluded from the thank-you page or from logged-in or specific templates.

  2. Check page-level exclusions

    Some plugins and cache or optimisation tools can block scripts on selected URLs. Remove the thank-you URL from any exclusion list.

  3. Fire the event

    If your form plugin redirects to a page, trigger the event on that page via GTM or a header snippet limited to that URL.

For custom code, this is a working example for a lead thank-you page. Replace G-XXXXXXXXXX with your own measurement ID.

GA4 tag and generate_lead event on a thank-you pagehtml
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
  gtag('event', 'generate_lead');
</script>

How to confirm it's fixed

Thank-you page tracking

Broken

  • No Google tag on the page
  • No collect request in the network tab
  • DebugView shows nothing after the form
  • Conversions at zero

Fixed

  • Tag loads with your G- ID
  • collect request sent on page load
  • DebugView shows the conversion event once
  • Conversions appear in Reports
Confirmation checks
  • Tag Assistant detects the Google tag on the thank-you page
  • DebugView shows the conversion event once per conversion
  • The event is marked as a key event
  • Mobile and every payment method or form work too
  • Events appear in Realtime, then in standard reports after processing

How to prevent it happening again

Thank-you pages break quietly because nobody visits them unless they convert. Theme changes, new forms, checkout updates and cache plugins are the usual causes.

Prevention habits
  • Install the tag in a shared layout, not page by page
  • Run a test conversion after every theme, plugin, form or checkout change
  • Keep a list of every thank-you URL and form
  • Avoid blocking scripts on the confirmation URL in cache or consent tools
  • Use a scheduled test of the full journey rather than relying on memory

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real customer journey on a schedule, such as a lead form or checkout, and checks the tracking hits sent at each step, including whether GA4 fires on the page after the conversion. If it is missing, the failure is re-checked from a second region and you get one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause.

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

Not sure how this happened?

How it usually unfolds
  1. Day 0

    A theme, form or checkout change removes the tag from the confirmation template

  2. Day 1

    Customers still convert, but GA4 shows no conversions

  3. Week 1

    Campaign reports look poor and ad bidding loses its signal

  4. Fix

    Tag restored and a test conversion confirms it

Questions people ask

Why is my GA4 not tracking the thank-you page?

Usually the Google tag or GTM container is not loaded on that page, or the trigger for the conversion event does not match its URL. Complete a test conversion and check Tag Assistant or DebugView on the page to see which it is.

Why is my GA4 purchase event not showing in reports?

The purchase event may not fire because the tag is missing from the order confirmation page, or it fires before the tag loads. Also check it is not blocked by consent settings or cache plugins, and that you are looking after GA4 has processed the data.

How do I check if GA4 is firing on my thank-you page?

Open GA4 Admin > DebugView, then complete a test conversion with Tag Assistant or the debugger on. You should see the conversion event arrive when the thank-you page loads. You can also look for a g/collect request in the browser Network tab.

Do I need a separate GA4 tag on the thank-you page?

No separate tag, but the same Google tag must load there. If your tag is in a shared header or GTM container, it covers every page. If the thank-you page uses a different template or domain, you must add it there too.

Why does GA4 show page views but no conversions?

Page views come from the tag on normal pages, while conversions depend on the event firing after the form or purchase. The thank-you page may lack the tag, or the event may not be marked as a key event in GA4 Admin > Events.

Why does my form show a success message and GA4 records no lead?

If the form shows a message without loading a new page, no thank-you page view happens to trigger your tag. Send the event on form submit success, or redirect to a real thank-you URL that has the tag.

Can FunnelGuard tell me if GA4 is missing on my thank-you page?

Yes. It runs your real journey on a schedule, checks the GA4 hits at each step and alerts you with a screenshot and a likely cause if the one after conversion is missing.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.