built_in_variables_enable
Enable specified built-in variable types in a Google Tag Manager workspace. Requires user confirmation and the write permission flag to activate.
Instructions
[WRITE] Enable one or more built-in variables in a GTM workspace. Requires GTM_MCP_ENABLE_WRITES=true and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | ||
| containerId | Yes | ||
| workspaceId | Yes | ||
| types | Yes | Array of built-in variable types to enable. Known types include: pageUrl, pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId, clickTarget, clickUrl, and more. | |
| confirm | Yes |