Analytics guide

Does server-side tagging avoid consent?.

It gives control over the data. It does not remove the consent rule.

The short answer

Server-side tagging moves the tags from the visitor's browser to a server you control, so you decide what data leaves and where it goes.1 It does not remove the consent rule. Consent mode still decides what the tags send while consent is denied.2

Starting point
Your ownserver, in your own cloud project, which Google says you operate1
Deniedconsent sends measurements without cookies, while basic consent mode blocks the tags2

A server adds control. It also adds cost and work, so start with a clear reason.

What server-side tagging is

A server container does not run in the visitor's browser. It runs on a server, and the tags, triggers and variables work as they do in a web container.1

Two lanes: tags run in the visitor's browser or on a server you control, and consent mode still decides what they send in both.
The two places the tags can run. Both setups follow the consent rules in sources 1 and 2 below.

Control over the data

Google says only you have access to the data on the server until you send it elsewhere, and that you control how the data is shaped and where it is routed.1 That is the main reason a shop might use it.

See where your website loses revenue.

Get a free Traffic Scan →

Cost and work

The server runs in your own Google Cloud project, so you run the infrastructure.1 Google recommends installing the server on your own domain before sending production traffic.1

Google does not state a cost in its introduction. Check the cloud pricing yourself before you commit.

When it is worth it

  • You need control: you want to decide what leaves the site and where it goes.1
  • You have the capacity: someone can run the server and keep it working.1
  • Consent is already set up: the banner and the consent mode settings come first.2
Decision tree: check consent, then control over the data, then whether someone can run the server, before a server-side setup.
The three checks from this guide, in order, with the outcome of each answer.

Mistakes to avoid

  • Moving the tags to a server to avoid consent: the consent rule still applies.2
  • Skipping the first-party domain: Google recommends installing the server on your own domain before production.1
  • No owner for the server: the data stops arriving when nobody maintains it.

Discover your website’s 3 biggest gaps for free.

Get a free Traffic Scan →

Frequently asked questions

Does server-side tagging avoid the cookie banner?
No. Consent mode still decides what the tags send while consent is denied, so a banner is still needed.
Who runs a server-side container?
You do. Google says the server runs in your own Google Cloud project.
Is server-side tagging the same as cookieless tracking?
No. Cookieless measurement is what consent mode sends while consent is denied. Server-side tagging is where the tags run.
What does advanced consent mode send before consent?
Measurements without cookies. In advanced consent mode, tags load with defaults set to denied, and they send measurements without cookies until consent is granted.

Sources

  1. Google for Developers, An introduction to server-side tagging: what a server container is, control over the data, the Cloud project and the first-party domain.
  2. Google for Developers, Consent mode overview: what basic and advanced consent mode send while consent is denied.