Field notes Field note 07
Meta Conversions API deduplication: fix double counted leads
Meta counting the same lead twice? How Pixel and Conversions API deduplication works with event_id and event_name, how to test it, and the usual breaks.
· 9 min read
Meta deduplicates a lead sent by both the Meta Pixel and the Conversions API when the two events carry the same event_name and the same event ID. If either one differs, or one side sends no ID at all, Meta usually keeps both and your lead counts twice.
That is not cosmetic. Meta's help page on deduplication says that without it you may see artificially high conversion numbers, which mislead optimisation and budget decisions: cost per lead looks better than it is, and campaigns learn from leads that never happened.
Checked on 2026-11-04 against: Meta Business Help Center pages on deduplication, Conversions API best practices, server event details, the Test events tool and event match quality, plus Meta for Developers pages on deduplication, customer information parameters, the Conversions API and Pixel consent.
Meta CAPI deduplication: symptoms, causes and tests
Start with the row that matches what you see. The number in each cause matches the section below.
| Symptom | Likely cause | How to test |
|---|---|---|
| Meta shows roughly twice the leads your CRM has | 1. Pixel and server event share no event ID | Event deduplication tab: check the event ID percentage on both sides |
| Duplicates only from one source (all browser, or all server) | 2. A plugin and a GTM tag both send the same event | Test events: count the browser events for one form submit |
| Server and browser counts both look right, but never merge | 3. event_name differs between the two sides (Lead vs lead, Lead vs SubmitForm) | Compare the event names in Test events, character by character |
| Leads go missing after the first one in a session | 4. A single page app reuses the same event ID for every submit | Submit twice in one session and compare the IDs |
| Event ID present in the browser, empty on the server | 5. The ID is not passed from page to server | Log the payload your server sends for one test lead |
| Low event match quality, few server events attributed | 6. Server event sends little or badly hashed customer information | Event matching tab and event match quality score |
How Pixel and Conversions API deduplication works
Meta merges a browser event and a server event when they carry the same keys.
Meta recommends a redundant setup: per its Conversions API best practices, send the same events through both the Pixel and the Conversions API, because the server can catch events the Pixel misses through network issues or page loading errors. Deduplication turns the two copies back into one.
The rules, from the deduplication help page:
event_namemust match between the Pixel and the Conversions API event.event_idmust be identical for both events.- As a fallback, Meta can also deduplicate when the
event_nameand eitherexternal_idorfbpmatch. Meta's developer guide adds that this fallback works only when the browser event arrives first and the server event follows. - When the two copies are similar, Meta prefers the event received first.
Deduplication also applies within one source: repeated Pixel events with the same event and eventID, and repeated server events with the same event_name and event_id.
The time window. Meta's developer guide on handling duplicate Pixel and Conversions API events says events are deduplicated only if they are received within 48 hours of the first event with a given ID. A server event sent a day late by a batch job can still match, but one sent three days later will not. Send the server event straight away anyway: Meta's best practices ask for real time or as close to it as possible.
fbp and fbc. fbp is the browser ID that the Pixel stores in a first-party cookie (see Meta's page on Pixel cookie settings), and fbc carries the ad click ID. Send both with every server event: they help matching (see cause 6), and fbp is also the deduplication fallback above.
1. The Pixel and server event share no event ID
With no event ID, or a different one on each side, Meta has nothing to merge on and keeps both copies.
How to test: In Events Manager, open your dataset, find the Lead event, click View details and open the Event deduplication tab. Per Meta's page on server event details, the Deduplication keys table shows the percentage of Pixel and Conversions API events received with each key, and Overlap shows the share of events with a given key received by both. Low event ID coverage on either side, or low overlap, means duplicates get through.
Fix: Generate one ID per lead in the browser, use it in the Pixel call, and send the same value to your server with the form data. Meta's developer docs pass the ID as eventID in the fourth argument of the Pixel track call (Pixel reference):
const leadEventId = crypto.randomUUID();
fbq('track', 'Lead', {}, { eventID: leadEventId });
// Send leadEventId to your server with the form fields,
// for example as a hidden input or in the fetch body.
Note the spelling: eventID in the Pixel, event_id in the Conversions API payload. The value is what has to match.
2. A plugin and a GTM tag both send the same event
A WordPress or Shopify plugin sends Lead, and a Google Tag Manager (GTM) tag also sends Lead, each with its own ID or none. Meta's deduplication page notes that many partner integrations handle the deduplication parameters for you, but only when the partner is the only sender.
How to test: Open the Test events tool, enter your URL, submit the form once, and count the Lead events from the browser. One submit should produce one browser event and one server event.
Fix: Pick one sender per channel: the plugin or your own setup, not both.
3. The server sends a different event_name
Lead from the browser and lead or SubmitForm from the server are different events to Meta, so they never merge. Meta's troubleshooting steps on the deduplication page say to confirm that event_name and event_id are formatted identically across sources, and list incorrect parameter names or values as a common issue.
How to test: In Test events, open one browser event and one server event for the same submit and compare the names exactly, including case.
Fix: Use one name in both places. For a lead form, the standard event Lead is the usual choice (see Meta's standard events specifications).
4. A single page app reuses the event ID
On a single page app, an ID generated at page load gets reused for every later submit. Because Meta also deduplicates repeated events with the same name and ID, the second real lead in a session can be discarded as a duplicate of the first: too few leads, not too many.
How to test: Submit twice in one session, with two test emails, and check in Test events that the leads carry different IDs.
Fix: Generate the ID inside the submit handler, never at page load. Our note on GA4 tracking in single page apps covers the same timing problem for GA4.
5. The event ID never reaches the server
The browser generates an ID, but nothing carries it to the server event.
How to test: Log the payload your server sends to the Conversions API for one test lead and check that event_id is filled and equals the browser value.
Fix: Pass the ID with the form submission. If GTM needs it too, push only the ID to the dataLayer (the queue GTM reads from), never the email or phone:
dataLayer.push({
event: 'lead_submitted',
lead_event_id: leadEventId
});
A minimal server event then looks like this (field names from Meta's developer docs on customer information parameters; check the current spec there before you build):
{
"data": [{
"event_name": "Lead",
"event_time": 1792800000,
"event_id": "same value as the Pixel eventID",
"action_source": "website",
"event_source_url": "https://example.com/contact",
"user_data": {
"em": ["sha256 of the normalised email"],
"client_ip_address": "from the request",
"client_user_agent": "from the request",
"fbp": "value of the _fbp cookie",
"fbc": "value of the _fbc cookie, if present"
}
}]
}
6. The server event carries weak customer information
Deduplication can be perfect and the server events still match poorly to Meta accounts.
Per Meta's event match quality page, the score runs from 0 to 10, is based on the customer information sent and the share of events matched, and uses the last 48 hours of data. Email and Click ID are high priority; phone, external ID and browser ID are medium. The server event details page adds that sending a parameter does not guarantee a match.
Hashing. The same event match quality page notes that Meta's Business Tools Terms require you to hash contact information as described in the developer documentation. Hash on your server with SHA256, after normalising (trim, lowercase for email). The customer information parameters docs mark email (em), phone (ph) and the name, address and date of birth fields as hashing required, and client_ip_address, client_user_agent, fbp and fbc as never hashed. On the browser side, Meta's page on advanced matching says the Pixel hashes visitor input itself, except with an IMG pixel.
How to test: Open the Event matching tab in the server event details and read the score and Meta's suggested parameters.
Fix: Add email, fbp, fbc, IP and user agent to every server Lead event. Keep raw email and phone out of the dataLayer and URLs.
How to test deduplication with Test events
Test events shows each browser and server event as it arrives, and which ones Meta deduplicated.
- In Events Manager, go to Data sources, select your dataset and open Test events.
- For the browser side, enter your URL and click Open website. Per Meta's Test events page, website activity is only recorded while the Test events page is open.
- For the server side, use the server events section of the same tab, as described on Meta's page on testing server events. While testing, send the code shown on that tab as
test_event_codeat the top level of the request body, next to thedataarray, as in Meta's Conversions API guide. Meta says to remove it from your production payload. - Submit one lead. You should see one browser Lead and one server Lead carrying the same event ID, and Meta should treat the pair as one event.
- Click Clear activity when done. Meta notes test activity still appears in Events Manager and reporting.
Then watch volume over a few days in the Event overview tab. Per Meta's server event details, "Events Received" is the sum from both sources before deduplication, so it should be higher than your real lead count. Meta's monitoring page also suggests comparing the two sources in the Event coverage tab.
Consent applies to both sides
The Conversions API is not a way around a declined cookie banner. Meta's About Conversions API page says that, like the Pixel, it is not designed to bypass privacy rules in Europe such as the ePrivacy Directive, and the event match quality page asks for lawful permissions and consents before you share customer information.
So gate the server event on the same consent state as the Pixel. On the browser side, Meta's developer page on GDPR for the Pixel has you call fbq('consent', 'revoke') on every page before fbq('init', ...), and fbq('consent', 'grant') once the visitor has given affirmative consent. Pass the consent choice with the form to your server, and only send the Conversions API event when it allows. Our Consent Mode v2 guide covers the Google side of the same banner.
When to get help
If counts still disagree, the cause usually sits between two senders that each generate their own ID. Our conversion tracking services cover Pixel and Conversions API setups end to end, and a Tracking Audit tests each lead path and lists what to fix first. For the Google Ads side of the same lead, see enhanced conversions for leads.
Checklist
- One sender per channel for each event (no plugin plus GTM duplicates)
- Same
event_nameon both sides, same case - One ID per conversion, generated at submit, sent as
eventIDin the Pixel andevent_idon the server - Server event sent straight away, not batched
fbp,fbc, IP and user agent on every server event; email hashed with SHA256 on the server- No raw email or phone in the dataLayer
- Server event gated on the same consent as the Pixel
- Test events shows one browser and one server Lead, deduplicated
- Event deduplication tab shows high event ID coverage and overlap