Server-side GTM adds a server container next to your web container; these guides cover both, from the first tag to consent, audits and debugging. 21 articles
Google Tag Manager works with two kinds of container. The web container runs in the browser and holds your tags, triggers and variables. The server container runs on a tagging server and starts with clients, which claim incoming requests and turn them into events that server tags forward to Google and other platforms. Server-side GTM is the two working together.
Set up the web container first, then the server container with its two clients. What connects them is server_container_url on the Google Analytics tag; without it, hits bypass your server container and go straight to Google.
Consent starts in the web container too: Cookiebot in Google Tag Manager goes from an empty tag to a tested setup. Further down are guides for GA4 events and e-commerce, duplicate tracking, the new Destination tags and debugging in Preview mode.
Start here: Setting up and configuring a server GTM container
From empty container to published: the Google Analytics tag, a first-party loader and the switch that routes events to your server container.
Create the container, choose manual provisioning, then connect Google Tag Manager or paste its config into Measurebase, plus the two clients every setup needs.
Host the same container, keep or change the hostname, switch DNS without a gap, keep cookies and click IDs, verify, retire the old host.
The Google tag, the Initialization trigger, the Tag Assistant check and the double-install test.
Plan your groups, build a RegEx Table, send content_group with every event, and find it in your reports.
One property for every language, cross-domain tracking where needed, and a page_language dimension.
From the data layer to your reports: send, register and check the details of each event.
The data layer, the purchase event and its items, the test order and the five mistakes that break revenue.
What the Destination tags for GA4, Google Ads, Floodlight and Merchant Center change, how to switch a container over, and the defaults to check.
How the linker works, what to configure in the Google tag and the Conversion Linker, how Measurebase domains fit, and what the audit checks.
Set it up in your web container and your server container: the four signals, default and update, basic or advanced mode, and Conversions API tags.
TutorialThe Cookiebot CMP template on Consent Initialization, default consent per region, and tags that fire on cookie_consent_update.
TutorialThe CookieFirst template on Consent Initialization, default consent per region, and tags that fire on cf_after_consent_update.
Tracking before the banner is answered, or after a refusal: the usual causes and how to fix them in Google Tag Manager.
The five causes of page views and conversions counted twice, and how to remove each.
GA4 and Google Ads hits that go straight to Google instead of your tagging server, and how to set the server container URL right.
Where the debug session attaches, why the first server container URL matters, test hits from your site and from Shopify checkout, and what to check when the preview stays empty.
40+ checks across your web and server container, your site, your DNS and certificate · a site crawl for every script and pixel outside GTM · errors, warnings and info · proposed fixes that land in a workspace you publish yourself.
How the masked Enhanced loader works, how it carries ad blocker protection, and when the standard gtm.js pattern is used instead.
A masked route for your events from the web container to the server container, next to or instead of the Google tag, and how to set it up.
A web container runs in the visitor's browser and fires tags on triggers such as a page view or a click. A server container runs on a tagging server and starts with clients, which claim incoming requests and turn them into events. Server tags then forward those events, for example a GA4 tag that sends them to Google.
On a fresh setup, usually because the Google Tag Manager: Web Container client is missing, or your web container ID is not listed under Allowed Container IDs. The script loads, but every event is rejected. Also check that both containers are published: one side live and the other in draft works in preview only.
Yes, for both containers. In the server container, Tag Assistant opens the first address under Server container URLs, so that must be the address your site sends to. If the preview stays empty, close both tabs and start Preview again from the server container. Debugging with Preview mode covers the other causes.