create_tag
Create a tag in a Google Tag Manager workspace draft. Provide account, container, workspace IDs and tag body; returns the new tag's ID.
Instructions
Creates a tag in the workspace draft.
Changes stay in the workspace until a version is published; nothing goes live. Returns the created tag including its tagId.
Args: account_id: Numeric account ID or full resource path. container_id: Numeric container ID or full resource path. workspace_id: Numeric workspace ID; find it via list_workspaces. tag: Tag resource body. Requires 'name' and 'type'; most types also need 'parameter' (list of {'type', 'key', 'value'} dicts) and 'firingTriggerId' (list of trigger ID strings). Minimal example: {'name': 'Hello', 'type': 'html', 'parameter': [{'type': 'template', 'key': 'html', 'value': '...'}], 'firingTriggerId': ['2147479553']} (2147479553 is the built-in All Pages trigger; built-in triggers do not appear in list_triggers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| account_id | Yes | ||
| container_id | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||