Skip to content
All insights

Tracking foundations: Conversions API, server-side tagging and data quality

Browser pixels miss conversions and badly configured server events double count them. Deduplication, match quality, consent and a QA routine you can repeat.

Ad Infrastructure6 min readREVANTO MANAGEMENT - FZCO

Two parallel streams of light converging into one clean channel, passing through a fine mesh that holds back scattered particles.

Ad platforms optimize on the conversion data you send them. If that data is incomplete, duplicated or collected without proper consent, campaign decisions rest on a weak foundation, and no amount of creative testing fixes it. Browser-only tracking has become less reliable as browsers limit cookies, extensions block scripts and more users decline consent. Server-side event delivery helps, but only when it is set up with care.

This piece covers the concepts that hold across platforms: sending events from both browser and server, deduplicating them, improving match quality, respecting consent and verifying the result. Platform specifics change often, so treat the details here as orientation and confirm them against each platform's current documentation before you build.

Browser and server: why most setups need both

A browser pixel runs in the visitor's browser. It sees on-site behavior and browser identifiers, such as the first-party cookies Meta's pixel sets, but it can be blocked, delayed or cut off when a page closes.

Server-side APIs send events from your own server or a server container. Meta's Conversions API, TikTok's Events API and the conversions APIs offered by Snapchat and Pinterest all follow this model. Server events do not depend on a script surviving in the browser, and they can include information only your backend knows, such as a confirmed order value or an offline sale.

For most e-commerce setups the answer is both: browser and server events for the same actions, deduplicated so each conversion counts once. Many store platforms offer native integrations that handle much of this. They are often the most maintainable route, but check exactly which events and parameters they send instead of assuming.

Deduplication with event_id

When the same purchase arrives from both the pixel and the server, the platform needs a way to know it is one event. On Meta, the method is to send the same event name and the same event ID from both sources; the pixel calls it eventID and the Conversions API calls it event_id. TikTok supports similar deduplication between its pixel and Events API. Check the current documentation for the deduplication window and any alternative matching methods.

The common mistakes are predictable:

  • IDs generated separately in browser and server code, so they never match.
  • Event names that differ, such as Purchase in one place and a custom name in the other.
  • Server events sent long after the browser event, outside the window in which the platform deduplicates.
  • Thank-you page reloads firing a second purchase. Using the order ID as the purchase event ID protects against this.
  • Two server integrations running at once, for example a store app and a server-side GTM container both sending purchases.

Generate the ID once, at the moment the event happens, and pass it to both channels.

Match quality: what it measures and how to improve it

Server events are only useful if the platform can connect them to the people who saw or clicked your ads. Meta reports this as Event Match Quality in Events Manager, a score reflecting how well the customer information in your server events can be matched. Other platforms offer similar diagnostics under different names.

Match quality improves with more, and more accurate, customer information parameters. On Meta these include email, phone number, name, city, postal code, country, an external ID, the client IP address and user agent, and the click and browser identifiers (fbc and fbp). Personal data such as email and phone must be normalized and hashed with SHA-256 before sending, while technical fields such as IP address and user agent are sent unhashed. Check the current specification for each field.

Practical steps:

  • Capture the fbc and fbp cookie values in the browser and pass them to the server with each event.
  • Send the visitor's original IP address and user agent, not your server's.
  • Include email or phone when you legitimately have them, such as at checkout or for logged-in customers.
  • Normalize before hashing: trim spaces, lowercase emails and format phone numbers as the platform specifies.
  • Send events promptly rather than in delayed batches.

Do not chase a higher score by sending data you have no consent or legal basis to share.

Moving collection to a server does not change your legal obligations. In the EU, EEA and UK, consent rules for non-essential tracking apply whether a tag fires in the browser or the data flows through your server. Your consent management platform should control both paths.

Google's Consent Mode passes the visitor's consent choices to Google tags, and Google requires it for certain advertising features on EEA traffic; confirm the current requirements and the signals involved. Meta's approach differs: its pixel offers consent controls that you trigger from your own banner logic, and server events need to be gated by the same logic. Review its options for US state privacy laws, such as Limited Data Use. Your privacy policy should describe what you collect and share. This is not legal advice; confirm your setup with qualified counsel.

Google enhanced conversions and server-side GTM

Enhanced conversions supplement Google Ads conversion tags with hashed first-party data, such as the email address entered at checkout, which Google uses to improve conversion measurement. It can be implemented through the Google tag, Google Tag Manager or the API, and there is a variant for leads that convert offline. You need to accept Google's customer data terms in the account.

Server-side Google Tag Manager runs a server container on infrastructure you control, typically on a first-party subdomain. The browser sends data to that container, which forwards it to vendors such as Google Analytics, Google Ads and, through templates, Meta's Conversions API or TikTok's Events API. Benefits include control over exactly what data leaves your systems and fewer third-party scripts on the page. Costs include hosting fees, maintenance and the need for a clear owner. It is not a way to collect data that users have declined to share.

A QA checklist you can repeat

  1. Inventory: list every event, where it fires, which tool sends it and which ID it carries.
  2. Test tools: use Meta's Test Events tool, Google Tag Assistant, server-side GTM preview mode and the equivalent tools on other platforms.
  3. End-to-end test: place a real or test-mode order and trace it through every platform.
  4. Deduplication: confirm browser and server events both arrive and are counted once.
  5. Parameters: check value, currency and content IDs, and confirm content IDs match your catalog.
  6. Consent: decline in your banner and confirm tags stay off or run in restricted mode; accept and confirm they fire.
  7. Reconciliation: compare platform event counts against backend orders over a week. Attribution will differ, but large unexplained gaps in raw event counts point to a tracking problem.
  8. Monitoring: review diagnostics regularly and rerun this checklist after theme changes, checkout updates or new app installs.

Keep pixels, datasets and access tokens owned by the business, and store tokens securely.

How we approach this

We treat tracking as infrastructure: owned by the business, documented and tested on a schedule rather than set up once and forgotten. Our work usually starts with an event inventory and a QA pass before anything changes. If you want help reviewing your setup, see our ad account infrastructure service.

This article is general information, not legal, tax or financial advice. Platform features and policies change; check the current documentation of each platform or provider. See our Disclaimer.

Keep reading

Tell us what you want to scale next.

Start with a consultation. We listen, ask the questions that matter and propose a written scope with a clear fee.