Deployment modes
How data flows in each mode
The same dataLayer, three paths. This table shows, mode by mode, where the container script comes from and which way each platform's measurements travel.
Three flows to tell apart #
To compare the modes without mixing things up, separate three flows:
- Script delivery of the GTM web container: from Google's servers, or from your domain.
- The measurements sent by the tags: straight to the platforms, or to your tagging server.
- In Server Side, the pixels that the server asks the browser to send, for some platforms.
| Client Side | Google Tag Gateway | Server Side | |
|---|---|---|---|
| Web container script | Served by Google (www.googletagmanager.com) |
Fetched from Google and served through a path on your domain | Served by your tagging server, if you enter its domain in the module |
| GA4 and Google Ads measurements | Sent by the browser to the platforms | Requests handled by the Gateway go through your domain; some still go to Google's domains | Sent to the tagging server, whose tags call the platforms |
| Meta, Pinterest | Pixels in the browser | Pixels in the browser | Conversion API from the server, which also has the browser send the pixel |
| TikTok, Snapchat | Pixels in the browser | Pixels in the browser | Conversion API from the server |
| Reddit, OpenAI Ads | Pixels in the browser | Pixels in the browser | Pixel in the browser and conversion API from the server |
| Microsoft Ads, Criteo, Clarity, Kelkoo, Plausible, Fathom | Browser | Browser | Browser |
| Matomo | Browser | Browser | Server |
When a platform receives the same event from the browser and from the server, deduplication depends on that platform's own identifiers and rules.
Note
A mode alone does not guarantee a volume of data: in all three modes, measurements remain subject to the visitor's choice in the banner.
Choose and set up a mode #
- Step 1. Choose your mode: what each mode requires, and three questions to decide.
- Step 4. Import the GTM containers: the step-by-step setup, for each mode.
- Switch modes: move from Client Side to Server Side or to the Google Tag Gateway.
Missing or wrong information? Tell the support team