All articles

Server-Side Tagging: What It Costs and When It Pays

Published

Server-Side Tagging: What It Costs and When It Pays

Server-side tagging moves the tracking tags that run in your visitor’s browser onto a server you control. Your site sends one stream of events to that server, and the server decides what goes on to Google Analytics, Google Ads, Meta and the rest. It is not free to run: expect a hosting bill every month, plus the work of setting it up and watching it.

What server-side tagging is

In a normal Google Tag Manager setup, a web container loads on every page and fires each vendor’s script in the browser. Server-side tagging adds a second container, the server container, that runs on a tagging server. The web container sends events to that server instead of to every vendor.

Inside the server container, a client receives each incoming request and turns it into an event. Tags, triggers and variables then act on that event, the same vocabulary you already know from the web container. Google’s documentation has it run in your own Google Cloud project or in another environment you choose.

Client-side vs server-side tagging

Client-side Server-side
Where tags run The visitor’s browser A server you control
What the page sends out A script and requests for each vendor One stream to your own server
Who controls what leaves Each vendor’s script Your server container
Cookies Mostly written by scripts in the browser Can also be set by your server, on your domain
What you pay for Nothing extra Hosting, setup and upkeep

The row that matters for a buyer is the last one: the server setup is infrastructure you now own.

What it fixes and what it does not

Google lists four benefits: pages run less code because fewer measurement tags load in the browser, data is collected and routed in an environment you manage, a custom subdomain lets the server set cookies that page scripts cannot read, and, because server containers run on Cloud Run, downtime there does not affect your website’s performance.

In practice you get three things:

  • Fewer scripts on the page, so less to download and less to break.
  • A single place to inspect, change or drop data before it reaches a vendor.
  • Longer-lived cookies, if you set it up on your own domain correctly (more on that below).

What it does not do matters just as much:

  • It does not create consent. A visitor who said no is still a visitor who said no.
  • It does not fix bad events. If the web container sends a form submit as a purchase, the server forwards a wrong number, faster.
  • It does not improve ad performance by itself. It improves what the platform is told. If you want to know whether your account has a gap, start with the checks in our explainer on server-side tracking.
  • It does not run itself. Someone has to watch the server and the event flow.

What it costs: hosting options, read today

Hosting is the recurring part. These figures come from Google’s pages and Stape’s pricing page, read on October 24, 2026.

Option Monthly cost What you get
Google’s default setup Free in most cases, per Google Meant for testing and limited traffic, on a run.app address
Cloud Run in your own project About $45 per server Each server is 1 vCPU and 0.5 GB of memory; Google recommends at least 2
Stape Free $0 Up to 10K requests a month
Stape Pro $17 billed annually (the page also shows $20) Up to 500K requests, 3 days of logs
Stape Business $83 billed annually (also shows $100) Up to 5M requests, 10 days of logs, up to 20 domains
Stape Enterprise $167 billed annually (also shows $200) Up to 20M requests

Two things to read carefully.

Cloud Run is priced per server, and Google recommends more than one. Its Cloud Run setup guide puts each server at roughly $45 a month in USD and recommends running a minimum of 2 instances to reduce the risk of losing data in an outage. Multiplying Google’s own figure, that is around $90 a month. For live, high-traffic sites, Google’s overview recommends at least 3 instances per container, and it says upgraded deployments cost roughly $30 to $50 per server per month, with heavy network traffic adding more. Running your own tagging server raises the same hosting question covered in dedicated server vs cloud.

Stape is priced by requests. A plan is a ceiling on requests per month, so your traffic and the number of events each page view sends decide which plan you land on. Check how the provider counts a request before you pick a tier, and whether the custom domain you need is included in that tier, because the cookie benefit depends on it.

The default setup is the one to be careful with: Google says it is for testing, and it does not serve a domain of yours.

Why the domain matters

The reason most people want server-side tagging is cookies, and cookies depend on the domain. Google describes three cases:

  • Same-origin, such as www.example.com/metrics. Google calls it a best practice. It needs a CDN or load balancer to forward requests, and possibly DNS changes.
  • A subdomain, such as metrics.example.com. It also gives full access to server-set cookies and needs a DNS update.
  • The default run.app address. It cannot set server-set cookies, only JavaScript cookies.

There is one catch to ask your implementer about. WebKit, the engine behind Safari, caps the lifetime of cookies set by a first-party subdomain that resolves through a CNAME to a different host, at 7 days, the same cap it applies to cookies created through JavaScript. A subdomain that points somewhere that does not match your site can therefore lose the benefit you paid for. Ask how the domain is mapped and how the cookie lifetime was tested in Safari, instead of assuming it works.

Moving tags to a server changes where they run, not whether the visitor agreed. Google’s consent mode guide for server-side tagging says consent is set up in the web container: your banner passes the visitor’s choices to the Google tag, the tag adds consent parameters to the requests it sends to the server container, and Google tags in the server container read those signals and adjust what they send.

Two details change the plan:

A consent management platform is still required, because consent mode itself does not provide a banner.

Who should skip it for now

Server-side tagging is a poor first purchase in four cases:

  1. You do not run paid ads. The main gain is a more complete conversion signal to ad platforms.
  2. Your ad spend is small. A monthly server bill plus a setup fee has to be earned back by better optimization.
  3. Your browser setup is not clean. Fix duplicate events, missing values and wrong conversion definitions first.
  4. Nobody will own it. A tagging server with no one watching it fails quietly, and you find the gap in your reports weeks later.

If you spend meaningfully on Google or Meta ads and you decide budget from the platform’s conversion numbers, it is worth a proper look. Compare the leads in the ad platform with the leads in your CRM for the same week before you spend anything.

Questions to ask before you buy

  • Where is the server hosted, and in whose account? You want it in yours, so you can take it with you.
  • How many servers, and what is the monthly hosting estimate at your traffic?
  • How is the domain mapped, and what cookie lifetime did you measure in Safari?
  • How does consent reach the server, and who tested it?
  • Does the sale event, not just the form fill, reach the ad platforms?
  • Who watches the server after launch, and how do I find out something broke?

How Nutek Software can help

We build and monitor server-side GTM tracking: the tagging server on your domain, GA4, Meta Conversions API and Google conversions with deduplication, and consent enforced on the server. It is a one-off US$ 1,490 on our pricing page and part of the Growth package, and we give you the hosting estimate before we build. See what the server-side tracking with GTM service covers, or how it connects to the Meta Conversions API setup.

Frequently asked questions

What is the difference between server-side and client-side tagging?

Client-side tags run in the visitor’s browser, one script per vendor. Server-side tags run on a server you control, which receives one stream of events from your site and forwards the data each vendor needs. The tradeoff is fewer scripts and more control, in exchange for a server to host and maintain.

Is server-side tagging free?

Not at any real scale. Google’s default setup is free in most cases, but it is meant for testing. A production setup runs on a paid host: about $45 per server on Cloud Run, or a plan from a managed provider such as Stape, which has a $0 tier limited to 10K requests a month.

Is Google Tag Manager still a thing?

Yes. Google still documents server-side tagging in Tag Manager, and its server container guides list Cloud Run as the recommended setup. The server container is an addition to the web container, not a replacement for it.

No. Consent is still collected by your banner in the browser and passed to the server container as signals. Server-side tagging changes where the tags run, not whether the visitor agreed.

How many servers do I need?

Google’s Cloud Run guide recommends a minimum of 2 instances to reduce the risk of data loss in an outage, and its overview recommends at least 3 per container for live, high-traffic sites. A managed host such as Stape bills by requests instead.

Book a call