Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Lead event firing on thank-you page reload: how to fix

TRK-170Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

The Meta Pixel is a script that sends events, such as Lead, from your site to Meta. A common setup puts the Lead code on the thank-you page, because reaching that page means the form was sent. The problem is that the pixel does not know why the page loaded. A reload, a return from another tab, an email link to the page or a bookmark all run the same code and send another Lead.

Why it costs you leads or sales

Meta's delivery system learns from your conversion events. If the same person is counted several times, reported cost per lead looks lower than it really is, and Meta learns from inflated signals. You may scale a campaign that looks cheap but is not bringing in real enquiries. Reports also stop matching your CRM, so nobody trusts them.

How one lead becomes several
  1. Form submittedOne real lead
  2. Thank-you page loadsLead fires once (correct)
  3. Visitor reloads or revisitsLead fires again
  4. Meta reports 2+ leadsInflated data, skewed optimisation

The Lead event is tied to the page, not to the form submit.

Reported leads vs real leadsExample numbers
Reported leads vs real leads (example)Real leads in CRM: 100 leads; Lead events in Meta: 130 leads050100100130Real leads in CRMLead events in Metaleads

Example: 100 real enquiries can show as 130 Lead events in Meta if some visitors reload or revisit the thank-you page.

How to check if your site has it

Test for duplicate Lead events
  1. Install a pixel debugger

    Use the Meta Pixel Helper browser extension, or open Events Manager > Test events.

  2. Submit your form

    Complete the form with a test lead and land on the thank-you page. Confirm one Lead event appears.

  3. Reload the page

    Press refresh. If Pixel Helper or Test events shows Lead again, the issue is present.

  4. Open the URL directly

    Paste the thank-you URL into a new tab without submitting. If Lead fires, anyone can trigger it by visiting.

  5. Compare counts

    Compare Lead events in Events Manager with real leads in your CRM for the same dates. A consistently higher Meta count points to duplicates.

How to fix it

There are two good options. The best is to fire Lead from the form submit success, not from page load. If your setup needs the thank-you page, add a guard so it only fires once per visitor and lead.

Once-only guard for a thank-you pagejavascript
(function () {
  var key = 'fg_lead_sent';
  if (sessionStorage.getItem(key)) return; // already sent in this session
  sessionStorage.setItem(key, '1');
  var id = 'lead_' + Date.now() + '_' + Math.random().toString(36).slice(2);
  fbq('track', 'Lead', {}, { eventID: id });
})();
Fix by platform
  1. Change the trigger

    Open your Meta Lead tag. Replace the Page View trigger for the thank-you URL with a form submission or custom event trigger fired by the form's success.

  2. Or add a once-per-session guard

    Set the tag's Advanced Settings > Tag firing options to Once per page is not enough on reload. Instead create a first-party cookie variable, add a trigger exception when it equals 1, and set the cookie in a second tag after Lead fires.

  3. Preview and publish

    Use Preview mode, reload the thank-you page and confirm the tag fires only once.

Thank-you page tracking

Before

  • Lead code runs on every page load
  • Reloads and bookmarks add leads
  • Meta count higher than CRM

After

  • Lead fires on submit or once per lead
  • Reloads do nothing
  • Meta count close to CRM

How to confirm it's fixed

Confirmation checks
  • Submitting the form sends exactly one Lead in Test events
  • Reloading the thank-you page sends no new Lead
  • Opening the thank-you URL directly sends no Lead
  • The back button does not send another Lead
  • Over a week, Meta Lead counts are close to CRM leads

How to prevent it happening again

Prevention habits
  • Fire conversion events on the action, not on a page view
  • Use a unique event_id on every Lead, browser and server
  • Review Meta Lead counts against your CRM monthly
  • Re-test the reload and direct-URL cases after changing themes, plugins or tags
  • Keep one owner for pixel code so it is not added twice

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real lead journey on a schedule and checks the tracking hits sent to Meta, so it can tell you if the Lead event is missing or fires at the wrong step in a normal run. It does not reload the thank-you page or revisit it from a bookmark to see whether Lead fires again, so it will not reliably catch duplicates caused by reloads.

Questions people ask

Why is my Meta Pixel Lead event firing twice?

Most often the Lead code sits on the thank-you page, so it runs on every load, including reloads and revisits. Another cause is two sources, such as a plugin and a manual snippet, both sending Lead. Check with Meta Pixel Helper after a reload.

How do I stop the Facebook pixel firing on page refresh?

Fire the event when the form submit succeeds instead of on page load. If you must use the thank-you page, add a once-only guard using sessionStorage, a cookie or a lead ID your server marks as used.

Does Meta remove duplicate Lead events automatically?

Meta deduplicates only when browser and server events share the same event name and event_id. Repeated browser events from reloads usually have different or no IDs, so they can be counted as separate leads.

How can I tell if my Meta leads are inflated?

Compare Lead events in Events Manager with real leads in your CRM for the same period. If Meta is consistently higher, test a reload and a direct visit to the thank-you URL to find the cause.

Is a thank-you page a bad place for the Lead event?

It is acceptable only with protection. Without a guard, anyone who reloads or opens the URL counts as a lead. Firing on form submit is more accurate.

Can FunnelGuard detect duplicate Lead events on reload?

Only partly. FunnelGuard checks the Meta hits in your real lead journey, but it does not reload the thank-you page to test for repeats. Test that case by hand.

Will fixing this reduce my reported leads?

Yes, the reported number will likely drop to match real enquiries. That is more accurate and gives Meta cleaner data to optimise on.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

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.