Meta Conversions API deduplication
When the browser Pixel and the server Conversions API both report the same web action, Meta needs to recognise the two deliveries as one event. This guide covers how to set that up and test it. For why Meta and CRM counts differ, read the diagnosis article.
MANTIS Last updated
Key takeaways
- Meta treats a Pixel event and a Conversions API event as one when both have the same event name and event ID and reach the same Pixel ID within 48 hours.
- Create the event ID once, when the conversion is confirmed, and make both senders read the same value.
- A retry reuses the original ID and event time; a separate conversion gets a new ID.
- Deduplication and matching are different questions. Event Match Quality does not show whether duplicates were removed.
How does Meta know a Pixel event and a CAPI event are the same conversion?
Both copies must reach the same Pixel ID with the same event name and the same event ID. Meta generally keeps the copy it receives first and discards a matching copy received within 48 hours of it.
Use a unique ID for each real event.
// Browser Pixel: the ID is passed in the fourth argument
fbq("track", "Lead", {}, { eventID: "lead-7e2" });
// One event in the server request's data array: the same value, named event_id
{
"event_name": "Lead",
"event_id": "lead-7e2",
"event_time": 1764000000,
"action_source": "website",
"event_source_url": "https://example.com/contact",
"user_data": {
"client_user_agent": "Mozilla/5.0 (...)"
}
}Meta requires event_source_url and client_user_agent for website events sent through the Conversions API. Meta's deduplication guide (opens in a new tab) also covers the image-tag and trackSingle variants.
Where should the event ID come from?
From one moment that confirms success, such as an accepted form response, created once and read by both the browser and the server.
Choose a signal that confirms success, such as an accepted form response or a completed order, not a button click. Note which system confirms it, the event name, the destination and the actual event time.
The event ID can be generated by the server on acceptance and passed to the page, or generated in the browser and passed to the server. Either works as long as the browser and server copies cannot diverge. If a web tag forwards the event to a server container, first verify that the browser request reached that endpoint.
When should you reuse or replace an event ID?
Reuse it for every copy and retry of the same conversion. Create a new one for every separate conversion.
Meta accepts an event_time up to 7 days before the event is sent. An older one causes an error for the whole request, so a retry queue cannot wait indefinitely.
How do you check deduplication in Events Manager?
Send one controlled conversion with a test event code, then check whether both copies arrived and whether Meta paired them.
In Events Manager, the Test Events tool gives you a code to send as test_event_code at the top level of the request, next to data. Remove it from production payloads.
Is deduplication the same as matching?
No. Deduplication decides whether two deliveries are one event. Matching decides whether an event can be connected to a person on Meta.
Deduplication asks
- Do two deliveries represent one occurrence?
- Answered by event name and event ID.
Matching asks
- Do the permitted fields connect the event to a Meta account?
- Answered by customer information parameters, with Meta's normalisation and hashing rules.
Event Match Quality, a score out of 10 that Meta gives web events, measures how well an event's customer information can be matched. It is not proof that the event fired at the right time or was deduplicated. Apply the consent and data-sharing decision to both browser and server paths.
What should you keep as evidence?
A redacted record of one test conversion: its source record, both payloads, any retries and what Events Manager showed.
- The source record for one test conversion.
- The Pixel payload and the server payload, side by side.
- The retry count, if any.
- The Events Manager evidence for that event.
- Tokens and personal information removed from every screenshot and export.
Frequently asked questions
What is the event ID in Meta deduplication?
A unique value you assign to one conversion and send with both copies: as eventID in the fourth argument of the Pixel's fbq track call, and as event_id in the Conversions API. Meta uses it together with the event name to recognise duplicates.
How long does Meta deduplicate Pixel and Conversions API events for?
Meta discards a later copy that has the same event name and event ID and reaches the same Pixel ID within 48 hours of when Meta received the first.
Can Meta deduplicate without an event ID?
Meta describes an alternative based on the fbp browser ID or external_id, but says it generally only works when the browser event arrives first and the server event follows. A shared event ID is the more reliable method.
Why are my Pixel and server events not deduplicating?
Usually the event names or IDs differ between the two copies, the ID is generated twice, or the copies go to different Pixel IDs. Compare the two payloads for one test conversion.
Does a high Event Match Quality score mean deduplication works?
No. Event Match Quality rates how well customer information can match an event to a Meta account. It does not show whether two copies of the event were deduplicated.
Need help checking an event pair?
Share what your Pixel and server send for one test lead, and we can look at where the pair breaks.
Not sure where the gap is yet? Take the short assessment.