Google tag gateway for advertisers
Google tag gateway for advertisers allows website owners using Cloudflare as a CDN to get the most out of ad measurement tools with just a few clicks. It allows you to deploy Google scripts using your own domain, enhancing data privacy and improving signal measurement recovery. Unlike standard setups where tags are requested from a Google domain, Google tag gateway for advertisers loads the tag from your domain and sends measurement events to your domain, where they are forwarded to Google.
Learn more about why we built it and how it works in our blog post ↗.
Site owners can enable this feature in one of two ways: through the Google tag console, or through the Cloudflare dashboard ↗.
The fastest way to set up Google tag gateway for advertisers is in Google Tag Manager. Follow the steps in Google's Help Center ↗.
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to Tag Management > Google tag gateway.
- Select your domain.
- Enable the toggle for Turn on and configure Google tag gateway.

- Add your Google tag ID and the path on your website reserved for the Google tag. The Google tag ID ↗ can be found in the Google Tag Experience dashboard. The measurement path is an unused path on your site that will load Google Tag Manager and all subsequent measurement requests.

- Once you click Save, Google tag gateway for advertisers will be enabled on your zone. If you already have a GTM script on your website, this First Party Tag will override the existing script.
Now that you have authenticated into your Cloudflare account and configured GTM in first-party mode, your Google Tags will be loaded using https://your-domain/measurement-path/...
and subsequent measurement requests will be served by Cloudflare.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-