Skip to content

Definition

Server-side tagging (sGTM)

Running a Google Tag Manager server container on infrastructure you control, so the browser sends data to your server and your server forwards it to vendors.

In server-side tagging, a Tag Manager server container runs on a server rather than in the visitor's browser, typically in your own Google Cloud project or another environment you choose. Clients in the container receive incoming requests and turn them into events; tags then send those events on to destinations such as GA4, Google Ads or Meta's Conversions API.

Google recommends serving the container from your own first-party domain and running it in production mode before sending real traffic. The benefit Google states is control: only you see the data on the server until you choose to send it elsewhere, and you decide how it is shaped and where it goes.

It is not a consent workaround. Consent signals still have to be respected, and the server needs consent state passed through with the events. It also adds hosting cost and another system to monitor, so it suits sites where data control or Conversions API delivery justifies the upkeep.

Related terms

Meta Conversions API (CAPI)
Meta's server-to-server connection for sending web, app, offline and messaging events from your server or CRM directly to a Meta dataset.
Consent Mode v2 (ad_user_data, ad_personalization)
Google's API for passing a visitor's consent choices to Google tags, with v2 adding ad_user_data and ad_personalization alongside ad_storage and analytics_storage.
First-party data
Customer information shared directly with a business by the customer, such as the email on a lead form or a purchase record in the CRM.
Data layer (dataLayer)
A JavaScript array that the site pushes events and values into so Google Tag Manager and gtag.js can read them, instead of scraping the page.
GA4 measurement ID vs Google tag ID
The G- measurement ID identifies a GA4 web data stream; a Google tag ID is whatever ID loads a Google tag, which may be G-, AW- or GT-.

Sources

Checked against the official documentation in November 2026. Platforms change; check the source for current details.

All glossary terms

Got an account that doesn't add up?

Send us one account. We review it for free and send a short video of what's working and what isn't.