- Property Manager name: Google Tag Gateway
- Behavior version: The
latest
rule format supports thegoogleTagGateway
behavior v1.0. - Rule format status: Beta, possible breaking changes
- Access: Read/Write
- Allowed in includes: Not available for
latest
rule format
Use this behavior to configure Google Tag Gateway. Note that only one instance of the behavior is allowed in a particular rule. If there are multiple rules in the property, each with an instance of the behavior, the last rule that matches the incoming request is processed.
Option | Type | Description | Requires | |
---|---|---|---|---|
enabled | boolean | Enables Google Tag Gateway. | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
googleTagId | string (allows variables) | Specifies the unique Google Tag ID that was provided to you by Google. | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
servingPath | object array | Specifies the path that serves the Google Tag. The path segment starts with a slash ( | {"displayType":"object array","tag":"input","todo":true} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
advancedOption | boolean | Enables the advanced options. | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
trueClientIpHeader | boolean | Sends the True Client IP header to the Google origin. | advancedOption is true | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"advancedOption","op":"eq","value":true}} |
scriptInjection | boolean | Injects the Google Tag script directly into the page. Enable this if your pages don't already include the Google Tag script. | advancedOption is true | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"advancedOption","op":"eq","value":true}} |
setupTag | boolean | Whether the injected tag should override any on-page configuration. Enable this if your pages don't already include the Google Tag script. | scriptInjection is true | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"scriptInjection","op":"eq","value":true}} |