Analytics and Tracking

Server Container

Also called sGTM container

A Tag Manager container running on cloud hosting you control, receiving event data instead of executing in the browser.

Quick facts: Server Container

Category
Analytics and Tracking
Also called
sGTM container
Level
Advanced
Affects
Data governance, measurement durability, hosting cost
Where to see it
Google Tag Manager (server container), your cloud hosting console
In this article4
  1. How a server container works
  2. Why a server container matters
  3. Where server containers go wrong
  4. How to act on it

How a server container works

An ordinary container runs inside the visitor’s browser. A server container runs on cloud hosting that you set up and pay for, usually reached through a subdomain of your own website. The browser sends events to that address, the container receives them, decides what to do with them, and forwards what is needed to the destination platforms from the server rather than from the visitor’s device.

It is created in the same Tag Manager interface as a web container and uses the same vocabulary of tags, triggers and variables, but the parts behave differently. A tag here makes an outbound request instead of injecting code into a page, and in place of page triggers there are clients, which receive the incoming request before anything else happens.

Why a server container matters

Two reasons carry most of the weight. The first is control over what leaves your site: with a container in the middle you decide which fields reach which vendor, and you can stop sending data you never intended to share. The second is durability of measurement, because data sent from your own domain is less exposed to browser restrictions on third-party scripts and cookies than data sent straight from the page.

Page weight is a useful side effect. Vendor scripts that used to load in the browser can sometimes be replaced by a single request to your own endpoint, which helps on the slow mobile connections that carry most traffic in Nepal.

Where server containers go wrong

Cost and ownership are the usual surprises. The hosting is a running bill that grows with traffic, it belongs to you rather than to Google, and somebody has to watch it. Sites that set one up and forget about it find out when it fails quietly and takes the measurement with it.

The second mistake is expecting it to repair bad data. A server container forwards what it is given. If the events arriving are wrongly named or missing values, moving them to a server changes only where the mess is processed.

How to act on it

Be honest about whether you need one. A local business or a small shop with a working browser setup rarely does, and the same effort spent on getting the events themselves right pays back sooner. A server container earns its cost where data governance is a genuine requirement, where matching quality in the ad platforms is worth money, or where the site carries a crowd of third-party scripts.

If you proceed, host it on your own subdomain, keep a browser container for whatever still has to run on the page, and treat the move as a migration with a measurement freeze and a before-and-after comparison rather than an overnight switch. Reviewing the existing tag management setup first usually shortens the project.

Do and do not

Do

  • Host the container on your own subdomain
  • Budget for hosting and ongoing monitoring
  • Compare numbers before and after the move

Do not

  • Expect it to repair badly named events
  • Set it up and leave it unmonitored
  • Move a small site without a clear reason

Questions people ask about this

Does a server container cost money?

Yes. Tag Manager itself stays free, but the server container runs on cloud hosting you provision and pay for, and that bill grows with the number of requests. Budget for the hosting, for the initial build, and for someone to keep an eye on it afterwards. A container nobody monitors will eventually fail quietly.

Will a server container fix my missing conversions?

Sometimes, and only partly. It can make measurement more durable, because data travels from your own domain rather than from a third-party script the browser may restrict. It cannot recover conversions lost to a broken form, a missing event or a visitor who declined consent. Get the browser events right before moving them to a server.

Can I run one alongside my existing setup?

Yes, and that is the normal approach. Most sites keep a browser container for anything that must run on the page, and route the measurement events through the server container. Running both for a period lets you compare the two sets of numbers side by side before you switch anything off for good.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.