Skip to content
7.8Advanced8 min

Server-Side Tracking: Setting Up Meta CAPI and LinkedIn CAPI

Lucas BlochbergerUpdated 18 November 2026
Definition

With server-side tracking, your own server or a server container sends conversion events directly to the ad platform, usually in addition to the browser pixel: for Meta via the Conversions API, for LinkedIn via the LinkedIn Conversions API. This reduces losses from ad blockers, browser tracking protection and short cookie lifetimes. It doesn't replace consent.

Key Takeaways

  • Costs according to Chatterbuzz: CAPI Gateway 10 to more than 400 USD per month, server-side GTM 10 to 50 USD per month, direct API integration 500 to more than 5,000 USD one-time.
  • Pixel and Conversions API run in parallel. To keep a conversion from counting twice, the browser event and the server event carry the same event ID, and for Meta also the same event_name.
  • Meta rates every server event from the web with an Event Match Quality score from 0 to 10. More matching identifiers such as a hashed email address, fbp and fbc improve the score.
  • LinkedIn introduced the Conversions API in October 2023. Since May 2025, you can set an attribution window of up to 365 days for selected conversion types such as Lead, Qualified Lead or Purchase.
  • In a Stape case study, the Dutch agency Hide and Seek reports 15 to 30% more captured data in Meta Events Manager after introducing the Meta Conversions API. The case study doesn't state its methodology or time period.
  • Server-side tracking doesn't replace consent. Tracking cookies such as _fbp, _fbc and li_fat_id still require consent in Austria and Germany.

Why server-side tracking is necessary for Meta and LinkedIn

A browser pixel loses events before they reach the platform. Ad blockers block the script, browser tracking protection shortens cookie lifetimes, and the pixel doesn't see what happens in the CRM after the click at all. A server event, by contrast, comes from your shop backend, your form handler or your CRM. That also lets you report offline conversions, such as a qualified lead after a sales call. The LinkedIn Conversions API, introduced in October 2023, connects online and offline conversions directly to LinkedIn (LinkedIn API changelog 2023).

Meta and LinkedIn both recommend a redundant setup: the pixel or Insight Tag in the browser, plus the Conversions API on the server, with the same events sent on both paths (Meta, LinkedIn). To keep a conversion from counting twice, the browser event and the server event carry the same ID. This deduplication is the core of every clean setup.

Server-side tracking only changes how the data travels. The consent requirement stays in place, as the consent section below explains.

The broader context is in the pillar Social Media Analytics, KPIs & Measurement. Related decisions are covered in depth in Share of Search: The Cheapest Leading Indicator of Market Share, Consent Rate and Tracking Law: How Much Data DACH Really Loses and Incrementality Testing: Geo-Lift Tests Instead of Platform ROAS.

Figures and sources on Meta CAPI and LinkedIn CAPI

Chatterbuzz, Meta CAPI Guide, 2025, global: Costs: CAPI Gateway 10 to more than 400 USD per month depending on event volume, server-side GTM 10 to 50 USD per month for hosting, direct API integration 500 to more than 5,000 USD one-time for development.

AdExchanger, February 19, 2025, global: The AdExchanger report presents the LinkedIn Conversions API as new and reports that LinkedIn is extending the lookback window of its Revenue Attribution Report from 180 to 365 days. The CAPI wasn't actually launched at that point: according to its own API changelog, LinkedIn introduced it in October 2023. Jae Oh (Head of Ads Measurement, LinkedIn) says about the time before: “we weren't capturing all those [conversion] events”.

As early results from advertisers using the LinkedIn CAPI, AdExchanger cites 31% more conversions attributable to LinkedIn, 20% lower cost per action and 39% lower cost per qualified lead. The report doesn't state a methodology. LinkedIn itself puts the average lift in attributed conversions at 31%, based on a pilot project (LinkedIn). The figures describe early test accounts, not a market average.

LinkedIn Conversions API, official documentation, 2026, global: The match rate rises when you send several identifiers, such as the hashed email address and the click ID li_fat_id (LinkedIn). Insight Tag and CAPI are deduplicated via the same eventId (LinkedIn). Since May 2025, you can set an attribution window of up to 365 days for selected conversion types such as Lead, Qualified Lead or Purchase (LinkedIn changelog).

Stape, Hide and Seek case study, 2025, Netherlands: The Dutch agency Hide and Seek connected the Meta Conversions API for its clients through a server-side GTM container and then observed 15 to 30% more captured data in Meta Events Manager (Stape). The case study doesn't state the number of accounts, the time period or the baseline.

Based on its own CAPI implementations across dozens of paid media accounts, the agency Chatterbuzz reports 15 to 20% better ROAS once Event Match Quality is optimized. That is a vendor claim without independent review, not a measured causal effect. The figure works as an order of magnitude for your business case calculation, not as a target value.

Choosing a setup: gateway, server-side GTM or direct API

There are three common routes for Meta. The costs come from the Meta CAPI guide by the agency Chatterbuzz and are indicative figures, not quotes.

Option

