Create GTM Variable
create_gtm_variableCreates 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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| confirm | No | ||
| container | No | ||
| workspace | No | ||
| parameters | No | ||
| variable_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||