gtm_update_tag
Update selected fields of an existing Google Tag Manager tag by fetching the current version, merging changes, and checking its fingerprint to avoid overwriting concurrent edits.
Instructions
Safely update selected tag fields by fetching and merging the current tag and checking its fingerprint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name of the tag in GTM. | |
| type | No | GTM tag type id, e.g. 'gaawe' (GA4 event), 'googtag' (Google tag), 'html' (Custom HTML), or 'awct' (Google Ads Conversion Tracking). | |
| notes | No | ||
| tagId | Yes | ID of the tag to update (from gtm_list_tags). | |
| paused | No | Whether the tag is inactive. | |
| account | Yes | Name or ID of the GTM account (e.g. 'My Company' or '1234567'). | |
| liveOnly | No | ||
| priority | No | ||
| setupTag | No | ||
| container | Yes | Name, GTM container ID (publicId, e.g. GTM-XXXX), or internal container ID. | |
| parameter | No | Parameters in the GTM API format matching the tag type. | |
| workspace | Yes | Workspace name or ID. Required for every mutating operation. | |
| teardownTag | No | ||
| scheduleEndMs | No | ||
| parentFolderId | No | ||
| consentSettings | No | ||
| firingTriggerId | No | Trigger IDs that fire this tag. | |
| scheduleStartMs | No | ||
| tagFiringOption | No | ||
| blockingTriggerId | No | Trigger IDs that block this tag. | |
| monitoringMetadata | No | ||
| monitoringMetadataTagNameKey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |