{# DE + SK hreflang odebráno 2026-05-24 — viz core/settings.py LANGUAGES. cross_lang_alternates is set False by views whose CS/EN versions live on DIFFERENT paths (KB articles/categories, blog posts) — there the naive same-path alternate would point at a non-existent URL, so we emit only the self-canonical instead of a wrong reciprocal. #} Skip to content

Server-side tracking: the complete 2026 guide

What server-side tracking is, how it works, when it pays off and how to deploy it. A plain-English explanation from the basics to a real server-side GTM setup.

D
DataNostro Team 7. 6. 2026 · 12 min · Beginner

Server-side tracking is no longer reserved for large stores with their own engineering team. In 2026 it is the standard way to measure conversions accurately in a world of ad-blockers, iOS restrictions and stricter privacy rules. This guide explains what server-side tracking is, how it works and how to deploy it — without the marketing fluff.

What server-side tracking is

Classic (client-side) measurement runs JavaScript in the visitor's browser that sends data straight to Google Analytics, the Meta Pixel, TikTok and dozens of other tools. Every tool ships its own script and each one sets its own cookies in the browser.

Server-side tracking moves that logic out of the browser and onto a server. The browser sends a single request to your own server-side GTM container (sGTM), which then forwards the data to each platform — server-to-server. The visitor's browser no longer talks to dozens of third-party domains.

Why it matters

Client-side measurement has four big weaknesses in 2026:

  • Ad-blockers block the Google Analytics, Meta Pixel and other scripts. Depending on the audience, 20–35% of visitors run an ad-blocker — and their conversions simply never reach you.
  • Safari ITP and iOS cap the lifetime of cookies set by JavaScript to 7 days (in some cases 24 hours). A returning customer looks brand new and attribution falls apart.
  • Page performance. Every measurement script slows down loading. Server-side moves that load off the visitor's device onto a server.
  • Privacy and data control. Server-side gives you a single place to decide what data leaves and to whom — which makes GDPR compliance far easier.

How server-side tracking works, step by step

The data flow in server-side measurement looks like this:

  • 1. Web GTM in the browser captures an event (page view, add to cart, purchase).
  • 2. Instead of sending it straight to GA4 and Meta, it sends it to your server-side GTM container on your own (sub)domain, e.g. sgtm.yourdomain.com.
  • 3. The sGTM container processes the event, enriches it (e.g. with IP geolocation) and forwards it server-to-server to GA4 via the Measurement Protocol, to Meta via the Conversions API, to Google Ads, TikTok and others.
  • 4. Visitor-identification cookies are set via an HTTP header as first-party — which is why they are not subject to the 7-day cap that client-side cookies face.

The key point is that the whole exchange runs through your domain. To the browser and to an ad-blocker it looks like an ordinary request to your own site, not a call to a third-party tracking domain.

Deduplication: don't double-count conversions

Most stores run a transition period with client-side and server-side measurement at the same time. To avoid counting conversions twice, events are sent with a unique event_id (or transaction_id) that lets the platform match the pixel and server-side event. We cover this in detail in our article on GA4 and Meta CAPI deduplication.

When server-side tracking pays off

Server-side makes sense for almost any site that measures conversions and invests in advertising. The payback is fastest if you:

  • spend on performance advertising (Google Ads, Meta, TikTok) — more accurate data means better optimization and a lower cost per conversion;
  • have a large share of mobile and Safari/iOS traffic;
  • care about GDPR and want control over what data leaves and to whom;
  • use several ad platforms at once.

What you need to deploy it

To run server-side GTM you need three things: a server-side GTM container, somewhere for it to run (Google Cloud or managed hosting) and connections to your ad platforms. You can build and run sGTM on raw Google Cloud, but that means managing a server, scaling, monitoring and updates. Managed hosting like DataNostro handles that for you — deployment takes minutes and you never touch infrastructure. We compared the options in Stape vs Addingwell vs Google Cloud vs DataNostro.

Common misconceptions

  • "Server-side bypasses consent." It doesn't. Server-side tracking does not bypass GDPR or Consent Mode — it gives you better tools to respect consent. See Consent Mode v2 in practice.
  • "It's only for big stores." Today you can deploy it in an afternoon, even on a small shop.
  • "It replaces web GTM." It doesn't — server-side and client-side GTM work together.

Summary

Server-side tracking is the most reliable way to measure conversions today. It moves data collection out of the fragile browser environment onto a server where ad-blockers and ITP can't touch it — while giving you full control over your data for GDPR. If you invest in advertising, it is one of the few changes that shows up directly in your cost per conversion. Try DataNostro for free or read the server-side GTM basics in the docs.

Share

A new article once a month

In-depth server-side tracking guides + case studies from the CZ market. No spam, just 1 email a month. Unsubscribe anytime.

Back to Tracking