Server-side tagging: the complete guide
Server-side tagging moves the work your tags do from the visitor's browser to a server you control. The browser sends one stream of events to your own domain; the server passes them on to Google Analytics, Google Ads, Meta and the rest. This page lists every guide we have on the subject, in the order that makes sense to read them.
New to it? Start with the first two. Already convinced and ready to build? Go to the Measurebase setup guide, which takes about fifteen minutes, and come back here for the background.
What it is
What a tagging server is, what it changes and what it costs. Read these before you decide.
- What is server-side tagging? Basics
Server-side tagging explained: what a tagging server does, how it differs from browser tags, what changes for cookies, blockers and consent, sGTM hosting. - Benefits of server-side tagging, and when it pays off Basics
The benefits of server-side tagging, from data quality to EU hosting, what it costs to run and maintain, when it pays off and whether to do it yourself. - First-party vs third-party cookies, explained for marketers Basics
First-party vs third-party cookies: which domain a cookie belongs to, what each browser does with it, why it decides attribution, what server-side changes. - Why host server-side GTM in the EU? Basics
Schrems II, data residency and what EU-hosted server-side GTM means for your analytics stack. - Server-side tracking glossary: the terms explained Basics
Server-side tracking glossary: server container, sGTM, Consent Mode, Conversions API, click IDs, ITP, first-party cookies, same origin and more.
Cookies and browsers
Safari and other browsers shorten the life of tracking cookies. What they do, and what server-side tagging changes about it.
- Why Safari still caps your cookies at 7 days, even with server-side tagging Fix
Since Safari 16.4 a tagging subdomain on another server gets its cookies capped at 7 days too. How to check your setup and how your own domain fixes it.
Ad blockers
What ad blockers stop, what a tagging server on your own domain recovers, and what nothing recovers.
- Ad blockers and your GA4 numbers: what you lose and what you can recover Basics
Ad blockers stop GA4 and ad pixels on many visits. What they block, what server-side tagging on your own subdomain recovers, and what nothing can.
With Measurebase
The pieces of Measurebase that act on these subjects have their own guides: Same-Origin Tracking and Cookie Keeper for cookie lifetime, Enhanced Ad Blocker Protection for blockers, and moving an existing server container if you already run one elsewhere.