Tag Manager version diff
get_gtm_version_diffCompare two GTM container versions to see added, removed, and changed tags, triggers, and variables after a publish.
Instructions
Compare two GTM container versions: what a publish changed.
Returns added, removed and changed tags, triggers and variables (with names, types and the changed fields; parameters and trigger conditions are diffed key by key), plus built-in variables enabled or disabled. By default compares the live version with the version created before it. The Tag Manager API does not mark which versions were published, so that default "before" version may never have been live. Makes two or three Tag Manager API calls.
Tag Manager API: https://developers.google.com/tag-platform/tag-manager/api/v2
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_version_id | No | Newer version ID. Empty uses the live (published) version. | |
| gtm_account_id | No | Numeric GTM account ID (see list_gtm_accounts). Empty uses gtm.account_id from the config. | |
| from_version_id | No | Older version ID (see list_gtm_versions). Empty uses the newest non-archived version created before to_version_id. | |
| gtm_container_id | No | Numeric GTM container ID (see list_gtm_containers). Empty uses gtm.container_id from the config. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||