How Meta decides, in four rules
| Situation | What Meta does |
|---|---|
Same event_id and same event name, within 48 hours | Keeps one. The later arrival is discarded. |
Same event_id, different event name | Counts both. No error, no warning. |
| Both arrive within about five minutes | Counts one, and prefers the browser event. The server copy loses. |
| Arrivals more than 48 hours apart | Counts both — outside the window nothing is merged. |
| Two events from the same source (browser or server only) | Counts both. Single-source duplicates are never deduplicated. |
There is a second deduplication method — matching on fbp and external_id instead of
an explicit id — but it only works when the browser event arrives first, and it does not help at all in a
server-first setup. An explicit matching event_id on both sides is the method that holds.
The four patterns behind almost every double count
The pixel sends no eventID
fbq('track', 'Purchase', {value: 79, currency: 'USD'}) → fbq('track', 'Purchase', {value: 79, currency: 'USD'}, {eventID: 'order_1042'})
Half of all double-counted purchases start here. The server sends an event_id, the browser sends nothing, so there is no key to match on.
The name differs
browser: 'Purchase' · server: 'purchase' → both: 'Purchase'
Dedup compares the name as well as the id. Meta's own docs are explicit: the pixel's event must match the CAPI event_name. A lowercase custom name is enough to break it.
The id is regenerated per request
server rebuilds a uuid each time it retries → the order id, hashed once and reused
A retry that invents a new id turns one purchase into two. The id has to be derived from something stable — the order, the booking, the form submission.
The gap is over 48 hours
server event lands 3 days after the browser event → send inside the window, or accept the browser-only count
Meta only deduplicates events received within 48 hours of the first one with that id. Beyond that, both are counted.
A worked example
A Shopify store with 1,000 orders a month. The server function sends event_id: "1042" as a
number; the theme sends eventID: '1042' as a string. Meta compares them as strings, they match,
and everything looks fine — until the theme was updated and the id was moved into the
custom_data block by mistake. From that deploy, the browser sends no id at all. Purchases in
Ads Manager go from 990 to 1,860 in a week and the team celebrates the best month in a year.
Paste the two logs into this page and that week reads as: 1,000 server events with ids, 1,000 browser
events without, zero matches, and an expected double count of 100 percent. The fix is a single argument
in one fbq call, found in a minute rather than in a month of falling profit.
Where to get the two logs
| Source | What you get |
|---|---|
| Meta Pixel Helper | The Chrome extension logs every fired event with its id when you open the event row. Easiest source for the browser side on a real order. |
| Events Manager → Test Events | Shows browser and server events side by side as they arrive. The event id is in the event detail panel, not the list. |
| Your GTM container, in preview | The Meta tag's data layer, or the tag's own log, holds the eventID parameter you pass. Useful when the id is generated in the container. |
| Your server logs | Whatever prints the request body before it goes to graph.facebook.com. If nothing prints it, that is the first fix — you cannot debug a payload you cannot see. |
What this cannot tell you
It compares the two lists you give it. It cannot see whether your pixel fired at all on the page, whether the value and currency were right, or whether the events arrived in the order you think they did. It reads ids and names, nothing else. For the field-level checks on the server payload, use the CAPI payload check first, then come back here to check the pairing.
After you fix it, watch these three things
- The purchase count should drop, not rise. That is the point: the duplicates were the inflation.
- Event Match Quality should improve in the days after, because a deduplicated event carries the identifiers from both sides.
- Reported revenue should move closer to Shopify's for the same window and time zone. Within 5 to 10 percent is normal; a perfect match is not.
If the count drops below your order count instead, the server events are not arriving at all — a different problem, and the CAPI error codes post is the place to start.