Publish version (🔴 goes live)
gtm_publish_versionPublish a Google Tag Manager container version live for all website visitors, with a dry-run preview by default. Use it to release changes after review or roll back by publishing a previous version.
Instructions
🔴 Make a container version LIVE for every visitor of the website. Requires gtm-mcp auth --with-writes, the
Publish role in GTM, dry_run=false AND confirm=true. dry_run (default) shows the version vs the current live
version. Rollback = publish the previous version id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| container | Yes | ||
| version_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||