Tag Manager: Create variable
gtm_create_variableNeue GTM-Variable im Workspace anlegen (erst nach Version+Publish live). Default variable_type 'v' = Data-Layer-Variable: ohne parameters wird der Data-Layer-Key aus dem Namen abgeleitet ('dlv - foo' → Key 'foo'). Benutzerdefiniertes JavaScript ('jsm') und eigene Vorlagen ('cvt_…') nur mit Freigabe im Workspace (sonst error custom_code_disabled). workspace_id ist rein numerisch, sonst {"error":"invalid_id"}. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| workspace | No | ||
| parameters | No | ||
| workspace_id | Yes | ||
| variable_type | No | v |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||