Deduplicating browser and server conversion events
Short answer
Event deduplication works when the browser event and the server event for the same conversion carry the same event name and the same event ID, and both arrive within the platform's deduplication window. Generate the ID once, pass it to both senders, and verify by comparing browser-only, server-only and combined counts against your backend total.
Sending a conversion from both the browser and your server is the usual way to survive blocked pixels and short cookie lifetimes. It also means every conversion can arrive twice. The platform will collapse the pair into one only if you give it a reliable way to recognize them as the same thing. This post covers how that recognition works, the mistakes that break it, and a counting test that tells you whether it is working without trusting any dashboard badge.
What the platform compares when it deduplicates
Each platform has its own rules, but the common mechanism is simple. When two events arrive with the same event name and the same event ID, the platform keeps one and discards the other. On Meta, the pixel's eventID and the Conversions API's event_id are the fields that must match, along with the event name. TikTok's pixel and Events API work on a similar pairing. Google's equivalent for purchases is the transaction or order ID attached to the conversion. Field names and secondary matching options change over time, so confirm them against each platform's current developer documentation before you build.
Two details trip people up:
- The event name must match exactly.
Schedulefrom the browser andschedulefrom the server are two different events to most systems. - The ID must be unique per conversion, not per visitor. A visitor who books twice should produce two IDs. A visitor whose single booking is reported from two places should produce one.
Create the ID once, then hand it to both senders
The most common failure is generating the ID in two places. The browser makes a random ID, the server makes its own random ID, and the platform sees two unrelated events. Timestamps fail the same way, because the browser and server clocks record the event a few hundred milliseconds apart.
Pick one place to mint the ID and pass it along:
- When the visitor submits the booking form, your page generates an ID such as
bk_20261103_8f3a2c. - The page fires the browser event with that ID.
- The page also sends the same ID to your backend as part of the form submission, in a hidden field or the request body.
- Your backend stores the ID on the booking record and uses it when it sends the server event.
The reverse also works: the backend creates the booking, returns its booking reference, and the confirmation page fires the browser event using that reference. Either way, the booking record ends up holding the ID, which is useful later when you need to trace one conversion through every system.
Using your own order or booking number is often the simplest choice, provided it exists before the browser event fires. If the number is only created after payment clears, the browser may not know it in time.
Timing windows: late server events stop deduplicating
Platforms only hold events for deduplication for a limited time. Meta's documentation has described this window in hours rather than days, but treat any specific figure as something to check in the current docs. The practical rule is that the server event should be sent within minutes of the conversion, not in an overnight batch.
Batching is where many setups go wrong quietly. A team moves server events into a nightly job to save effort, the window passes, and every conversion that also fired in the browser starts counting twice. Nothing errors. Reported conversions simply jump overnight and stay higher.
If you genuinely cannot send in near real time, consider whether that event should be server-only, with the browser version removed. A conversion reported from one place cannot double count.
A count test that proves deduplication works
Do not rely on a status label in an events tool alone. Labels tell you that some events were deduplicated, not that all of them were. Counts tell you the rest.
You need four numbers for the same date range and time zone:
- Backend: conversions recorded in your own system.
- Browser only: events the pixel sent.
- Server only: events your server sent.
- Combined: what the platform says it received after deduplication.
The combined number should land between the larger of browser and server and your backend total, plus a small allowance for test events. If combined is close to browser plus server, deduplication is not happening.
Worked example: a med spa in Perth
Say a med spa takes consultation bookings online and sends a booking event from both the browser and its server. Over 30 days:
- Backend bookings: 271
- Browser events: 212 (some visitors block the pixel or leave before it fires)
- Server events: 268 (three failed to send because of a short API outage)
With working deduplication, combined should sit between 268 and roughly 271. The browser adds almost nothing new, because nearly every browser event has a server twin; it only fills in where the server send failed.
Now suppose the events tool shows 470 combined. That is 212 + 268 = 480, minus 10. Only 10 pairs were recognized as duplicates. Bookings are being counted about 1.7 times. In this case the cause turned out to be the event name: the browser sent Schedule and a recent server update changed the name to ConsultBooked for most events. The 10 that matched were sent before the change.
The fix was to restore the name, and the next week's numbers came back to the expected range:
| Count | Before fix | After fix |
|---|---|---|
| Backend | 271 | 64 (one week) |
| Browser | 212 | 51 |
| Server | 268 | 63 |
| Combined | 470 | 64 |
Combined matching the server count plus one browser-only event is exactly what working deduplication looks like.
Spot-check individual events, not just totals
Totals can hide offsetting errors. Once a week for the first month, pick three real bookings from your backend, look up their stored IDs, and search for those IDs in the platform's event testing or diagnostics tool if it supports lookups. You should find both a browser and a server arrival for most of them, marked as one event. Where the tool does not expose individual events, the four-count comparison is your evidence.
Also check that IDs are not reused. A bug that assigns the same ID to every conversion in a session, or to every event from one form, will make the platform discard real conversions as duplicates. The symptom is the opposite of double counting: combined falls below both browser and server. If you see that, look for a hard-coded or session-level ID.
For background on why both senders are worth running, see Meta Pixel vs Conversions API. If your server endpoint receives events from the browser before relaying them, signed server events covers how to stop that endpoint from accepting fake ones. And when duplicates come from several platforms each claiming the same sale, that is a different problem, covered in why your ad platforms claim more sales than you made.
FAQ
Can I deduplicate by matching email address instead of an event ID?
Some platforms have offered fallback matching on other identifiers, but an explicit event ID is the documented, predictable method. Use it, and treat any other matching as a backup you cannot easily verify.
What happens if only the server event has an ID?
The platform has nothing to compare it with, so both events usually count. The browser event needs the same ID for the pair to collapse.
Should the event ID be secret?
No. It only needs to be unique and consistent. It should not contain personal data such as an email address, because it may be visible in browser requests.
Why did combined conversions drop below my server count?
That usually means distinct conversions are sharing an ID, so the platform discards real events. Check for an ID generated once per page load or per session instead of per conversion.
See your own numbers with the source attached
Adtrix connects Meta and Google Ads read-only, shows each ad next to its spend and reported results, and keeps CRM leads and booked calls in their own lane.