Google Tag Manager / API Reference
gtm_enable_builtin_variable
Tag Manager tool. Enable one or more built-in variables in a GTM workspace. Common types: PAGE_URL, PAGE_PATH, PAGE_HOSTNAME, CLICK_URL, CLICK_TEXT, CLICK_ID, CLICK_CLASSES, CLICK_TARGET, CLICK_ELEMENT, FORM_URL, FORM_ID, FORM_CLASSES, FORM_TARGET, FORM_ELEMENT, FORM_TEXT, SCROLL_DEPTH_THRESHOLD, SCROLL_DEPTH_DIRECTION, SCROLL_DEPTH_UNITS, VIDEO_URL, VIDEO_TITLE, VIDEO_DURATION, VIDEO_PERCENT, VIDEO_STATUS. Args: account_id: The GTM account ID. container_id: The GTM container ID. workspace_id: The GTM workspace ID. variable_types: JSON array of built-in variable type strings to enable.
This is a write tool: it enables builtin variable in your Google Tag Manager account. Claude asks you to confirm before it runs.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Enable builtin variable in my Google Tag Manager account for [container id], [workspace id], [variable types].
It takes 4 required and 0 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
account_id | string | Yes | Account Id |
container_id | string | Yes | Container Id |
workspace_id | string | Yes | Workspace Id |
variable_types | string | Yes | Variable Types |
Related Google Tag Manager tools
gtm_audit_containergtm_build_constant_variablegtm_build_conversion_linker_taggtm_build_custom_event_triggergtm_build_custom_html_taggtm_build_custom_javascript_variable
Before you can call it
This tool needs a connected Google Tag Manager account. The Google Tag Manager connect guide covers how to authorize it and what it unlocks, and the quickstart gets a client talking to the server in about five minutes.
Start free — 30 tool calls a month
No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.