Docs menu
Get started
What is Opus GrowthQuickstartAdd to your AIHow it worksSafety and approvalCreditsPlansFAQAI apps
All AI appsChatGPTClaudeGrokPerplexityClaude CodeCodexGemini CLIOpenClawCursorVS CodeWindsurfOther MCPConnect ad platforms
Google AdsMeta AdsLinkedIn AdsMicrosoft AdvertisingTikTok AdsChatGPT AdsAgencies and MCCConnect data sources
Search ConsoleGoogle AnalyticsYouTubeBusiness ProfileTag ManagerWebsites and SEO
AI ServerWordPressSEO IntelligenceClick fraudTool reference
All toolsGoogle AdsMeta AdsTikTok AdsLinkedIn AdsMicrosoft AdvertisingChatGPT AdsSearch ConsoleGoogle AnalyticsYouTubeBusiness ProfileTag ManagerWordPressAI ServerSEO IntelligenceClick fraudCross-channelAccount and billingLanguage
Create GTM Variable
Creates a user-defined VARIABLE.
- Type
- Makes changes
- Credits
- 3
- Platform
- Tag Manager
- Approval
- Preview first, applied after you approve
What it does
Creates a user-defined VARIABLE. variable_type = GTM type string: 'c' (Constant → parameters='{"value":"..."}'), 'v' (Data Layer Variable → parameters='{"name":"ecommerce.value"}' plus optional dataLayerVersion), 'jsm' (Custom JavaScript → parameters='{"javascript":"function(){return ...}"}'), 'u' (URL), 'k' (1st-party Cookie → '{"name":"_ga"}'). parameters is JSON: an object {key:value} (wrapped as template) or a raw GTM parameter list. SAFETY: confirm=false → preview; confirm=true → creates it (staged until publish).
MCP: create_gtm_variable
How to use it
You don't call tools by name. Write what you want in ChatGPT, Claude or another assistant connected to Opus Growth, in your own words; it picks this tool when it fits.
Because this tool changes your account, your assistant first shows a preview of exactly what will change. Nothing is applied until you say yes, and every applied change is written to your audit log.
Parameters
| Name | Type | Required | Default | |
|---|---|---|---|---|
| name | string | Required | · | Human-readable name for the resource being created or updated. |
| variable_type | string | Required | · | Provider-specific variable type accepted by this operation. Use a supported value from the tool documentation or returned provider data. |
| parameters | string | Optional | · | Provider-specific parameter payload accepted by this operation; preserve the documented structure. |
| workspace | string | Optional | · | Exact workspace identifier or resource name returned by the relevant workspace-listing tool. |
| container | string | Optional | · | Exact container identifier or resource name returned by the relevant container-listing tool. |
| confirm | boolean | Optional | false | Safety confirmation for a state-changing operation. Leave false to preview or validate; set true only after the user explicitly approves the shown change. |
Related tools
Create GTM Container
create_gtm_containerCreate GTM Tagcreate_gtm_tagCreate GTM Triggercreate_gtm_triggerCreate GTM Workspacecreate_gtm_workspaceDelete GTM Containerdelete_gtm_containerDelete GTM Entitydelete_gtm_entityEnable GTM Built-in Variablesenable_gtm_builtin_variablesGTM Pending Changesgtm_workspace_statusGTM Accountslist_gtm_accounts