Plans and applies Google Tag Manager changes safely using MCP tools, gtm-cli, or the GTM interface. Guides through scope, rollback targets, dependencies, preview, versioning, and publishing.
Ships in gtm-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read safe-edit-workflow.md and naming-organization.md before planning. A deadline does not shorten the workflow. To save time, reduce the scope: ship the requested change and move cleanup to a later version.
gtm-cli command-line tool (see
gtm-cli). Read the current entities before proposing anything.For a Community Template Gallery template, read gallery-templates.md.
Show the plan before changing anything. It contains, in order:
get_latest_version_header), stop and ask: a new
workspace would carry those unpublished changes.| Step | Operation | MCP tool | gtm-cli | GTM interface |
|---|---|---|---|---|
| Rollback target | Get the live version | get_live_version | gtm-cli versions get --live | Versions |
| Isolate | Create a workspace | create_workspace | not available | Workspace menu |
| Formats | Get parameter examples | get_tag_templates, get_trigger_templates | gtm-cli tags get, gtm-cli triggers get on a similar entity | not needed |
| Change | Create or update | create_variable, create_trigger, create_tag, update_tag | gtm-cli variables create, gtm-cli triggers create, gtm-cli tags create, gtm-cli tags update | Variables, Triggers, Tags |
| Compile check | Preview the workspace | quick_preview_workspace | not available | Preview |
| Review | List workspace changes | get_workspace_status | gtm-cli workspaces status | Workspace Changes |
| Version | Create a version | create_version | gtm-cli versions create | Submit > Create Version |
| Publish | Publish the version | publish_version | gtm-cli versions publish | Publish |
Where the CLI has no command, the user does that step in the GTM interface. With
the CLI, add --dry-run to preview each change.
Two gates need an explicit yes from the user: after showing the workspace changes, before creating the version; and before publishing. A request to "get it live" made before they saw the changes is not that yes. When the user applies the steps themselves, write both as checkpoints before Create Version and Publish.
quick_preview_workspace only checks that the workspace compiles. Behavior on
the site needs Preview mode in the GTM interface.
After publishing, report the new version ID and the rollback version ID.
Delete only what the user asked for or approved by name, in a version separate
from feature work. Check every reference first (delete_tag, delete_trigger,
delete_variable, or gtm-cli <nouns> delete).
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/gtm-cliOperates Google Tag Manager through the gtm-cli command-line tool, including authentication checks, ID discovery, JSON input files and safety rules. Use when a shell is available and GTM must be read or changed without an MCP server, or when a gtm-cli command fails./gtm-container-auditAudits a Google Tag Manager container and scores it against best practices. Use when asked to review, audit, clean up or health-check a GTM setup or a container export JSON./gtm-ga4-consentSets up and debugs GA4 and consent mode v2 in Google Tag Manager. Use when working on Google tags, GA4 events, cookie banners, consent checks, or duplicate or missing GA4 data./gtm-mcpExplains how to operate the GTM MCP Server, including ID discovery, tool input formats and safety guards. Use when its GTM tools are available or a tool rejects JSON input./gtm-server-sideReviews and configures server-side Google Tag Manager containers. Use when working on sGTM clients, server tags, transformations, PII redaction or first-party tagging domains./gtm-tracking-planWrites tracking plans and dataLayer specs for Google Tag Manager. Use when asked to document what a container tracks, plan events for measurement goals, or brief developers./gtm-skills:gtm-safe-editfrom gtm-skills
npx claudepluginhub paolobietolini/gtm-mcp-server --plugin gtm-skillsOther plugins' skills for the same job