Create Tag
create_tagCreate a tag in a Google Tag Manager workspace using account, container, workspace IDs and a tag resource with name and type.
Instructions
Create a tag in a workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag resource. Requires name and type, e.g. {"name": "GA4 - purchase", "type": "gaawe", "parameter": [{"type": "template", "key": "eventName", "value": "purchase"}], "firingTriggerId": ["12"]}. Tag types are Tag Manager's internal codes -- "gaawe" is a GA4 event, "googtag" a Google tag, "html" a custom HTML tag. Copy the shape from an existing tag via get_tag when unsure. | |
| account_id | Yes | Numeric Tag Manager account ID. | |
| container_id | Yes | Numeric container ID. | |
| workspace_id | Yes | Numeric workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||