Stay organized with collections
Save and categorize content based on your preferences.
This document is for users who want to deploy the Google tag gateway for
advertisers. We recommend Google tag gateway for advertisers for the most
durable tag configuration.
Overview
Google tag gateway for advertisers lets you deploy a Google tag using your own
first-party infrastructure, hosted on your website's domain. This infrastructure
sits between your website and Google's services. The setup in this documentation
will help you better measure your website. You can set it up using your existing
content delivery network (CDN), load balancer, or web server.
In standard Google tag setups, your web page requests a Google tag from a Google
domain. When the tag fires, it sends measurement requests directly to the Google
product. With Google tag gateway for advertisers, your website loads the Google
tag from your first-party domain. When the tag fires, some measurement requests
will be sent to Google using your first-party domain.
This diagram represents the information flow in Google tag gateway for
advertisers:
Before you begin
This guide assumes that your website is already configured with:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-31 UTC."],[],[],null,["# Set up Google tag gateway for advertisers\n\n\u003e This document is for users who want to deploy the Google tag gateway for\n\u003e advertisers. We recommend Google tag gateway for advertisers for the most\n\u003e durable tag configuration.\n\nOverview\n--------\n\nGoogle tag gateway for advertisers lets you deploy a Google tag using your own\nfirst-party infrastructure, hosted on your website's domain. This infrastructure\nsits between your website and Google's services. The setup in this documentation\nwill help you better measure your website. You can set it up using your existing\ncontent delivery network (CDN), load balancer, or web server.\n\nIn standard Google tag setups, your web page requests a Google tag from a Google\ndomain. When the tag fires, it sends measurement requests directly to the Google\nproduct. With Google tag gateway for advertisers, your website loads the Google\ntag from your first-party domain. When the tag fires, some measurement requests\nwill be sent to Google using your first-party domain.\n\nThis diagram represents the information flow in Google tag gateway for\nadvertisers:\n\nBefore you begin\n----------------\n\nThis guide assumes that your website is already configured with:\n\n- A [Google tag](https://developers.google.com/tag-platform/gtagjs) or [Tag\n Manager container](https://support.google.com/tagmanager/answer/6102821).\n- A content delivery network (CDN) or load balancer that can forward requests to external endpoints.\n\nTo get started, pick your setup type.\n\nManual setup Automated setup with Cloudflare\n\nPick pick a setup type to see instructions.\n\nTest the measurement setup\n--------------------------\n\nTo test the measurement setup, configure your container to have at least one\ntag that fires.\n\n1. [Go to Tag Assistant](https://tagassistant.google.com) and preview your container.\n2. Navigate through your website to trigger events.\n3. In the **Summary** \\\u003e **Output** \\\u003e **Hits Sent** tab, verify that the hits\n are routed to `/`\u003cvar scope=\"metrics\" translate=\"no\"\u003emetrics\u003c/var\u003e."]]