You turn on the Conversions API, and a few days later cost per conversion drops by half. It looks like the best week of the account. Usually it isn't: Meta is counting the same conversion twice, once from the browser and once from the server.
The campaign's spend doesn't change; the number of conversions it reports does. Twice the conversions for the same spend means half the cost per conversion. Optimization also starts learning from inflated counts, which is worse than the reporting problem. (Related: Director of Machine Learning Insights...)
Meta compares events from the pixel and the Conversions API. When the event name and the event_id match, it keeps one. In the pixel, the ID goes in the options object:.
Industry observers note that on the server, it goes in the event_id field of the event. With server-side GTM, the GA4 hit carries it from the browser and the Conversions API tag forwards it. (Related: Scientists find โfieldโ of washing machines in ocean du...)
Generate the ID once, where the event is born, and hand the same value to every destination:.
Two rules come with it: one try/catch per destination, so a failure in one doesn't silently stop the others, and no second ID generated in GTM or on the server.
Industry observers note that deduplication is one of 13 silent failure modes covered in the free field guide 13 Silent Tracking Failures. The full setup, from the page to HubSpot deal stages flowing back to Meta, is in the 4-Layer Tracking Kit.
How does Meta deduplicate browser and server events?
When the pixel and the Conversions API send the same event with the same event name and the same event_id, Meta keeps one. In the pixel the ID goes in the eventID option; on the server it goes in the event_id field.
Where should the event_id be created?
Recent findings suggest that once, where the event is born, on the page. The same value goes to the pixel and to the dataLayer, and from there to the server. Generating it twice, in two places, is the same as not having it.
Do CRM events need deduplication?
Not with the browser, because there's no browser counterpart. They still need a stable event_id per record and stage, so a script that runs twice doesn't send the same conversion twice.
According to recent reports, originally published at https://lp.bitencourtco.com/kit-tracking/en/guides/meta-capi-deduplication-event-id/ by Bitencourt & Co. The full setup, from the ad click to HubSpot deal stages back to Meta, is in the 4-Layer Tracking Kit.
