gtm_create_entity
Create any Google Tag Manager entity (tags, triggers, variables, folders) by specifying type, parameters, and trigger IDs, with a confirm step to save.
Instructions
Create an entity of any type.
Args: entity_type: tags, triggers, variables, folders, templates, clients, transformations, zones, gtag_config. name: display name in the GTM UI. type: the GTM type string, e.g. 'gaawe' for a GA4 event tag, 'googtag' for a Google tag, 'awct' for an Ads conversion, 'linkClick' for a trigger, 'jsm' for a custom JavaScript variable. Not needed for folders. parameters: plain dict, converted to the API's typed shape. Reference other variables with double braces, e.g. {"pageUrl": "{{Page URL}}"}. firing_trigger_ids: trigger ids that fire a tag. blocking_trigger_ids: trigger ids that block a tag. extra: any additional top-level fields to merge into the request body, for fields this signature does not name (monitoringMetadata, consentSettings, scheduleStartMs, and so on). confirm: set true to actually create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | No | ||
| extra | No | ||
| confirm | No | ||
| account_id | No | ||
| parameters | No | ||
| entity_type | Yes | ||
| container_id | No | ||
| workspace_id | No | ||
| firing_trigger_ids | No | ||
| blocking_trigger_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |