
Server-Side Conversion APIs and Dedup
Sending conversions to a server endpoint, the double-count problem when pixel and server both report, and the shared event-id and match-key patterns that merge them into one.
TL;DR: A server-side conversion API accepts the conversion event directly from your server rather than through a browser pixel — more durable under tracking prevention, richer data, fewer client pixels. The catch is that if a pixel and the server both report the same purchase and nothing marks the two reports as the same event, the vendor can count it twice. The fix is not to pick one path but to make the two reports recognizable as one event: a shared event identifier generated once and emitted by both paths, or, where the vendor supports it, a stable match key as an alternative signal for merging them. Run both paths deliberately when coverage justifies it — with dedup in place, redundancy is a feature, not a bug.
Why conversions move to a server endpoint
A server-side conversion endpoint accepts the event directly — your server sends the conversion to the vendor's API, rather than the visitor's browser firing a pixel that carries it. The conversion still reaches the same vendor; what changes is the path it takes to get there. Server-to-server, not browser-to-vendor.
Three things drive the move, and they are the same pressures that push collection server-side generally. Durability: a server-sent conversion is not gated by the same client storage and script restrictions a pixel is, so it survives conditions that would drop a browser pixel. Richer data: the server can attach context the browser never had. Fewer client pixels: each conversion tag removed from the page is weight off the browser.
The thing to hold precisely is what changes and what does not. The delivery of a server-sent conversion is not subject to the client restrictions a pixel faces — it travels on the same first-party and server-to-server footing as the rest of server-side collection, leaning on the same first-party context. The identifiers it carries, such as click IDs and browser cookies, are still captured in the browser, though, and still sit within the browser tracking prevention reality (as of November 2026) that makes pixels fragile. WebKit's "Tracking Prevention in WebKit" page, for example, describes how some trackers add "click IDs" to links as URL parameters, pick them up through JavaScript on the link destination website and store them so they can establish a user identity across websites, which it calls cross-site tracking via link decoration; when Intelligent Tracking Prevention (ITP) detects such link decoration, it caps the expiry of cookies created in JavaScript on the landing web page to 24 hours. This article covers the conversion mechanic specifically. The broader question of which tags move server-side at all is a separate decision covered in another article on this topic; here, assume the conversion is moving and focus on what that requires.
The double-count problem
The mechanic introduces one predictable failure. If a pixel and the server both report the same purchase and nothing marks the two reports as the same event, the vendor can count it twice. There is one real conversion and two reports of it, and absent any signal that they are the same, the vendor has no way to know — so the total inflates.
This appears specifically during redundant tagging: the browser pixel still firing while the server path is also live. It is not an exotic edge case; it is the default outcome of running both paths without coordination. Two independent reports of one event, each individually correct, summing to a count that is wrong.
Name it for what it is — the predictable consequence of redundancy, not a sign that redundancy is a mistake. The instinct to "just turn off the pixel" is one answer, but it throws away the coverage the pixel provides. The better framing is that the two reports need to be recognizable to the vendor as the same event. Fix the recognizability, and you can keep both paths. That is what the next two sections build.
The shared event-id deduplication pattern
The core of the fix is a single event identifier, generated once, emitted by both the client pixel and the server call. The vendor receives two reports carrying the same id and, when its other matching conditions also hold (such as the same event name and a time window), recognizes them as one event and counts a single conversion. One id, two carriers, one counted conversion.
The shape is small and is the whole pattern:
// generated once, where both paths can read it
const eventId = crypto.randomUUID()
// client pixel emission carries it
pixel.track("purchase", { value: 89.0, currency: "USD", event_id: eventId })
// the server-side call carries the same id
serverConversion.send({ event: "purchase", value: 89.0, currency: "USD", event_id: eventId })Two properties make or break it. The id must be generated where both paths can see it — for example, generated once on the server and rendered into the page, or generated once on the page and carried into the server call as part of the event payload — so that the same value reaches both emissions. And it must stay identical across both: if the client and the server each mint their own id, the event-id match fails and the vendor cannot use the id to recognize the two reports as one event. Id-based dedup depends on the two reports literally carrying the same string, so the generation point and the propagation to the other path are the parts to get exactly right.
The exact fields are vendor-specific, and the generic names in the sketch above stand in for them. Meta's documentation on deduplicating Pixel and Conversions API events requires the Pixel's eventID to match the server's event_id and the event name to match on both sides, for events sent to the same Pixel ID, and it only deduplicates events received within 48 hours of the first one carrying that id. Google's equivalent handle is the transaction ID: Google Ads treats a second conversion with the same transaction ID for the same conversion action as a duplicate. Google Analytics deduplicates purchase events with the same transaction ID; its help page says a transaction ID must be added to every e-commerce event to deduplicate transactions from the same user and says that for app streams, transaction IDs should be sent via the Firebase SDK (as of November 2026). An archived copy of that page from July 15, 2026 said transaction ID deduplication only worked for data collected through web streams, not app streams, so confirm the current scope for app data before relying on it. Field names, windows, and scope change, so check each vendor's current documentation (as of November 2026).
Match keys and what the vendor needs to dedup
The event id is the primary handle. Some vendors also document a separate deduplication route that relies on a stable match key rather than a shared event id: Meta, for instance, describes two ways of deduplicating, recommends the event ID and event name method, and can also deduplicate on a consistent event name plus its browser ID (fbp) and/or external_id. Meta says that second method generally works only for events sent first from the browser and then through the server, and that a server event is not discarded if a browser event has not been received in the past 48 hours, even if an identical browser event arrives after the server event. Where the event id is an explicit "these are the same" marker, the match key is an identity the vendor compares across the two reports to make that judgment itself.
The same consistency requirement applies. The match key has to be consistent across both paths, or the merge fails, leaving two conversions where there should be one. When the key is the signal the vendor relies on, a mismatched or missing key reads as two separate conversions, which is exactly the double-count you were trying to prevent, now reintroduced through the key instead of the id.
One important boundary: contact data used for matching, such as an email address, is hashed before it leaves your boundary. Meta's customer information parameters and Google's Ads API conversion documentation both call for SHA-256 after normalization (as of November 2026), while browser identifiers such as Meta's fbp are sent unhashed by specification. The rest of that handling — what to hash, how, and what never to send — is covered in another article on this topic, on data minimization, and is referenced here only as a pointer. For the dedup mechanic, the relevant fact is narrower: whatever the match key is, and however it is hashed, it must be derived identically on both paths so the two hashed values match. Consistent input, consistent hashing, or the merge breaks. Sending those payloads and keys to vendor endpoints is also a transport question, and OWASP Top 10:2025 A04 Cryptographic Failures calls for encrypting all data in transit with TLS 1.2 or later.
Server-only versus redundant client-plus-server
That leaves the placement decision, which is a genuine trade-off rather than a default. Server-only means one path: no dedup needed, nothing to double-count — but no client-observed signal as a fallback if the server path misses an event. Redundant both means deliberate overlap: the server path is durable, the client path catches what the server misses, and dedup is mandatory to keep the overlap from inflating totals.
| Approach | Accuracy | Durability | Dedup complexity |
|---|---|---|---|
| Client pixel only | Exposed to client restrictions; can under-count | Low — the fragile path | None |
| Server only | No pixel-and-server double count; misses what the server path drops | High — server-to-server | None |
| Redundant both | Highest coverage when dedup is correct; inflated when it is not | High — server path durable, client path as backstop | Required — a shared event id, or a consistent match key where the vendor supports that method |
Redundancy is sometimes the right call on purpose. The server path is durable but not infallible; the client path catches conversions the server missed and vice versa, and together they cover more than either alone. That coverage is real, and it is the reason to accept the dedup complexity rather than avoid it.
So the choice is a coverage-versus-complexity trade-off, decided by context, not a universal default. A setup that can implement and verify a shared event id reliably can run redundant paths and gain the coverage; a setup that cannot is better served by a single clean path than by a redundant one whose dedup it cannot trust. The deciding factor is whether you can guarantee the same id, or the same match key, on both emissions — because redundant tagging without trustworthy dedup is just double-counting with extra steps.