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.
- Form submittedOne real lead
- Thank-you page loadsLead fires once (correct)
- Visitor reloads or revisitsLead fires again
- Meta reports 2+ leadsInflated data, skewed optimisation
The Lead event is tied to the page, not to the form submit.
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
Install a pixel debugger
Use the Meta Pixel Helper browser extension, or open Events Manager > Test events.
Submit your form
Complete the form with a test lead and land on the thank-you page. Confirm one Lead event appears.
Reload the page
Press refresh. If Pixel Helper or Test events shows Lead again, the issue is present.
Open the URL directly
Paste the thank-you URL into a new tab without submitting. If Lead fires, anyone can trigger it by visiting.
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.
(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 });
})();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.
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.
Preview and publish
Use Preview mode, reload the thank-you page and confirm the tag fires only once.
Find where Lead is added
Check your pixel plugin, form plugin integration or theme header for a Lead call on the thank-you page.
Move it to the form success
Use the form plugin's success event or redirect setting, or paste the guard snippet above into the thank-you page only.
Remove duplicates
If both a plugin and a manual snippet send Lead, keep one.
Check Customer events
In Settings > Customer events, review pixels that send Lead on a page-view of a custom thank-you page.
Use a submit-based event
Trigger Lead from the form's submit success, or add the guard snippet to the page template used after sign-up.
Remove page-level Lead code
Open the thank-you page settings > Custom code and remove the plain fbq Lead call from the head or before body.
Add the guarded version
Paste the guard snippet into the same place, or fire Lead on the form's submit event through GTM.
Fire on success callback
Call fbq('track', 'Lead') inside your AJAX or fetch success handler instead of on page load.
Add server-side deduplication
If you also use the Conversions API, send the same event_id from browser and server so Meta merges them.
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
- 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
- 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.
Related issues
- TRK-169Lead event fires on page load instead of submitFix guide
- TRK-171Lead event missing on submitFix guide
- TRK-174PageView firing twice per pageFix guide
- TRK-178event_id missing on browser eventsFix guide
- TRK-179CAPI not deduplicating with browser event (event_id mismatch)Fix guide
- TRK-166Meta Pixel missing on funnel pageFix guide