For the complete documentation index, see llms.txt. This page is also available as Markdown.

Google Tag Gateway

Configure Google Tag Gateway to serve supported Google tag and measurement requests through your website domain using your CDN Resource.

Google Tag Gateway routes supported Google tag and measurement requests through your website domain instead of sending them directly to Google domains.

When enabled, the CDN routes requests matching the configured Measurement Path to the appropriate Google service.

Google Tag Gateway configures CDN-side request routing only. It does not install or modify the Google tag in your website source code. Google-side tag configuration remains your responsibility.

Before enabling this feature:

  • Configure your Google tag according to Google's documentation.

  • Choose a Measurement Path that is not already used by your application or existing routing rules.

  • Ensure your CDN Resource is correctly configured to serve the target domain.

Configuration

To configure Google Tag Gateway:

1

Enable Google Tag Gateway

Navigate to CDN Resource → Headers → Google Tag Gateway.

Toggle Status to On.

2

Enter the Google Tag ID

Provide the Google Tag ID associated with your website.

3

Specify the Measurement Path

Enter a Measurement Path that is not already used by existing content or routing rules.

For example:

/metrics
4

Apply the Configuration

Click Submit to save the configuration.

Medianova automatically applies the required routing configuration.

Configure the Google Tag Request URL

After configuring Google Tag Gateway, ensure that your Google tag implementation sends requests through the configured Measurement Path.

A forward slash (/) must separate the configured Measurement Path from the Google Tag Manager script filename.

For example, if the Measurement Path is /metrics, use:

https://www.example.com/metrics/gtm.js

Do not omit the forward slash between the Measurement Path and gtm.js:

Google Tag Gateway request routing with the correct Measurement Path and Google Tag Manager script URL structure.

Verification

After completing the configuration:

  • Open your browser's developer tools and select the Network tab.

  • Locate the gtm.js request.

  • Confirm that the request URL uses the configured Measurement Path followed by /gtm.js, for example, https://www.example.com/metrics/gtm.js.

  • Verify that the request completes successfully.

  • Confirm that measurement data is received by the configured Google service.

Last updated

Was this helpful?