Ongoing costs

One-time effort

Good fit when

Conversions API Gateway

10 to more than 400 USD per month, depending on event volume

low, set up in Events Manager without code

you only connect Meta and have no developers available

Server-side GTM

10 to 50 USD per month for server hosting

medium, set up a server container and your own subdomain

several platforms should run through one container

Direct API integration

no hosting fees

500 to more than 5,000 USD in development

events come from your backend or CRM and you want full control over the data

The gateway runs in your company's own cloud account on AWS or Google Cloud and updates itself once you approve it (Meta). Server-side GTM uses the same model of tags, triggers and variables as the web container and runs on Google Cloud or a platform of your choice (Google). You connect the LinkedIn CAPI through a partner integration or directly via the API. For a direct connection, you generate the access token in Campaign Manager under Data, Signals Manager, Direct API. You don't need your own developer app for this (LinkedIn).

Step-by-step setup

1. Define your events: Pick a few events your campaigns optimize for, such as Lead, Purchase or a qualified lead from the CRM. For each event, decide whether it runs through the browser, the server or both, and who owns it technically.

2. Deduplicate Meta events: Send each event in the pixel with eventID and on the server with the same value in the event_id field, plus an identical event_name. Meta then discards the duplicate if both events arrive within 48 hours (Meta). Server events can be no more than seven days old. If any event in a batch is older, Meta rejects the entire request. The exception is offline purchases in a physical store (action_source physical_store), which you can report up to 62 days later (Meta).

3. Pass Meta identifiers: Pass the fbp and fbc parameters unchanged, meaning the values of the _fbp and _fbc cookies, along with the IP address and user agent. Normalize email addresses (remove spaces, use lowercase), and write phone numbers with the country code, without a leading zero and without special characters: 0664 123456 becomes 43664123456. Hash both with SHA-256 (Meta). Meta shows how well the matching works for each server event from the web as Event Match Quality on a scale from 0 to 10 in Events Manager (Meta).

4. Connect LinkedIn: In Campaign Manager, enable Enhanced Conversion Tracking on the Insight Tag. LinkedIn then appends the click ID li_fat_id to the landing page URL with every ad click. Read it from the URL or from the cookie and pass it on as a hidden form field (LinkedIn). For each conversion, create one rule for the browser and one for the server, and pass the same eventId in both. When there are duplicates, LinkedIn counts the Insight Tag event and discards the CAPI event (LinkedIn).

5. Send LinkedIn events: Send li_fat_id as LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID and the hashed email address as SHA256_EMAIL. The conversion timestamp can't be more than 90 days in the past (LinkedIn).

6. Test: For Meta, generate a test code in Events Manager under Test Events and send it as test_event_code. The server events then appear in the test window. Remove the code before you go live (Meta). For LinkedIn, check the conversion breakdown in Campaign Manager to see whether Insight Tag and CAPI conversions show up separately.

Consent: what server-side tracking doesn't solve

The _fbp, _fbc and li_fat_id cookies sit in your visitors' browsers. In Germany, storing or reading information there is only permitted with consent under § 25 TDDDG, unless it is strictly necessary for a service the user has explicitly requested. In Austria, § 165(3) TKG 2021 likewise requires active consent based on clear information. Conversion tracking for ad platforms is generally not strictly necessary for the service your visitors want to use. That doesn't change when the event later comes from the server instead of the browser.

Hashed email addresses also serve exactly this purpose: assigning an event to a person. Only send them if the person has consented. Technically, this means passing the consent status from your banner through to the server container or backend and only sending events that have consent. Swiss websites follow their own rules, which you should check separately.

Common mistakes

  • No shared event ID: Pixel and server report the same conversion, the platform often doesn't recognize the duplicate, and the conversion counts twice.
  • Mismatched event names: For Meta, event_name has to be identical in browser and server, otherwise deduplication doesn't work.
  • Server events without a consent check: The server also sends events for visitors who declined in the banner.
  • Incorrectly hashed identifiers: Email not normalized, phone number without the country code or with a leading zero, fbp and fbc hashed even though Meta expects them unchanged. Event Match Quality stays low.
  • Late events: Meta rejects events older than seven days, except store purchases with action_source physical_store, where 62 days apply. LinkedIn rejects conversions older than 90 days. A monthly export is therefore not enough for online and CRM events.
  • Test code in production: The test_event_code stays in the payload after testing, even though Meta only intends it for testing.
  • Container without monitoring: If the server container or gateway goes down, server events go missing without anyone noticing.

Measurement and ongoing monitoring

Server-side tracking rarely fails because of the tool. It fails more often because ownership is unclear and nobody checks it after go-live. Every review should cover these four fields.

Review field

Guiding question

Good state

Warning sign

Source

Which events come from the browser, the server and the CRM?

event list with source and owner for each event

the same event from several sources without a shared ID

Processing

Are identifiers hashed and event IDs set?

email and phone normalized and hashed with SHA-256, event ID in every event

identifiers in plain text or missing event IDs

Control

