Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Conversion fires on every thank-you page refresh: how to fix it

TRK-046Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Many sites send a conversion event such as generate_lead or purchase when the thank-you (confirmation) page loads. That works once. The trouble is that a page load is not the same as a conversion. If the visitor refreshes the page, presses Back and Forward, reopens the tab, or opens the URL from a bookmark or a confirmation email, the page loads again and the tag fires again.

The result is duplicate conversions: one real person, several counted events. GA4 does deduplicate purchases that share the same transaction_id, but only in some cases. Other events, such as generate_lead, have no built-in deduplication, and ad platforms like Google Ads and Meta count what they receive unless you give them an order ID or event ID.

How one lead becomes several conversions
  1. Form submittedOne real lead
  2. Thank-you page loadsConversion tag fires (correct)
  3. Visitor refreshesTag fires again
  4. GA4 and ad platformsCount 2+ conversions
  5. Reports and biddingInflated numbers

The real conversion happens once, but the thank-you page tag fires on every load.

Why it costs you leads or sales

Duplicate conversions do not lose a lead directly. They make your data wrong, and wrong data leads to wrong decisions. Your cost per lead looks lower than it is. Smart Bidding in Google Ads and Meta's optimisation learn from the inflated signals and may favour traffic that refreshes a lot rather than traffic that converts. You may scale a campaign that is not really working, or report results to a client that cannot be matched to the CRM.

Reported vs real leadsExample numbers
Reported vs real leads (example)Leads in CRM: 100 leads; Conversions in GA4: 128 leads04998100128Leads in CRMConversions in GA4leads

Example: in one week the CRM receives 100 real leads, but 28 visitors refresh or revisit the thank-you page, so GA4 reports 128.

How to check if your site has it

Test for duplicate firing
  1. Compare totals

    Compare GA4 conversions for the event with real leads or orders in your CRM or shop for the same dates. GA4 consistently higher points to duplicates.

  2. Open GTM Preview or GA4 DebugView

    Complete a test submission and watch the event arrive on the thank-you page. Use your own test data, not a real customer's.

  3. Refresh the thank-you page

    Press reload three times. If the event appears again each time, it is tied to the page view.

  4. Try Back and direct URL

    Navigate away and press Back, then paste the thank-you URL into a new tab. Note whether the event fires.

  5. Look for repeats in GA4

    In Reports, Engagement, Events, check the conversion event. In Explore, add Event name and Page location and look for sessions with several of the same event. For purchases, compare Transaction ID counts to see repeats.

How to fix it

There are three approaches. Use the first where you can, and add the others as a safety net. 1) Fire on the real action, such as the form's success event, not the page load. 2) Send a unique ID so platforms can deduplicate. 3) Stop the tag firing more than once per visitor or per order.

Fix by platform
  1. Change the trigger

    Replace the 'Page View' trigger on the thank-you URL with a trigger for the real action, such as a Custom Event pushed by your form on success.

  2. Or limit firing

    If you must keep the page trigger, open the tag, go to Advanced Settings, Tag firing options and choose 'Once per page' only as a minimum. Reloads still count as new pages, so also add the cookie check below.

  3. Add a cookie guard

    Create a 1st-party cookie variable (for example lead_sent) and add a trigger exception, or a condition, so the tag fires only when the cookie is not set. Set the cookie from a Custom HTML tag fired after the conversion tag.

  4. Preview and publish

    Test in Preview mode: first load fires, refresh does not. Then publish.

Fire the conversion once per lead (thank-you page)javascript
(function () {
  var key = 'fg_conv_sent_generate_lead';
  try {
    if (localStorage.getItem(key)) return; // already counted
    window.gtag('event', 'generate_lead', { form_id: 'contact' });
    localStorage.setItem(key, String(Date.now()));
  } catch (e) {
    // storage blocked: fall back to firing once per page
    window.gtag('event', 'generate_lead', { form_id: 'contact' });
  }
})();
Purchase with a unique transaction_idjavascript
gtag('event', 'purchase', {
  transaction_id: 'ORDER-10482',
  value: 99.00,
  currency: 'USD',
  items: [{ item_id: 'SKU-1', item_name: 'Example product', price: 99.00, quantity: 1 }]
});
Thank-you page behaviour

Before

  • Event fires on every page load
  • Refresh adds another conversion
  • Direct visits to the URL count
  • GA4 total is higher than the CRM

After

  • Event fires on the real action
  • Reloads are ignored
  • Unique ID sent for deduplication
  • GA4 total matches the CRM closely

How to confirm it's fixed

Confirmation checks
  • Submit a test lead: the event fires exactly once
  • Refresh the thank-you page three times: no new event
  • Press Back then Forward: no new event
  • Open the thank-you URL directly in a new private window without submitting: no conversion
  • GA4 DebugView shows one event per test lead
  • After a few days, GA4 totals sit close to CRM or order counts

How to prevent it happening again

Prevention habits
  • Trigger conversions on the action, not the page view
  • Always send transaction_id on purchases
  • Reconcile analytics against CRM or orders monthly
  • Re-test refresh and Back after changing themes, plugins or GTM containers
  • Keep one owner for each conversion event so two tools do not both send it

How FunnelGuard handles this

FunnelGuard detects this issue only partly. On each scheduled run, the robot visitor completes your journey and counts how many times the conversion hit is sent during that run. If the same conversion fires more than once in a single pass, you get an alert with a screenshot and a likely cause.

What it does not check is a reload: it does not refresh the thank-you page or revisit it later, so a tag that only repeats on refresh, Back or a bookmark visit can go unnoticed. Cover that by hand: after any change, run the refresh, Back and direct-URL tests above, and compare GA4 totals against your CRM or orders each month.

Questions people ask

Why is my GA4 conversion counted twice when someone refreshes the thank-you page?

Because the event is attached to the page view, not to the action. Each reload loads the page again, so the tag fires again. Move the trigger to the form success event or add a once-only guard.

Does GA4 deduplicate conversions automatically?

Only in limited cases. GA4 can ignore repeated purchase events that share the same transaction_id, but events like generate_lead have no built-in deduplication. Ad platforms also need their own order or event IDs.

How do I stop a GTM tag firing on every page reload?

Trigger the tag on a custom event from the form's success, not on the thank-you page view. If you must use the page, set a first-party cookie after the tag fires and add a condition so the tag runs only when that cookie is absent.

How can I tell if my thank-you page is inflating conversions?

Refresh the page in GTM Preview or GA4 DebugView and see if the event repeats. Then compare GA4 conversions with real leads or orders in your CRM or shop. A consistently higher GA4 count is the usual sign.

Should I use transaction_id for leads too?

transaction_id is meant for purchases. For leads, send your own unique lead ID as an event parameter and use it to deduplicate in your CRM or when importing offline conversions.

Can people trigger conversions by opening the thank-you URL directly?

Yes, if the tag fires on page load. Anyone with the link, including from a bookmark or an email, can count as a conversion. Firing on the action closes this gap.

Does FunnelGuard detect conversions firing on refresh?

Only partly. It counts how many times the conversion fires during each run, so a double fire in one pass is caught. It does not reload the page, so refresh-only duplicates need a manual test.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: counts checked per run, not on reload.

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.