/google-tagmanager:google-tagmanagerfrom google-tagmanager
Provides guardrails for Google Tag Manager: resolves overloaded vocabulary, reads container state, and guides configuration of tags, triggers, variables, dataLayer pushes, Custom HTML/JS, Consent Mode, Preview mode, and sGTM containers.
Ships in google-tagmanager. 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.
gtm CLI (see Automating a container), or from an exported container JSON the user supplies. Establish its model - legacy (Google tags), optimised (Destination tags) or mixed - because the advice differs. Done when the answer names real tag, trigger and variable names and states the model. With no access, say the advice is generic and ask which model applies.dataLayer.push the site must make, then variables, triggers, tags, and any setting needed in the destination product. Name each setting by its feature name rather than a click path - Google moves menus often.| Read | When |
|---|---|
| glossary.md | A term in the request has more than one meaning in GTM (step 1) |
| javascript-environments.md | Writing or reviewing any code or regex that goes into a container - Custom HTML, Custom JavaScript variable, custom template, trigger or Regex Table pattern |
| optimised-container.md | The container has Destination tags or Shared settings, a migration is planned or just done, the task adds a Google product, or the install snippet is in question |
| pitfalls.md | Every task (step 3) - one group each for installing, Google products, triggers, variables and data layer, Consent Mode (with its setup order), templates, server containers, debugging, API and governance, specs and audits |
| cli.md | Installing or using the gtm CLI |
| tool-setup.md | The task needs a real container and the session has neither tool |
| vendor-docs.md | A step-by-step procedure this skill leaves to Google - the link for each topic |
Two ways to read and change a container without the GTM UI. Both are third-party tools on Google's API, and both can create, update, delete and publish.
| Tool | Reach for it when |
|---|---|
gtm CLI - owntag/gtm-cli, local binary | The default: scripting, CI, bulk audits and exports, service-account auth, and container access that stays on the user's machine |
| Stape's hosted GTM MCP server, added by the user from Stape's guide | Its tools are present in the session |
Use whichever the session has. With neither - no such tools and command -v gtm finds nothing - read tool-setup.md and offer the user the choice of the two.
Guardrail for both: before a delete or a publish, state what will change and in which account, container and workspace, and wait for the user's approval.
dataLayer.push sends nothing. A hit leaves the browser only when a tag fires on a trigger that matches the push's event.page_view, scroll or form_submit, or the event doubles.window or document, APIs through require(), and a tag must call data.gtmOnSuccess() or data.gtmOnFailure(). Custom HTML tags and Custom JavaScript variables are ES5 only - var and function () {}; const, let, arrow functions and template literals fail to compile and block publishing. Only templates accept const, let and arrow functions.^ and $. GA4 reports, Explorations, segments and audiences use RE2 and match the whole value. A pattern moved between them breaks on lookarounds, backreferences, (?i) or a missing .*. The Regex Table variable matches the whole input and ignores case by default.gtag.config event for every gtag('config') call on the page. Name the event exactly, or anchor the pattern.{ ecommerce: null } before each ecommerce event.<script async src>; it pushes no gtm.js object to dataLayer. The old snippet still works.references/cli.md (opens in a new tab)references/glossary.md (opens in a new tab)references/javascript-environments.md (opens in a new tab)references/optimised-container.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/tool-setup.md (opens in a new tab)references/vendor-docs.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub henkisdabro/wookstar-claude-plugins --plugin google-tagmanagerOther plugins' skills for the same job