How good are Event Match Quality and deduplication?

EMQ checked regularly for each server event, LinkedIn's Insight Tag figure is higher than the CAPI figure

conversions jump sharply after the switch

Fallback

What happens if the container, gateway or API fails?

alert when events drop, pixel and Insight Tag keep running

the outage only shows up in the monthly report

Compare the conversions in Events Manager and Campaign Manager before and after the switch with the figures from your shop or CRM. More reported conversions don't automatically mean more revenue. Only a test with a control group, such as a geo-lift test, shows whether the campaigns actually perform better.

When you calculate costs, include implementation, maintenance, consent integration and monitoring alongside hosting and licenses. The Chatterbuzz figures above only cover hosting and development.

Data & Statistics

Costs: CAPI Gateway 10 to more than 400 USD per month, server-side GTM 10 to 50 USD per month, direct API integration 500 to more than 5,000 USD one-time

Chatterbuzz, Meta CAPI Guide (2025)

Jae Oh (Head of Ads Measurement, LinkedIn) on the time before the Conversions API: “we weren't capturing all those [conversion] events”; according to AdExchanger, LinkedIn extended the lookback window of its Revenue Attribution Report from 180 to 365 days in February 2025

AdExchanger, LinkedIn Launches Conversions API (2025)

LinkedIn: match rate increases with li_fat_id (First-Party Ads Tracking Click ID) and multiple identifiers; Insight Tag and CAPI are deduplicated via eventId; attribution window of up to 365 days available for selected conversion types such as Lead or Purchase

LinkedIn Conversions API, official documentation (2026)

Agency Hide and Seek: 15 to 30% more captured data in Meta Events Manager after introducing the Meta Conversions API via server-side GTM (case study without methodology or time period)

Stape, Hide and Seek case study (2025)

Early results from advertisers using the LinkedIn CAPI according to AdExchanger, without a stated methodology: 31% more conversions attributable to LinkedIn, 20% lower cost per action, 39% lower cost per qualified lead

AdExchanger, LinkedIn Launches Conversions API (2025)

Chatterbuzz reports 15 to 20% better ROAS from its own CAPI implementations after optimizing Event Match Quality (vendor claim, not independently audited)

Chatterbuzz, Meta CAPI Guide (2025)

LinkedIn introduced the Conversions API in October 2023; it connects online and offline conversions directly to LinkedIn and replaces the Offline Conversions API

LinkedIn, Marketing API Changes 2023 (2023)
Summarize with AIChatGPTClaudePerplexity

Opens the chat with a prepared prompt.

Frequently asked questions

What does “server-side tracking” mean in practice?
With server-side tracking, your own server or a server container sends conversion events directly to the ad platform, usually in addition to the browser pixel: for Meta via the Conversions API, for LinkedIn via the LinkedIn Conversions API. This reduces losses from ad blockers, browser tracking protection and short cookie lifetimes. It doesn't replace consent.
When is “server-side tracking” relevant for a DACH company?
As soon as you optimize Meta or LinkedIn campaigns for conversions and see significantly fewer conversions in Events Manager or Campaign Manager than in your shop or CRM. In B2B with long sales cycles, there's another factor: the LinkedIn CAPI also takes in offline conversions from the CRM, such as a qualified lead weeks after the click. The consent requirement still applies in Austria and Germany.
How do you introduce “server-side tracking”?
First choose the option: Conversions API Gateway, server-side GTM or direct API. Start with a single event such as Lead or Purchase, send it through the pixel and the server with the same event ID, and check in Meta's Test Events tool or in the conversion breakdown in LinkedIn Campaign Manager whether deduplication works. Only then connect further events.
What data and tools do you need?
For Meta, you need access to Events Manager and the pixel and, depending on the option, a cloud account for the gateway, a server container or developer time for the direct integration. For LinkedIn, you need an Insight Tag with Enhanced Conversion Tracking enabled, one rule each for browser and server per conversion and, for the direct integration, an access token that you generate in Campaign Manager. Only platforms and partners that connect on behalf of other advertisers need a developer app with the rw_conversions and r_ads permissions. Hashed email addresses, fbp, fbc and li_fat_id serve as identifiers, each only with consent.
What mistakes are typical during setup?
A missing shared event ID, so conversions count twice. Unhashed or unnormalized email addresses and missing fbp and fbc values, which push Event Match Quality down. Server events without a consent check. And events that arrive too late: Meta rejects events older than seven days, except store purchases with action_source physical_store, where 62 days apply. LinkedIn rejects conversions older than 90 days.
How do you measure whether the setup works?
Compare the conversions in Events Manager and Campaign Manager before and after the switch with the figures from your shop or CRM. For Meta, Event Match Quality per server event shows how well the identifiers match. For LinkedIn, the conversion breakdown shows Insight Tag and CAPI conversions separately. If deduplication works, the Insight Tag figure is usually higher. Only a test with a control group tells you whether more measured conversions also mean more revenue.

Want to go deeper?

Get new analyses straight to your inbox, or see how we put this knowledge to work for companies.