Meta deduplicates Meta Pixel (formerly Facebook Pixel) and Conversions API (CAPI) events by comparing two keys: the event name and an event ID. When the browser pixel sends an event with an eventID, and your server sends the same event_name with a matching event_id to the same pixel ID within 48 hours, Meta keeps one copy and discards the other. Without a shared ID, a purchase sent through both channels can be counted twice. A fallback that pairs events on fbp or external_id exists, but it generally works only when the browser event arrives first.
What deduplication does and when you need it
Meta recommends a redundant setup: the pixel sends events from the browser and the Conversions API sends the same events from your server, so events the pixel loses to network connectivity issues or page loading errors still reach Meta. The price is that Meta can receive one purchase twice. Deduplication is how Meta recognizes the two copies as one action, keeps one and discards the rest, so ad delivery can tell distinct events from overlapping ones and reporting is not doubled.
You only need it for events sent through both channels. Meta says advertisers who don't send the same event through both the pixel and the Conversions API don't need deduplication for those events, so a split setup, such as PageView from the browser and Purchase only from the server, has nothing to merge. Still send an event_id on every server event: Meta keeps only the first copy of a repeated event_id and event_name pair, which makes resending a failed batch safe.
Deduplication is not matching. Matching links an event to a Meta account through customer information, which Event Match Quality scores and our event match quality guide covers. Deduplication decides whether two events describe the same action. Building the server connection itself, from access token to payload, is in our Conversions API setup guide; this guide assumes events already flow from both sides.
The deduplication methods Meta supports
Meta's deduplication guide documents two methods. The recommended one compares event name and event ID: the pixel's event name must match the server event's event_name, and the pixel's eventID must match the server's event_id. Meta's best practices ask for an identical event_name plus either an event_id or a combination of external_id and fbp, and recommend including all of them to help Meta deduplicate properly.
The fallback compares event_name with fbp, the browser ID from the pixel's first-party cookie, and/or external_id, your own customer ID, sent consistently from both sides. It has two documented limits. It generally works only when the browser event arrives first: a server event is not discarded if no matching browser event arrived in the previous 48 hours, even if one arrives afterwards. And it never removes repeats within one source, so two identical browser or server events both stay.
A third option, order_id in custom_data, deduplicates Purchase events within a 48-hour or 28-day window when Meta resolves that the same person completed both orders, but Meta's implementation guide limits it to select Meta partners, with access through a Meta representative. For almost every advertiser, event_id is the method to build, with fbp and external_id as backup keys:
- event_name plus event_id: recommended, works in either arrival order within 48 hours
- event_name plus fbp and/or external_id: fallback, generally needs the browser copy to arrive first
- No shared key: nothing to pair, so expect double counting
The 48-hour window and which copy Meta keeps
Meta's rule for the recommended method: if it finds the same server key combination, event_id and event_name, and browser key combination, eventID and event, sent to the same pixel ID within 48 hours, it discards the subsequent events. The clock runs from when Meta receives the first event with that event_id, and Meta's optimal setup guide calls 48 hours the maximum deduplication window for web events.
That window is far shorter than what the API accepts. A server event can carry an event_time up to seven days old, so a sync that runs every few days, or a backlog replayed after an outage, that posts purchases more than 48 hours after the pixel fired is accepted and counted as a second event. Meta recommends sending server events as soon as they occur, ideally within an hour, which also keeps every pair inside the window.
Which copy survives is Meta's decision. If the two don't differ meaningfully, Meta generally prefers the one received first, and its server event reference adds that when browser and server events arrive within about five minutes of each other, it favors the browser event. Either copy can end up in reporting, so send the same value, currency and content IDs from both sides, or reported revenue will depend on which copy won.
Where the event_id should come from
An event_id can be any unique string, but both copies of one action must carry the same value. Meta suggests an order number or transaction ID: two purchases with order numbers 123 and 456 each send their own number from the server and the same number as the pixel's eventID, so Meta counts two purchases, not four. For events without a natural ID, a random value works, as long as browser and server send the same one.
Meta's implementation guide also asks that each unique event sent through both channels has its own event_id, not shared with other events. When one order triggers several events, a prefix per event, such as purchase-10482 for the Purchase and checkout-10482 for the InitiateCheckout, keeps every ID distinct, as long as both sides apply the same prefix. What never works is letting the browser and the server each invent an ID for the same action: two random values never match.
In practice, create the ID once, at the earliest point both paths can read it, and hand it to the other side. Meta's implementation guide says a Conversions API integration for an existing pixel should be built as an extension of the pixel, not as a separate connection, and that a redundant setup needs a persistent event_id for both channels. Workable patterns by event type:
- Purchase: the backend creates the order, prints its ID into the confirmation page and reuses it server-side
- Lead or sign-up: generate the ID in the browser on submit, fire the pixel with it and post it with the form
- Add to cart: create the ID in the page and send it with the request your server receives
- Server-side Google Tag Manager: one event ID variable feeds the Meta Pixel tag and the GA4 event tag, which fire on the same trigger
- Conversions API Gateway: Meta says it generates and propagates the event_id key automatically
Setting event_id in the pixel and the server payload
On the browser, eventID does not go in the object that carries value and currency. It goes in a separate options object, the fourth argument of the fbq track call: fbq('track', 'Purchase', {value: 49.90, currency: 'USD'}, {eventID: 'purchase-10482'}). An event without value or currency still needs an empty parameters object in third place, so eventID stays fourth. With trackSingle, which sends to one pixel when several share a page, the options object follows the pixel ID, event name and parameters, and an image pixel passes the ID in its eid parameter.
On the server, event_id is a top-level field of each event in the data array, next to event_name, event_time and action_source, not a field inside custom_data or user_data. Send the identical event name from both sides, never a renamed or recapitalized variant, including for custom events. Both copies must go to one pixel ID; Meta says a website that already runs a pixel should use that same ID for server events.
If several systems can emit the same event, give each event name one owner. A store plugin, a tag manager template and a custom server build that all send Purchase would each need the eventID the pixel used; any copy carrying its own ID has no browser twin and counts separately. Meta's implementation checklist states the goal: events can go through either channel without being double counted.
fbp, fbc and external_id: their role in deduplication
The fbp value is the browser ID the pixel saves in the _fbp first-party cookie when it uses first-party cookies, formatted as fb, a subdomain index, a creation time in milliseconds and a random number. It is one of the two keys behind Meta's fallback method. Your server can read the cookie from the incoming request and pass the value unhashed and unchanged. Meta notes that fbp and fbc can change across browser sessions, so refresh stored values.
The fbc value is the formatted click ID, built from the fbclid parameter Meta adds to your landing page URL when someone clicks an ad. It is not a deduplication key in Meta's documentation; it helps Meta attribute and match the server event, and Meta recommends sending it, case sensitive and unaltered, with every Conversions API event. Our event match quality guide covers capturing and storing it.
external_id is your own customer identifier, such as a user or loyalty ID. Meta asks for consistency across channels: if a browser pixel event carries external_id 123, the server event for that same user should carry 123 too, in the same format. The Dataset Quality API reports key usage for event_id, external_id and fbp separately, showing which keys each source carries; external_id values don't appear in Test Events.
How to verify deduplication in Events Manager
In Events Manager, go to Data sources, select your pixel and open Test Events, which generates a test code to add to your server request as test_event_code. Then trigger a real action on your site, such as a test order, so the browser and server copies of the same event both fire. Meta says the tool shows which events were processed and which were deduplicated. Server test events appear there once the request is sent, and live server events should be verifiable in Events Manager within 20 minutes.
Two cautions from Meta's documentation. Events sent with a test code are not dropped: they flow into Events Manager and are used for targeting and ads measurement, so remove the code before production. And use your own real customer details when testing, because test events that don't match a Facebook or Meta account may be discarded, which can look like a deduplication failure that isn't one.
After launch, open the pixel's Overview, choose an event's details and select the Event Deduplication tab. Rate of events deduplicated is the share of each source's events that were deduplicated; higher is better, and Meta shows a warning when it is too low. Rate of deduplication key usage is the share of each source's events carrying each key, and Overlap is the share of events with a given key received from both sources, measured against the smaller source.
Read Overview totals with care: Meta says they count events as received, before deduplication and before events discarded under consent controls and other policies are removed, so a Purchase total near double your orders doesn't prove a fault by itself. Teams with many pixels can pull the same signals from the Dataset Quality API, including event coverage, the seven-day average share of pixel events covered by server events sharing deduplication keys; Meta's documentation uses a 75 percent goal.
Common deduplication mistakes and how to fix them
Start with your own records. Over a week or longer, the purchases Ads Manager attributes to your ads shouldn't exceed the orders your backend recorded, and attributed value shouldn't exceed real revenue. If they do, or if results jump the day a server integration goes live, audit deduplication before trusting the new numbers or scaling budgets on them.
Over-counting is not the only failure: reused IDs do the opposite and remove real conversions. When one event_id and event name pair is reused for different actions within 48 hours, Meta treats them as one and discards the rest. That happens when a session ID, a cart ID or a value copied from sample code becomes the event_id, so two purchases in one session collapse into a single event. Meta's app events guide warns that inaccurate event IDs can cause conversions to be wrongly deduplicated.
Duplicate browser fires are a separate problem. A confirmation page that is reloaded, reopened from an email or reached through a redirect can fire the purchase pixel again. Meta's documentation describes merging a browser copy with a server copy, not two browser copies, and for the fallback method it says it won't. Fire the purchase pixel once per order, for example by checking a flag stored with the order.
When counts run high, check Overlap in the Event Deduplication tab first. Meta says low Overlap means the implementation is sending non-unique keys from one or both sources, or sending a key from only one source. Work through the usual causes in roughly this order:
- eventID placed in the parameters object instead of the separate options object, the fourth fbq track argument
- Browser and server each generating their own ID for the same action
- One ID formatted differently per side, such as 10482 versus purchase-10482
- Event names that differ, including a renamed or recapitalized custom event
- Server events posted to a different pixel or dataset ID than the browser uses
- Server copies sent more than 48 hours late by a delayed batch or replay
Deduplication beyond web events and across ad accounts
Deduplication works differently outside web events. App events sent through the SDK or App Events API deduplicate against Conversions API app events on event_name and event_id, while installs have their own mechanism that keeps only the first install in a 90-day window. Offline events deduplicate only against other offline events, by order_id or customer information, within seven days at most; our offline conversions guide covers that pipeline. For Conversions API for Business Messaging events, Meta says it does not assist with deduplication and encourages advertisers to deduplicate before sending.
Deduplication also lives in the dataset, not the ad account. Meta only pairs events sent to the same pixel ID, so a brand pixel in one business portfolio and server events posted to another dataset never merge, a split our pixel and dataset setup guide covers. Adding or replacing ad accounts changes nothing here: pairing happens in the dataset whichever account runs the ads, so connect the same dataset to each new account instead of creating a new pixel.
That includes agency ad accounts. If you run ad accounts from Power Ads, shared into your own Business Manager through partner access, you stay responsible for the dataset, server integration and deduplication checks; Power Ads supplies the ad accounts only and does not set up, monitor or fix tracking. Before scaling spend on any new account, confirm in the Event Deduplication tab that each optimization event is pairing correctly.
Key takeaways
- Meta pairs a pixel event and a server event when event_name matches and the pixel's eventID equals the server's event_id, sent to the same pixel ID within 48 hours
- Create one ID per action at the earliest shared point, ideally the order or transaction ID, and pass it to both channels; never let each side invent its own
- fbp and external_id are backup deduplication keys whose fallback generally works only when the browser event arrives first; fbc helps attribution and matching, not deduplication
- Verify with Test Events, then monitor the Event Deduplication tab's rate, key usage and Overlap for every optimization event
- Reused IDs make Meta discard real conversions while late or mismatched server events double count, so reconcile Ads Manager results against backend orders
FAQ
How does Facebook CAPI event deduplication work?
Meta compares the event name and event ID of browser and server events. When the pixel's eventID equals the server event's event_id, the names match and both reach the same pixel ID within 48 hours of the first copy, Meta keeps one and discards the other. A fallback pairs events on fbp or external_id, but it generally works only when the browser event arrives first.
What is the deduplication window for Meta Pixel and Conversions API events?
48 hours. Meta deduplicates a browser and a server event with matching event_name and event_id only when both arrive within 48 hours of the first event with that ID. A server copy sent later is processed as a separate event, even though the API accepts events with an event_time up to seven days old.
Should the pixel eventID and the CAPI event_id be the same?
Yes. For the same action, the pixel's eventID must match the server's event_id exactly, and the event names must match too. Meta suggests an order number or transaction ID, or a random value both sides share. Every distinct action needs its own ID, because reusing one across purchases or leads within 48 hours makes Meta discard real conversions.
How do I check deduplication in Events Manager?
Send a test action with a test event code and watch Test Events, which shows which events were processed and deduplicated. After launch, open the pixel's Overview, select an event's details and open the Event Deduplication tab for the rate of events deduplicated per source, deduplication key usage and Overlap. Meta shows a warning when the rate is too low.
Does Meta keep the browser event or the server event?
Generally the one it receives first, when the two don't differ meaningfully. Meta's server event reference adds that when a browser and a server event arrive within about five minutes of each other, it favors the browser event. Because either copy can be kept, send identical value, currency and content data from both sides.
Do I need deduplication if I only use the Conversions API?
Not between pixel and server: Meta says events you don't send through both channels need no deduplication. Still send an event_id with every server event. Meta keeps only the first copy of a repeated event_id and event_name pair, so resending a failed batch won't double count. Under the fbp or external_id method, two identical server events sent one after another are both kept.
Why is my CAPI deduplication rate low?
Usually the two sources don't share keys. Check that eventID sits in the fourth fbq argument, that browser and server reuse one ID instead of generating their own, that event names match, that both copies go to the same pixel ID and that server events arrive within 48 hours. Server events for visitors whose browsers never sent the pixel event have nothing to pair with.
Sources
- developers.facebook.com/documentation/ads-commerce/conversions-api/deduplicate-pixel-and-server-events
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/server-event
- developers.facebook.com/documentation/ads-commerce/conversions-api/verifying-setup
- developers.facebook.com/documentation/ads-commerce/conversions-api/best-practices
- developers.facebook.com/documentation/ads-commerce/conversions-api/using-the-api
- developers.facebook.com/documentation/ads-commerce/conversions-api/guides/end-to-end-implementation
- developers.facebook.com/documentation/ads-commerce/conversions-api/get-started
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/fbp-and-fbc
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/customer-information-parameters
- developers.facebook.com/documentation/ads-commerce/conversions-api/parameters/external-id
- developers.facebook.com/documentation/ads-commerce/conversions-api/dataset-quality-api
- developers.facebook.com/documentation/ads-commerce/conversions-api/guides/gtm-server-side
- developers.facebook.com/documentation/ads-commerce/gateway-products/conversions-api-gateway
- developers.facebook.com/documentation/ads-commerce/marketing-api/best-practices/omni-optimal-setup-guide
- developers.facebook.com/documentation/ads-commerce/conversions-api/app-events
- developers.facebook.com/documentation/ads-commerce/conversions-api/offline-events
- developers.facebook.com/documentation/ads-commerce/conversions-api/business-messaging
