Inputs
Output
Type:Dict
Returns the enabled built-in variables as provided by the Tag Manager API.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Enables built-in variables (e.g
| App | Google Tag Manager |
| Operation ID | gtm_enable_built_in_variables |
| Type | Action |
| Connection | gtm (required) |
| Credits per run | 1 |
| Agent / MCP tool | Yes |
| Requires approval | Yes (write operation) |
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account | DynamicAccount | Yes | - | Select the Google Tag Manager account. |
container | DynamicAccount | Yes | - | Select the container. |
workspace | DynamicAccount | Yes | - | Select the workspace. |
types | array of string (also accepts a comma-separated string) | Yes | - | Built-in variable types to enable, as a list or comma-separated text, using the Google Tag Manager API v2 BuiltInVariable type enum. Common values: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, clickText, formElement, formClasses, formId, formUrl, formText, errorMessage, errorUrl, containerId, containerVersion, randomNumber, htmlId, environmentName, scrollDepthThreshold, videoTitle, videoUrl. Built-in variables must be enabled before tags or triggers can reference them (e.g. {{Page URL}}). |
Dict
Returns the enabled built-in variables as provided by the Tag Manager API.