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.
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:
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.jsDo not omit the forward slash between the Measurement Path and gtm.js:

Verification
After completing the configuration:
Open your browser's developer tools and select the Network tab.
Locate the
gtm.jsrequest.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.
Related Concepts
Last updated
Was this helpful?
