← Back to Blog

Server-Side Tracking Setup Guide 2026: Why iOS 14+ Broke Your Attribution

Learn how iOS 14+ privacy changes limited traditional pixel tracking and how server-side tracking helps recover accurate attribution in paid media campaigns.

Arturo Bueno
Arturo Bueno
Founder and Paid Media Strategist
Server-Side Tracking Setup Guide 2026: Why iOS 14+ Broke Your Attribution

The Attribution Problem: What iOS 14+ Changed

Apple's App Tracking Transparency framework went into effect on April 26, 2021, with iOS 14.5.[1] Since then, apps have to ask for permission before tracking people across other companies' apps and websites. Consent has grown since the first months, but it is far from universal. Adjust measured an industry average opt-in of about 24% around the rollout and 35% in Q2 2025, among users who were shown the prompt.[2] AppsFlyer reported in April 2025 that 50% of users worldwide now consent to tracking, using a different method.[3] Whichever measure you prefer, a large share of iOS users still cannot be followed the way pixel-based attribution assumed.

Browsers add to the problem. Safari's Intelligent Tracking Prevention has capped persistent cookies created with JavaScript at seven days since 2019, which shortens how long a pixel can connect a click to a later purchase.[4] Chrome is a different story. In April 2025 Google decided to keep its current approach to third-party cookies and not roll out a new standalone prompt, so Safari, iOS, ad blockers and consent choices are the bigger factors today.[5]

Client-Side vs Server-Side: What Actually Changed

Client-Side Tracking (The Old Way)

Traditional pixel tracking works like this:

  1. A user clicks your ad.
  2. A JavaScript pixel fires in their browser.
  3. The pixel sends conversion data directly to the ad platform.
  4. The platform attributes the conversion to a campaign.

The Problem: Browser restrictions, app permissions and ad blockers can block or limit these pixels. When the data never reaches the platform, your attribution is incomplete.

Server-Side Tracking (The New Reality)

With server-side tracking:

  1. A user clicks your ad.
  2. The conversion happens on your site or app.
  3. Your server sends the conversion data to the ad platform through an API.
  4. The platform receives first-party data you chose to share.

The Advantage: Server events are not subject to the same browser restrictions on scripts and cookies. The limit: they still depend on the data reaching your server, and the platform still needs identifiers to match the event to a person. That is why Meta recommends using its Conversions API in addition to the Meta Pixel, sharing the same events through both.[6]

Client-side versus server-side trackingTop: with client-side tracking the data goes from the browser to the ad platform and can be blocked or limited by ad blockers, tracking prevention and app permissions. Bottom: with server-side tracking the event goes from the browser to your own server, which sends it to the ad platform.CLIENT-SIDE: the browser sends the dataBrowserpixel fires hereAd platformgets what arrivesAd blockers, tracking prevention,app permissions, short cookie lifePart of the data may never arriveSERVER-SIDE: your server sends the dataBrowsersends the eventYour serveryour own endpointAd platformgets your eventYou decide what is sent: hashed customer dataand an event ID to avoid double counting
Simplified diagram. Server-side tracking still depends on the data reaching your server and on matching identifiers.

When Server-Side Tracking Matters Most

Prioritize it if:

  • A large share of your audience is on iOS or Safari
  • You run Facebook or Instagram Ads, where the Conversions API is recommended alongside the Pixel[6]
  • Your conversion window is long, because browser storage expires before the purchase
  • Every conversion is high value
  • You report on several platforms and need one clean data flow

You can wait if:

  • Your traffic is mostly desktop B2B with very short conversion cycles
  • Your budget is so small that setup costs would outweigh the benefit

Even then, make sure basic client-side tracking is configured correctly first.

Implementation Framework: Meta Conversions API

The Conversions API (CAPI) is Meta's server-side connection. Here is the technical setup:

1. Generate an Access Token

  • In Events Manager, open the Settings tab of your Pixel, find the Conversions API section and use the "Generate access token" link[7]
  • Store the token securely, for example in environment variables

2. Build the Server Endpoint

