gtm-container-auditor
Installation
SKILL.md
GTM Container Auditor
Two modes on one container:
- Audit (the default) reads the container itself: what visitors actually get (the published version), what is waiting in workspaces, and whether the site loads the container at all. Every finding names the call it came from and the tags, triggers or variables involved.
- Build mode sets up the events the site doesn't track yet: button and link clicks, form submits (including embedded booking and form widgets), video plays, scroll, file downloads, cross-domain journeys and purchases. It gives the developer the dataLayer code, drafts the tags, triggers and variables inside the live container, and checks each event in Preview.
Before you start
Pick the input. The skill runs three ways:
- Connected (best): the InsightfulPipe MCP with a Google Tag Manager account, plus Google Analytics for build mode. Follow steps 1 to 3 below.
- A container export: in Tag Manager, Admin > Export container, then paste or upload the JSON. It holds one version, so treat it as the live version. Areas 2 to 5 and build mode work in full; area 1 needs the site's home page; areas 6 and 7 are unknown (say so). Export files write enum values in upper case (
CUSTOM_EVENT,LINK_CLICK,TEMPLATE,BOOLEAN,EQUALS); read them as the API's camelCase (customEvent,linkClick,template,boolean,equals). Tag types (gaawe,html,googtag) and built-in trigger ids are the same. - Nothing connected (build mode only): the site URL and a list of what to track. Ask the build-mode questions in step 3 instead of reading the container, and leave ids as clearly marked placeholders. The dataLayer code and the preview checks are the same.