If you use Cloudflare as your content delivery network (CDN), you can set up Google tag gateway for advertisers in Google Tag Manager by integrating with your Cloudflare account. The integration with Google Tag Manager enables you to gain greater control over your data, improving the accuracy of your Google Analytics reporting and driving conversions uplift.
What is Google tag gateway for advertisers?
Google tag gateway for advertisers 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.
Before you begin
- You must have a Google Tag Manager container installed on your website.
- Sign in to your Cloudflare account and grant permissions to Google to set up Google tag gateway for advertisers.
How to set up Google tag gateway for advertisers
Step 1 of 2: Configure your Google tag gateway settings
- In your Google Tag Manager container, go to Admin and select Google tag gateway.
- In the "Google tag gateway" screen, click Continue.
- Confirm your measurement path. If you need to customize your measurement path, choose a path that's not already in use on your website.
- Click Sign into Cloudflare to log in to your Cloudflare account.
Step 2 of 2: Select your domains
- Click the edit icon
in the “Your website domains will be activated” card to select the domains where you want to enable Google tag gateway for advertisers.
- In the “Choose website domains” panel, expand the following sections to select your preferred domains:
- Tagged domains: This section shows the domains that already have the current tag. All domains in this section will be selected by default.
- Other domains: This section shows the domains that either have a different tag or are untagged. All domains in this section will be deselected by default. If a domain is untagged, the “Tags” column will display “None”.
- Activated domains: This section shows the domains that have already enabled Google tag gateway for advertisers with a different tag. The domains under this section can’t be selected. Click the Edit in Cloudflare button to manage the domains in the Cloudflare interface.
- Click Done.
- Note: Closing the “Choose website domains” panel without clicking Done will reset the changes you’ve made.
- Click Complete setup.
Results
After you successfully set up Google tag gateway for advertisers in Google Tag Manager using Cloudflare, an "Active" status will display next to each website domain where Google tag gateway for advertisers is running.
You can manage the domains after you’ve enabled Google tag gateway for advertisers. In the Google tag gateway configuration screen, click the edit icon in the “Websites” card. Alternatively, you can click Configure in the upper right corner, then click Edit in Cloudflare.
If there was a problem during setup, you’ll be presented with the option to try again. If you continue to receive an error message, you should set up Google tag gateway for advertisers from the Cloudflare interface instead of the Google Tag Manager interface.
If your Cloudflare account is undetected or incompatible, you can set up Google tag gateway for advertisers manually.
Validate the Google tag gateway for advertisers set up from Tag Assistant
You can confirm if your Google tag gateway for advertisers setup is working correctly by using Tag Assistant.
Verify where the script is loaded from by following these steps:
- Ensure that your Google Tag Manager container has at least one tag that fires.
- Open Tag Assistant and enter your website URL to create the connection.
- Navigate through your website to trigger tags.
- In the Summary > Output > Hits Sent tab, verify that the hits are routed to your measurement path.
Deactivate Google tag gateway for advertisers
- In the "Google tag gateway" screen, click Configure.
- Click Pause to deactivate Google tag gateway for advertisers in Cloudflare.
- Click Delete to detach Cloudflare from your Google Tag Manager container and remove the Google tag gateway for advertisers configuration.