You need a server that can:

  • Receive conversion events from your site or app
  • Hash customer information with SHA-256 after normalizing it: for emails, trim leading and trailing spaces and convert to lowercase[8]
  • Send the formatted events to the Conversions API endpoint for your Pixel (check Meta's documentation for the current API version)[7]

Do not hash client_ip_address, client_user_agent, fbc or fbp. Meta's documentation lists them as parameters that must be sent as they are.[8]

3. Improve Event Match Quality

Meta shows an Event Match Quality score out of 10 for each event. It indicates how effective the customer information in your server event may be at matching it to a Facebook or Meta account, and sending additional customer information parameters may help increase it.[6] Typical parameters include an external ID, hashed email and hashed phone number.

4. Deduplicate Events

If you send the same event from the Pixel and from the server, send the same event_id and event name with both. Meta treats events as identical based on their ID and name, and deduplicates them only if they arrive within 48 hours of the first one. In general it prefers the event received first.[9]

Deduplication of Pixel and server eventsThe same Purchase event with the same event ID arrives from the Meta Pixel and from the Conversions API. Meta matches them by event name and event ID and counts one purchase.Pixel eventPurchaseevent_id: 1234Server eventPurchaseevent_id: 1234Metasame namesame ID1purchaseSame event name and ID within 48 hours: counted once.Without a shared event ID, one purchase can count twice.
Simplified diagram of how Meta deduplicates events sent from the Pixel and from the server.

Implementation Framework: Google Enhanced Conversions

Google's approach differs. Enhanced conversions supplement your existing conversion tags by sending hashed first-party data from your website to Google.[10]

Setup Path

  1. Turn on enhanced conversions in Google Ads
  2. Update your conversion tags to capture first-party data such as email, name, address or phone number
  3. The data is hashed with SHA-256 before it is sent. Google asks you to remove leading and trailing spaces and convert text to lowercase first[10]
  4. Google matches the hashed data with signed-in Google accounts to attribute conversions to ad interactions[10]

Key Difference: it improves the measurement of conversions you already track, so the conversion tag still has to fire. You can set it up with Google Tag Manager, with the Google tag directly, or through the Google Ads API.[10]

The GTM Server-Side Container Approach

For teams managing several platforms, Google Tag Manager server-side is the scalable option.

Architecture:

  • The browser sends data to a server you control instead of sending it straight to each ad platform
  • A server-side GTM container runs on cloud infrastructure, for example Cloud Run
  • The server processes the data and forwards it to Meta, Google, TikTok and others
Server-side GTM container sending to several platformsYour website sends one data flow to a server-side Google Tag Manager container running on your own cloud. The container forwards the events to the Meta Conversions API, Google Ads enhanced conversions and the TikTok Events API.Your siteone data flowServer-sideGTM containeron your cloud(e.g. Cloud Run)MetaConversions APIGoogle AdsenhancedconversionsTikTokEvents APIThe server processes the data once and forwards it to each platform.
Simplified architecture. Hosting and maintenance of the server are your responsibility.

Pros:

  • One implementation, several platforms
  • Central control over what data leaves your domain
  • Less client-side JavaScript to load

Cons:

  • Hosting costs. On Cloud Run, Google puts the price at approximately USD 50 per instance per month, and it grows with traffic[11]
  • A more complex initial setup
  • Someone has to maintain the infrastructure

What About TikTok, LinkedIn and Snapchat?

  • TikTok Events API: a connection between TikTok and your marketing data across web, app and offline channels.[12]
  • LinkedIn Conversions API: lets you send conversion events to LinkedIn.[13]
  • Snapchat Conversions API: passes web, app and offline events to Snap server to server.[14]

Start with the platforms that take most of your budget and add the others as you scale.

Common Mistakes (That Will Cost You)

  1. Hashing customer data incorrectly. Normalize first (trim, lowercase), then use SHA-256, and leave the parameters that must not be hashed untouched.[8]
  2. Sending bot traffic. Filter bots on your server before forwarding events, or you will skew the data.
  3. Ignoring deduplication. If the same conversion arrives from the Pixel and from the server without a matching event_id and event name, it can be counted twice.[9]
  4. Weak event matching. Include identifiers such as an external ID or email, because more customer information parameters can improve match quality.[6]
  5. Not testing before going live. Meta's Test Events tool is there to validate your Conversions API connection, including deduplication.[6]

Implementation Checklist

Before you launch server-side tracking:

  • Access tokens generated and stored securely
  • Server endpoint built and tested
  • Customer data normalized and hashed correctly
  • Deduplication in place (same event ID and event name from Pixel and server)
  • Event Match Quality reviewed in Events Manager
  • Events checked in Meta's Test Events tool
  • Monitoring and logging for failed API calls
  • Fallback to the Pixel if the server fails
  • Legal review of the data processing and consent setup

What Does It Cost, and Is It Worth It?

The cost has two parts: the build and the running costs. Hosting a server-side GTM container on Cloud Run is approximately USD 50 per instance per month according to Google.[11] The development time depends on your stack and on how many platforms you connect, so we scope it in an audit.

To judge the value, compare the conversions your ad platforms report with the conversions in your own system (CRM, orders, booked calls). The size of that gap, and the Event Match Quality of your key events, tell you how much a better setup can recover.

Looking Ahead

Privacy rules and browser policies keep changing, and not always in one direction: Chrome kept third-party cookies while Safari tightened its limits.[5][4] Server-side tracking does not depend on any single browser's decisions, which is why it is a lasting part of a measurement setup and not a temporary workaround.

The question is not whether to measure with first-party data. It is how fast you can get it done properly.

Need Help With Implementation?

Server-side tracking setup requires both technical implementation and strategic configuration. If you want expert help implementing CAPI, Enhanced Conversions or GTM Server-Side, book a strategy call and we will map out your migration path.

References

  1. Apple's ATT Framework to Go into Effect April 26, 2021. Hunton Andrews Kurth.
  2. ATT opt-in rates: 2025 data & benchmarks. Adjust.
  3. AppsFlyer Data Shows Market Adaptation to Privacy-First Ecosystem Four Years After ATT. AppsFlyer, April 24, 2025.
  4. Intelligent Tracking Prevention 2.1. WebKit, February 21, 2019.
  5. Next steps for Privacy Sandbox and tracking protections in Chrome. Privacy Sandbox by Google, April 22, 2025.
  6. Conversions API: Best Practices. Meta for Developers.
  7. Conversions API: Get Started. Meta for Developers.
  8. Customer Information Parameters. Meta for Developers.
  9. Handling Duplicate Pixel and Conversions API Events. Meta for Developers.
  10. About enhanced conversions. Google Ads Help.
  11. Planning infrastructure requirements and costs (server-side tagging). Google for Developers.
  12. About Events API. TikTok for Business Help Center.
  13. Conversions API overview. Microsoft Learn, LinkedIn Marketing documentation.
  14. Conversions API. Snap for Developers.