# Server-side tagging

> 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.

Canonical: https://scaplet.com/glossary/server-side-tagging

Glossary Glossary · Measurement

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.

2 min

read

2

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

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.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fserver-side-tagging%20(%22Server-side%20tagging%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fserver-side-tagging%20(%22Server-side%20tagging%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fserver-side-tagging%20(%22Server-side%20tagging%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fserver-side-tagging%20(%22Server-side%20tagging%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

5 facts from the sources below

Server container

Container type

Web requests turned into events

Receives

Same tags, triggers, variables

Models

server_container_url

Web config option

Cloud Run, App Engine or your own

Hosting

_01_At a glance

## The pieces, annotated

Piece

### Server container

Job

Runs on a server you control. Until you forward data, only you can access it

Piece

### Tagging server

Job

Receives web requests from devices and turns them into events

Piece

### Client

Job

Adapter between an incoming request and the container; the first client in priority order that recognizes a request claims it

Piece

### Trigger

Job

Checks each event against conditions and fires matching tags

Piece

### Tag

Job

Sandboxed JavaScript that sends event data onward

Piece

### Variable

Job

Works as in other container types

Point gtag.js at a server container

```
gtag('config', 'G-XXXXXXXXXX', { server_container_url: 'https://tags.example.com' });
```

Server containers include [Google Analytics](/glossary/google-analytics-4) and [Measurement Protocol](/glossary/measurement-protocol) clients. The domain in the example is a placeholder.

_02_How it works

## The data flow

1. 1

### The site sends

A page using gtag.js sends events to the URL set in `server_container_url`.
2. 2

### A client claims

The tagging server receives the request and a matching client claims it.
3. 3

### Events run

The client converts the request to events, which pass through triggers, tags and variables.
4. 4

### Tags forward

Matching tags send event data to destinations such as Google Analytics.
5. 5

### A response returns

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.

_03_Your call

## Should you run one?

If this fits

### It fits when

- You want control over what leaves your infrastructure before it reaches vendors
- You already operate cloud hosting and can monitor it
- You can serve the container from a first-party domain

Or

### Skip it when

- A standard web container already does the job and no one owns a server
- You expect it to replace consent choices: it does not change what you are allowed to collect

**It is still your server**Google advises serving the container from your first-party domain and enabling production mode before sending production traffic. Hosting, uptime and cost are yours to manage.

_04_How it works

## Check it in 2 minutes

1. 1

### Find the request

Open DevTools, then the Network tab, and filter by your tagging server domain.
2. 2

### Reload the page

Confirm the page sends analytics requests to your domain.
3. 3

### Use preview

Open the server container's preview and confirm a client claims the request and the expected tags fire.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Server-side tagging overview](https://developers.google.com/tag-platform/tag-manager/server-side) developers.google.com · checked 2026-11-01
2. 02 [Introduction to server-side tagging](https://developers.google.com/tag-platform/tag-manager/server-side/intro) developers.google.com · checked 2026-11-01

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Is server-side tagging the same as the Measurement Protocol?

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.

_02_ Where can a tagging server run?

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.

## Keep learning

[All glossary](/glossary)

[Learn Cross-domain tracking Measurement](/glossary/cross-domain-tracking) [Related Google Tag Manager Measurement](/glossary/google-tag-manager) [Read next Data layer Measurement](/glossary/data-layer) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[SERP volatility](/glossary/serp-volatility) [Server-side rendering](/glossary/server-side-rendering) [Service-area business](/glossary/service-area-business) [Service worker](/glossary/service-worker)

More in Measurement
[Multivariate testing](/glossary/multivariate-testing) [Net Promoter Score (NPS)](/glossary/nps) [Net revenue retention (NRR)](/glossary/net-revenue-retention) [North star metric](/glossary/north-star-metric) [Performance report](/glossary/performance-report) [Pogo sticking](/glossary/pogo-sticking) [Rank tracking](/glossary/rank-tracking) [Referral traffic](/glossary/referral-traffic) [Reporting identity](/glossary/reporting-identity) [Retention rate](/glossary/retention-rate) [SEO KPIs](/glossary/seo-kpis) [SEO ROI](/glossary/seo-roi) [Server-side tagging](/glossary/server-side-tagging) [Session recording](/glossary/session-recording) [Share of voice](/glossary/share-of-voice) [UTM parameters](/glossary/utm-parameters) [A/B testing](/glossary/a-b-testing) [Active users](/glossary/active-users) [ARR (annual recurring revenue)](/glossary/arr) [Attribution](/glossary/attribution) [Average position](/glossary/average-position) [BigQuery export](/glossary/bigquery-export) [Bot traffic](/glossary/bot-traffic) [Bounce rate](/glossary/bounce-rate)

Terms on this page
[Google Analytics 4](/glossary/google-analytics-4) [Measurement Protocol](/glossary/measurement-protocol)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
