npx skills add https://github.com/aimonk2025/google-tag-manager-automation --skill gtm-reportingCLI를 사용하여 이 스킬을 설치하고 작업 공간에서 SKILL.md 워크플로 사용을 시작하세요.
Version 2.5
A comprehensive GTM automation toolkit for Claude Code that streamlines analytics implementation from audit to reporting.
11 specialized skills covering the complete GTM lifecycle - from first audit to production reporting, plus utilities for project status, debugging, and diffing.
| Skill | Purpose |
|---|---|
| gtm-analytics-audit | Scan codebase for trackable elements and assess analytics readiness |
| gtm-dom-standardization | Standardize IDs and CSS classes for clean analytics tracking |
| gtm-strategy | Plan tracking strategy with business context and event taxonomy |
| gtm-setup | Configure GTM API access with OAuth credentials |
| gtm-implementation | Implement dataLayer events and create GTM configs via API |
| gtm-testing | Validate tracking with automated Playwright tests and manual tiers |
| gtm-reporting | Generate documentation and analyze reporting impact |
| gtm-quickstart | Show top 5 tracking opportunities in one fast run - no implementation |
| gtm-status | Show pipeline progress across all output files at a glance |
| gtm-fix-guide | Turn failed test results into actionable fix instructions |
| gtm-diff | Compare what was built vs what is live in the GTM container |
# Install all skills
npx skills add aimonk2025/google-tag-manager-automation
# Install specific skills only
npx skills add aimonk2025/google-tag-manager-automation --skill gtm-analytics-audit gtm-strategy
# List available skills before installing
npx skills add aimonk2025/google-tag-manager-automation --list
Skills are installed into your ~/.claude/skills/ directory and available across all your projects.
git clone https://github.com/aimonk2025/google-tag-manager-automation.git
# Copy skills to your personal Claude skills directory
cp -r google-tag-manager-automation/skills/* ~/.claude/skills/
# Or copy to a specific project only
mkdir -p your-project/.claude/skills
cp -r google-tag-manager-automation/skills/* your-project/.claude/skills/
Invoke skills directly or let Claude load them automatically when relevant:
/gtm-quickstart
/gtm-analytics-audit
/gtm-dom-standardization
/gtm-strategy
/gtm-setup
/gtm-implementation
/gtm-testing
/gtm-reporting
/gtm-status
/gtm-fix-guide
/gtm-diff
Or use natural language:
"Show me my top tracking opportunities"
"Audit my site for tracking opportunities"
"Standardize DOM for GTM tracking"
"Create a tracking plan for my SaaS"
"Set up GTM API access"
"Implement the tracking plan"
"Test my GTM events"
"Generate documentation for stakeholders"
"Where am I in the GTM setup process?"
"My tests failed, what do I fix?"
"What changed in my GTM container since last implementation?"
The core skills run in sequence, each output feeding the next:
1. gtm-analytics-audit Scan codebase, capture business context
| Output: audit-report.json, gtm-context.md
v
2. gtm-dom-standardization Standardize IDs/classes for tracking
| Output: modified source files
v
3. gtm-strategy Plan events, parameters, priorities
| Output: gtm-tracking-plan.json
v
4. gtm-setup Configure GTM API credentials
| Output: gtm-credentials.json, gtm-token.json, gtm-config.json
v
5. gtm-implementation Add dataLayer events + create GTM configs via API
| Output: modified source files, gtm-implementation-log.json
v
6. gtm-testing Validate across 4 tiers (Playwright + manual)
| Output: gtm-test-results.json
v
7. gtm-reporting Generate docs and stakeholder summaries
Output: docs/ folder with 5 documentation files
Run these at any point alongside the core pipeline:
gtm-quickstart Run before the pipeline to see top 5 opportunities (no changes made)
gtm-status Run anytime to see which pipeline steps are done and what's next
gtm-fix-guide Run after gtm-testing when tests fail
gtm-diff Run anytime to see what changed in the live GTM container
Skills do not share context automatically. Each skill starts fresh. The output files (audit-report.json, gtm-tracking-plan.json, etc.) are how context passes between skills.
Conducts a comprehensive analytics audit of your codebase:
gtm-context.mdaudit-report.json with findings and recommendationsTrigger phrases: "audit my analytics", "scan for trackable elements", "what can I track"
Standardizes DOM identifiers across the codebase:
{category}_{location}_{descriptor}js-track js-{category} js-{action} js-{location}Trigger phrases: "standardize analytics classes", "prepare DOM for GTM", "clean up tracking IDs"
Creates strategic tracking plans:
gtm-tracking-plan.jsonTrigger phrases: "plan GTM tracking", "what should I track", "create tracking plan"
Automates GTM API configuration:
workspaceId - workspace is always resolved dynamically at runtimeTrigger phrases: "set up GTM API", "configure GTM access", "get GTM credentials"
Implements complete tracking end-to-end:
dataLayer.push() calls to components (reads from gtm-tracking-plan.json)Trigger phrases: "implement GTM tracking", "add dataLayer events", "create GTM tags"
Validates tracking implementation across 4 tiers:
Always starts with Tier 0. Falls back to manual tiers for GTM container and GA4 validation.
Trigger phrases: "test GTM tracking", "validate dataLayer", "debug GTM", "run automated tracking tests"
Generates documentation and impact analysis:
Trigger phrases: "document GTM implementation", "what reports can I build", "create stakeholder summary"
Fast tracking opportunity preview - no implementation, no API calls:
Trigger phrases: "quickstart", "what should I track", "show me tracking opportunities", "I'm new to GTM"
Instant pipeline progress check:
Trigger phrases: "gtm status", "where am I in the setup", "what's done", "show pipeline progress"
Converts test failures into fix instructions:
gtm-fix-guide.mdTrigger phrases: "fix my GTM", "tests failed", "what's broken", "fix guide"
Compares implementation log against live GTM container:
Trigger phrases: "gtm diff", "what changed", "compare gtm", "show changes"
{category}_{location}_{descriptor}
cta_hero_get_started
nav_header_pricing
form_footer_newsletter
video_hero_product_demo
outbound_footer_twitter
js-track js-{category} js-{action} js-{location}
js-track js-cta js-click js-hero
js-track js-nav js-click js-header
js-track js-form js-submit js-footer
js-track js-media js-play js-hero
| File | Generated By | Purpose |
|---|---|---|
gtm-context.md |
gtm-analytics-audit | Business context (site type, goals, ad platforms) |
audit-report.json |
gtm-analytics-audit | Codebase scan findings and recommendations |
gtm-tracking-plan.json |
gtm-strategy | Machine-readable event specifications |
gtm-credentials.json |
gtm-setup | OAuth client credentials |
gtm-token.json |
gtm-setup | Access/refresh tokens (add to .gitignore) |
gtm-config.json |
gtm-setup | GTM account and container IDs |
gtm-implementation-log.json |
gtm-implementation | Record of what was built |
gtm-test-results.json |
gtm-testing | Test pass/fail results |
gtm-fix-guide.md |
gtm-fix-guide | Prioritized fix instructions |
docs/event-schema.md |
gtm-reporting | Technical event parameter reference |
docs/implementation-summary.md |
gtm-reporting | Technical implementation notes |
docs/reporting-capabilities.md |
gtm-reporting | GA4 reports and dashboard specs |
docs/audience-definitions.md |
gtm-reporting | Remarketing audience criteria |
docs/executive-summary.md |
gtm-reporting | Non-technical stakeholder summary |
| Platform | Support | Notes |
|---|---|---|
| Next.js (App Router) | Full | All 11 skills |
| Next.js (Pages Router) | Full | All 11 skills |
| React | Full | All 11 skills |
| Vue 3 | Full | All 11 skills |
| Vanilla JS / HTML | Full | All 11 skills |
| Shopify (custom theme) | Partial | Strategy, setup, testing, reporting work fully. DOM standardization and implementation expect JSX/TSX syntax |
| WordPress (custom theme) | Partial | Same as Shopify - API and strategy skills work; code-writing skills need manual adaptation for PHP/Liquid |
MIT
aimonk2025