Server-side tracking setup

Everything for a server-side tracking setup, from your first Tag Manager container to the first verified hit, in the order you will do it. 12 articles

A server-side tracking setup has four parts: a server container in Google Tag Manager, a subdomain of your site pointed at the tagging server with one DNS record, a first-party loader in place of the old GTM snippet, and server_container_url on your Google tag. If the idea is new to you, what server-side tagging is explains it without assuming you have run a server.

Then follow the complete setup guide: account, domain, DNS record, tracking script, power-ups and the proof that it works, in about fifteen minutes of actual work. The Tag Manager side has its own guides for the web container and the server container.

The other articles on this page cover what comes next: a GA4 property, several domains on one account and an onboarding checklist for agencies.

Start here: Setting up Measurebase: the complete guide

Server-side tracking setup

Frequently asked questions

How long does a server-side tracking setup take?

With an existing server container, about fifteen minutes of work plus DNS propagation, which usually takes minutes. Without one, add the time to create the container in Google Tag Manager and import your tags. The setup guide lists what to have ready before you start.

What do I need before I start?

A web container that works, a consent banner with Consent Mode, access to your DNS provider to add one A record, and a server container in Google Tag Manager. Also decide who owns the setup after launch. A server forwards what the browser sends, so a tag that fires twice still fires twice.

How do I know my server-side tracking works?

The domain's status is Active instead of Pending, a real visit to your site shows up in the request log with a green 200, and your server container's preview mode shows the request arriving and your tags firing. With Enhanced Ad Blocker Protection on, its page says Working.

Put it into practice

Start free, no credit card required.

Start free