/guides/server-side
Server-side tagging
sGTM setup, first-party endpoints, transport hardening.
GA4 Measurement Protocol v2 reference
Complete GA4 Measurement Protocol reference: endpoints, JSON body fields, reserved names, limits, validation server, consent, and user-provided data.
GA4 offline conversions via Measurement Protocol
GA4 offline conversions via the Measurement Protocol: client_id and session_id stitching, transaction_id dedup, 72-hour backdate window, consent, and validation.
Server-side GTM clients and tags reference
Server-side GTM clients and tags reference: the five built-in clients, request claiming, priority, activation criteria, client APIs, and GA4-to-Ads chaining.
Server-side GTM consent forwarding patterns
Reference for server-side GTM consent forwarding: gcs and gcd HTTP parameters, x-ga event-data keys, native versus custom tag gating, and denied-state behavior.
Server-side GTM cookie and FPID reference
Reference for server-side GTM FPID cookies: JavaScript Managed versus Server Managed client identification, the _ga, FPID, and FPLC cookies, and migration.
Server-side GTM Firestore lookup variables
Reference for the server-side GTM Firestore Lookup variable and Firestore Sandboxed JS API: read, query, write, transactions, IAM roles, caching, and limits.
Server-side GTM first-party and transport URL reference
Server-side GTM first-party transport reference: server_container_url wiring, GA4 client identification, FPID cookies, custom domains, CSP, and self-hosting.
Server-side GTM setup checklist
Production checklist for server-side Google Tag Manager: Cloud Run sizing, preview server env vars, first-party domain DNS, clients, and health checks.