Server-side Google Tag Manager gives you full control over event processing and data flow. UniConsent ensures consent checks run before any data is forwarded to third parties.
Server-side Google Tag Manager (sGTM) routes tag requests through a server-side container rather than firing them directly from the browser. Instead of pixels and tags running in the user's browser, events are sent from your web container to a server-side container that you control, which then forwards the data to Google and other platforms.
This gives you full control over what data leaves your environment. You can inspect, modify, or block events before they reach any third party. Consent checks run server-side before data is forwarded, which means blocked events never leave your infrastructure.
Server-side GTM is commonly deployed on Google Cloud Run, App Engine, or similar cloud hosting. It works alongside client-side GTM, not as a replacement. The client-side container collects events and passes them to the server-side container for processing.
Client-side pixels are increasingly blocked by ad blockers, browser privacy features, and iOS restrictions. Server-side event forwarding bypasses those blocks because the data goes from your server to the platform directly. However, this makes consent management more important, not less: you are responsible for ensuring that events are only forwarded when the user has given consent.
UniConsent passes consent state to the client-side GTM container, which forwards it to the server-side container. Events are only processed and forwarded when the appropriate consent has been granted. This ensures compliance while maintaining measurement coverage.
For Google Tag Manager setup, see our GTM integration tutorial.
Server-side GTM and Google Tag Gateway solve different problems and can be used together:
Server-side Google Tag Manager routes tag requests through a server-side container that you control, rather than firing pixels directly from the browser. This gives you full control over what data leaves your environment and lets you apply consent checks before forwarding events to third parties.
Client-side pixels are increasingly blocked by ad blockers, browser privacy features, and iOS restrictions. Server-side event forwarding bypasses those blocks. With UniConsent, consent checks run before data is forwarded, so blocked events never leave your infrastructure.
UniConsent passes consent state to the client-side GTM container, which forwards it to the server-side container. Events are only processed and forwarded when the appropriate consent has been granted.
No. Server-side GTM works alongside client-side GTM. The client-side container collects events and passes them to the server-side container for processing and forwarding.
Server-side GTM supports Google Ads, GA4, Meta Conversions API, TikTok Events API, and many other platforms through server-side tag templates.
Google Tag Gateway serves Google tag scripts from your first-party domain. Server-side GTM processes events on your server before forwarding them. GTG handles script delivery; sGTM handles event processing. Both benefit from consent management with UniConsent.
The server-side GTM container is commonly deployed on Google Cloud Run, App Engine, or similar cloud hosting. Google provides setup instructions for Cloud Run as the default option.
Yes. When using Advanced Consent Mode with server-side GTM, cookieless pings are sent when consent is denied. These pings feed conversion modeling to recover measurement data.
Get started to make your website and application compliant for EU GDPR, US CPRA, CA PIPEDA etc
Sign up