GTM: Publish version (LIVE)
gtm_publish_versionPublish a Google Tag Manager container version live after a preview and explicit human approval. Use it to promote a reviewed version or roll back by publishing an older one.
Instructions
Publishes a container version — goes live on the live website immediately. Two steps: without confirm only a preview (version, current live version, added/removed/changed tags, triggers, variables, rollback yes/no). confirm=true only after explicit approval by a human. Rollback = publish an older version from gtm_list_versions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | If omitted: preview only, changes nothing. Only run with true after review and approval. | |
| accountId | Yes | ||
| containerId | Yes | ||
| containerVersionId | Yes | From gtm_create_version or gtm_list_versions |