Move tags to a server container

Move tags to a server container

Analytics & Attribution
Google
Fewer third-party scripts on the page, one place to control what data leaves, and the same Tag Manager interface you already use.
Source
Google
Tools
Google Tag Manager, Cloud Run
Runs
Continuous
Cost
Cloud hosting costs
Last updated
August 7, 2026

What it is.

A server container uses the same tag, trigger, and variable model as the web container you already know. The difference is where tags run: your browser sends one request to your server, and the server distributes data to the destinations.

Google names three gains: better page performance because vendor scripts leave the page, more detailed control over what data goes where, and better data quality.

Setup means standing up a tagging server, usually on Cloud Run, then mapping a custom domain to it so requests come from your own hostname.

What you get.

  • Vendor tags moved off the page, so fewer third-party scripts load in the browser.
  • One control point for deciding which data reaches which destination.
  • The same tag, trigger, and variable model as your web container.
  • A first-party hostname for measurement requests.
  • Preview and debug tooling for the server container.
HOW TO USE IT

How to set it up.

1

Create a server container in Tag Manager, alongside your existing web container.

2

Stand up the tagging server, with Cloud Run as the standard option.

3

Map a custom domain to the server so requests come from your own hostname.

4

Point your web container at the server container and send one data stream to it.

5

Rebuild destination tags inside the server container, one vendor at a time.

6

Use preview and debug to confirm each destination receives what you expect before removing the browser tag.

Use cases

Take scripts off the page

Move vendor tags to the server so fewer third-party files load.

One place to decide what leaves

Control which data reaches which vendor from a single container.

Speed up a heavy page

Cut the browser work on a template weighed down by tags.

Best for

Pages slowed by tags

Marketing tags are often the largest third-party weight on a landing page.

Tighter data control

A server container is the one place you can decide what a vendor receives.

Measurement teams losing data

Browser-side collection loses events to blockers and privacy settings.

Open the original.

Hosted on Google, free to open.
Open the Tool

Questions about Move tags to a server container

What does it cost to run?
Can a marketer set this up alone?
Can I move all my tags?

Questions about Analytics & Attribution

What does server-side tagging buy you?
How should a migration be sequenced?
Strengths
  • It reuses the tag, trigger, and variable model, so existing Tag Manager knowledge transfers.
  • The custom domain means measurement requests come from your own hostname.
  • Preview and debug exists for the server container, so migration can be verified per tag.
Limitations
  • You pay for the hosting, so this is the one Google tagging option with a running cost.
  • It needs someone comfortable with Cloud Run and DNS, so it isn't a marketer-only project.
  • Each vendor tag has to be rebuilt server-side, and not every vendor supports it.
  • A misconfigured server container can lose data silently, so migrate one tag at a time.
Skip this if
  • Skip it if you have no engineering support for a server container.
Ideal for
  • Analytics engineers
  • Marketing ops leads
  • Stage: Series B onward

Want this running without building it yourself?

TripleDart has scaled 300+ tech companies with expert operators and AI workflows behind every play.