Server container
- Job
- Runs on a server you control. Until you forward data, only you can access it
Server-side tagging moves tag processing from the browser to a server container you control. How clients, tags and triggers fit, the data flow, and a check.
Server-side tagging runs your tags in a server container on infrastructure you control, instead of in the visitor's browser. The page sends events to your server, and the server's tags forward data to vendors such as Google Analytics.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
gtag('config', 'G-XXXXXXXXXX', {
server_container_url: 'https://tags.example.com'
});Server containers include Google Analytics and Measurement Protocol clients. The domain in the example is a placeholder.
A page using gtag.js sends events to the URL set in server_container_url.
The tagging server receives the request and a matching client claims it.
The client converts the request to events, which pass through triggers, tags and variables.
Matching tags send event data to destinations such as Google Analytics.
The client packages a response for the sender.
Google's overview lists three goals: better page performance, finer privacy controls and better data quality. It does not quantify any of them, so measure your own before and after.
Open DevTools, then the Network tab, and filter by your tagging server domain.
Confirm the page sends analytics requests to your domain.
Open the server container's preview and confirm a client claims the request and the expected tags fire.
2 questions people ask next, answered from the sources on this page.
No. Server-side tagging is a container that receives and routes events. The Measurement Protocol is an HTTP API for sending events; server containers include a client for it.
Google says you can run one on Google Cloud with Cloud Run or App Engine, or set one up manually on a platform of your choice.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.