Set up Google tag gateway for advertisers in the Google tag with Cloudflare

If you use Cloudflare as your content delivery network (CDN), you can set up Google tag gateway for advertisers in the Google tag by integrating with your Cloudflare account. The integration with the Google tag 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 a Google tag 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 have the Google tag (e.g., G-123, AW-456) running on your website.
  • Sign in to your Cloudflare account and grant permissions to Google to set up Google tag gateway for advertisers.

Set up Google tag gateway for advertisers

Step 1 of 3: Open the Google tag settings

Google Ads instructions

To access your Google tag settings from your Google Ads account:

  1. In your Google Ads account, click the Tools icon Tools Icon.
  2. Click Data manager.
  3. Under “Google tag”, click Manage, then go to Admin.

Google Analytics instructions

  1. In your Google Analytics account, go to the the Settings icon Admin screen.
  2. In Data streams, click a stream to see details.
  3. Click Configure tag settings, then go to Admin.

Campaign Manager 360 instructions

  1. Open your Campaign Manager 360 advertiser.
  2. Under “Floodlight”, click Google Tag.
  3. In the Google tag settings, go to Admin.

Google Tag Manager instructions

  1. In your Google Tag Manager account, click the Google tags tab to see Google tags you've previously set up.
    • Note: To see Google tag IDs in Google Tag Manager, you need to manage a Google Ads, Analytics or Google tag in a container.
  2. Click the tag name to edit the Google tag settings.

Step 2 of 3: Configure your Google tag settings

  1. In Admin, click Google tag gateway.Google tag gateway setup first step
  2. In the “Google tag gateway” screen, click Continue.Google tag gateway setup second step
  3. Confirm your measurement path.
    • Note: If you need to customize your measurement path, choose a path that’s not already in use on your website.
    Google tag gateway setup third step
  4. Click Sign into Cloudflare to log in to your Cloudflare account.Google tag gateway setup fourth step

Step 3 of 3: Select your domains

  1. Click the edit icon Edit in the “Your website domains will be activated” card to select the domains where you want to enable Google tag gateway for advertisers.
  2. 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.
  3. Click Done.
    • Note: Closing the “Choose website domains” panel without clicking Done will reset the changes you’ve made.
  4. Click Complete setup.

Results

After you successfully set up Google tag gateway for advertisers with the Google tag 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 Edit in the “Websites” card. Alternatively, you can click Configure in the upper right corner, then click Edit in Cloudflare.

Google tag gateway setup completed

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 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:

  1. Ensure that your Google Tag Manager container has at least one tag that fires.
  2. Open Tag Assistant and enter your website URL to create the connection.
  3. Navigate through your website to trigger tags.
  4. In the Summary > Output > Hits Sent tab, verify that the hits are routed to your measurement path.

Deactivate Google tag gateway for advertisers

  1. In the “Google tag gateway” screen, click Configure.
  2. Click Pause to deactivate Google tag gateway for advertisers in Cloudflare.
  3. Click Delete to detach Cloudflare from your Google tag and remove the Google tag gateway for advertisers configuration.
Note: Deleting the Google tag gateway for advertisers configuration in your Google tag right away doesn’t deactivate Google tag gateway for advertisers in Cloudflare. Click Pause to deactivate the feature before deleting. After Google tag gateway for advertisers is deleted, you can set it up again with a new Cloudflare account.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
5744403172155858405
true
Search Help Center
true
true
true
true
true
102259
false
false
false
false