Server-side tracking

Server-side event tracking for Google Ads, GA4 and Meta

Server-side tracking sends your site’s events — purchases, leads, add-to-carts — to Google Ads, GA4 and Meta through your own server, not only from the visitor’s browser. Ad blockers and Safari limits stop cutting the data, so ad algorithms see more of your sales and spend the budget more precisely.

Illustration · 10 sales on the site
10 On the site 7 Client-side 10 Server-side
your ads see it your ads miss it recovered by server-side tracking

In short

What it is
Events sent through your server to Google Ads, GA4 and Meta
Who it is for
Mid-size and large e-commerce, businesses with large ad budgets
What is included
A server setup built for your platform, Meta Conversions API, Consent Mode v2, server cookies, testing and debugging
Result
In our projects — up to 3× return on ad spend after implementation
Timeline
Depends on the site and the number of events — set after an audit

What is server-side tracking?

It is a setup in which the visitor’s browser sends an event not straight to Google and Meta but to your server — a subdomain of your site. The server checks the event, enriches it and passes it on to Google Ads, GA4 and Meta itself.

Ordinary, client-side tracking works differently: pixels and tags run inside the browser, and anything that gets in their way — an ad blocker, Safari’s limits, a slow connection — cuts some events. Server-side tracking removes the browser as the only messenger.

Why set up server-side tracking?

So that your ads see every sale they brought. When some conversions are lost, Google’s and Meta’s algorithms learn from an incomplete picture and spend the budget worse.

≈30%

of internet users run an ad blocker

Blockers strip Google and Meta pixels. Events that travel through your own domain are usually left alone.

Source: GWI via Backlinko
7 days

is how long JavaScript cookies live in Safari

And after a click from an ad with a decorated link — up to 24 hours. A purchase two weeks later is invisible to the ad. Server cookies are set by your domain — set up right, they fall outside that limit.

Source: WebKit, Intelligent Tracking Prevention
−13%

cost per conversion with Conversions API alongside the pixel

That is the average from Meta’s experiments: the algorithm gets more signal and finds buyers better.

Source: Meta, 28 A/B tests, 2022
3×

In our projects, return on ad spend after server-side tracking went live grew up to three times.

Client-side or server-side tracking: what is the difference?

Client-sideServer-side
Ad blockersSome events never arriveEvents travel through your domain
Safari and iOSCookies up to 7 days, after an ad up to 24 hoursServer cookies on your domain live longer
Site speedDozens of scripts in the browserOne light request
Data qualityWhatever the browser managed to catchChecked and enriched on the server
MetaPixel onlyPixel + Conversions API, no duplicates
ControlScripts decide what to sendYou decide what goes where, and when

Does server-side tracking work with Consent Mode v2?

Yes — and for traffic from the EU and UK it has to. Since March 2024 Google requires Consent Mode v2 for advertisers who use audiences and measurement for users in the European Economic Area. We set it up together with server-side tracking: the consent banner’s choice reaches every event, and modelled conversions fill the gap for users who decline.

How to set up server-side GTM — and why we take another route

Server-side Google Tag Manager is a popular way to do server-side tracking. We do not use it: we build server-side tracking individually for your platform. Here is how sGTM is set up and how our approach differs.

How server-side GTM is set up

  1. Create a server container in Google Tag Manager.
  2. Deploy it on hosting — Google Cloud or a third-party service — and pay for the server every month.
  3. Map a subdomain of the site so requests go through your domain.
  4. Switch the GA4 tags in the web container to send to the server container.
  5. Configure Google Ads, GA4 and Meta Conversions API tags in the server container.
  6. Test in preview mode and monitor the server after launch.

Our route

  • A setup built for your platform instead of generic containers assembled from scratch.
  • Installed, tested and debugged for you — no in-house developer needed.
  • Server cookies and event delivery set up right from day one.
  • One team responsible for everything — from the server to the report.

How we set up server-side tracking

Six steps from an audit to verified event delivery.

  1. 01

    Event audit

    We look at the events you have, what is lost and what the ads need.

  2. 02

    Server setup

    We deploy the server side for your platform on a subdomain of your site — requests go through your domain.

  3. 03

    Event delivery

    Google Ads, GA4 and Meta Conversions API — with deduplication, so the pixel and the server never count a purchase twice.

  4. 04

    Consent Mode v2

    Connected to your consent banner, so every event respects the user’s choice.

  5. 05

    Testing and debugging

    We check every event: does it arrive, without duplicates, with the right value.

  6. 06

    Handover and monitoring

    We show what goes where and keep watch that it all works after launch.

Is Meta Conversions API included?

Yes. Meta Conversions API is server-side event delivery to Meta, and we set it up alongside the pixel. Each event carries a shared ID, so Meta counts a purchase once even when both the browser and the server send it.

Who implements it

Serg, Founder · Principal Data Architect
Founder · Principal Data Architect

Serg

In almost every large account we take on, part of the sales never reaches the ads. The reports look fine, while the algorithm learns from incomplete data. Server-side tracking gives it the full picture back — and return grows without a single change to the campaigns.

Nicko Belick, Head of Product Engineering · Full-Stack
Head of Product Engineering · Full-Stack

Nicko Belick

We set up the server side for your platform so the site does not slow down — it loses scripts in the browser instead. Every event is checked before launch: value, currency, ID and no duplicates.

Server-side tracking questions

What is server-side tracking in simple terms?
Your site’s events — purchases, leads — reach Google Ads, GA4 and Meta through your server, not only from the browser. That way ad blockers and Safari’s limits do not cut them.
Why server-side tracking if I already have a pixel and GA4?
The pixel and GA4 stay — server-side tracking works alongside them and recovers events the browser lost. Deduplication by a shared event ID removes the doubles.
Does server-side tracking get around ad blockers?
Yes. Events travel through your own domain and server, so ad blockers and Safari’s limits do not cut them — every purchase and lead reaches the ads, within the consent each user gives.
Is it compatible with GDPR and Consent Mode v2?
Yes. We connect Consent Mode v2 to your consent banner, so the user’s choice applies to every event on the server as well, and modelled conversions cover users who decline.
What is Meta Conversions API, and is it included?
It is server-side event delivery to Meta. It is included: set up alongside the pixel with deduplication, so a purchase counts once.
How is your approach different from server-side GTM?
We do not build Google Tag Manager containers or rent separate hosting for them. We build server-side tracking individually for your platform and implement it end to end: setup, testing, debugging and server cookies.
Will it slow my site down?
No. Some scripts move from the browser to the server, so pages have less code to run.
How much does server-side tracking cost?
It depends on the number of events, platforms and traffic. We price it after an audit — leave a request and we will give you a figure for your site.

Sources

  1. GWI: share of internet users with ad blockers (via Backlinko)
  2. WebKit: Intelligent Tracking Prevention 2.1 — 7-day cookie cap
  3. WebKit: 24-hour cookie cap after link-decorated navigation
  4. Meta Blueprint: Conversions API with the pixel — 13% lower cost per conversion on average (28 A/B tests, 2022)
  5. Meta: Conversions API documentation
  6. Google: About Consent Mode

Let’s discuss implementation

Tell us about your site and ads — we will audit your events and give you a timeline and a price.

Or reach us directly
Talk to a specialist

Book a consultation with a specialist.

Leave three details and the specialist who would run your account will get back to you within one business day — to go through your advertising, tracking and growth plans together.

  • 100%projects based on reliable analytics
  • −30%average decrease in acquisition cost
  • 12+ moaverage client retention
Or reach us directly