TrackLead
←All articles

Google Tag Gateway vs server-side GTM: which one per client?

3 min read

Short answer: choose Google Tag Gateway when a client only uses Google tags and the site already runs behind a supported CDN such as Cloudflare. Choose server-side GTM when Meta, LinkedIn, TikTok or a CRM are involved, or when you want to control which data a platform gets. Tag Gateway loads Google tags through your own domain; server-side GTM is your own server that sends measurements to any platform.

By the TrackLead team. Technically reviewed by Pieter. Updated: November 2026.

What Google Tag Gateway does

With Google tag gateway for advertisers you load the Google tag (or the GTM container) from your own domain instead of a Google domain. Some measurement requests then go to Google through that domain. Browsers and blockers therefore see it as traffic from your own site.

You need a Google tag or GTM container on the site, and a CDN or load balancer that can forward requests. Google lists Cloudflare, Akamai, Fastly and Google Cloud as providers; with Cloudflare you can set it up from the interface. Google updated the guide on 6 November 2026.

What server-side GTM adds

  • More than Google. From the server container you send the same purchase to Google Ads, GA4, the Meta Conversions API, LinkedIn, TikTok and other platforms.

  • Changing data. You can remove fields (such as the IP address), add them (such as margin or customer status) or enrich them from other sources before they go to a platform.

  • Cookies from the server. The server can set first-party cookies on your own domain. What that does in Safari is in server-side tracking vs cookies.

  • What it costs. A server you host and maintain, a subdomain and more expertise to set it up and monitor it.

Decision table per type of client

  • Small site, only Google Ads and GA4, already on Cloudflare: Tag Gateway. Little work, no server.

  • Store with Google and Meta: server-side GTM, for the Meta Conversions API and deduplication with event_id.

  • Lead gen with a CRM: server-side GTM, to send lead quality and offline conversions back. See tracking leads from your ads.

  • Client who wants strict control over what data a platform gets: server-side GTM.

  • In doubt: start with Tag Gateway for the Google tags and move to server-side GTM once other platforms or requirements come in.

What stays the same with both

  • Consent is still needed. Consent Mode and your cookie banner keep working with both; see Consent Mode v2 in GTM.

  • A mistake in your web container stays a mistake. Do the GTM audit first.

  • You have to keep checking after go-live: a DNS change or CDN rule can break it unnoticed.

How to choose per client

  1. List the platforms the client advertises on.

  2. Only Google? Check whether the site runs behind Cloudflare, Akamai, Fastly or Google Cloud. If so, test Tag Gateway.

  3. Also Meta, LinkedIn or TikTok, or a CRM? Choose server-side GTM. What to sort out for that is in setting up server-side tracking.

  4. Test after go-live in Tag Assistant that the tag loads through your own domain and conversions come in.

With TrackLead you set up the implementation in your client’s own GTM, on the host you already use, with monitoring included. Take a look at tracklead.eu.

Frequently asked questions

Is Google Tag Gateway the same as server-side tracking?

No. Tag Gateway loads the Google tag through your own domain and sends measurements through that domain to Google. There is no server container in which you change data or send it to other platforms.

Does Tag Gateway work for Meta or LinkedIn?

No, it is for Google tags. For Meta and LinkedIn you need their own Conversions API, for example through a server-side GTM container.

Do I need Cloudflare for Tag Gateway?

Not necessarily. Google lists Cloudflare, Akamai, Fastly and Google Cloud as providers, plus your own CDN, load balancer or web server that can forward requests. With Cloudflare the setup is shortest.

Yes. Tag Gateway changes the route of the request, not the rules. Consent Mode and your cookie banner are still required.