Files
our-claude-skills/.claude/commands/gtm-audit.md
Andrew Yim 81afe587ce feat(settings-audit): Add Claude Code settings optimizer skill
- Add new 00-claude-code-setting skill for token usage optimization
- Includes audit scripts for MCP servers, CLAUDE.md, and extensions
- Auto-fix capability with backup for serverInstructions and frontmatter
- Add YAML frontmatter to 17 command files
- Target: keep baseline under 30% of 200K context limit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 18:00:24 +07:00

47 lines
1.1 KiB
Markdown

---
description: Gtm Audit command
---
# GTM Audit
Lightweight Google Tag Manager audit tool.
## Triggers
- "audit GTM", "check dataLayer", "GTM 검사"
## Capabilities
1. **Container Analysis** - Tags, triggers, variables inventory
2. **DataLayer Validation** - Check event structure
3. **Form Tracking** - Verify form submission events
4. **E-commerce Check** - Validate purchase/cart events
## Scripts
```bash
# Audit GTM container
python ourdigital-custom-skills/20-gtm-audit/code/scripts/gtm_audit.py \
--url https://example.com
# With detailed dataLayer check
python ourdigital-custom-skills/20-gtm-audit/code/scripts/gtm_audit.py \
--url https://example.com --check-datalayer --output report.json
```
## Audit Checklist
### Container Health
- [ ] GTM container loads correctly
- [ ] No JavaScript errors from GTM
- [ ] Container ID matches expected
### DataLayer Events
- [ ] `page_view` fires on all pages
- [ ] `purchase` event has required fields
- [ ] Form submissions tracked
### Common Issues
- Missing ecommerce object
- Incorrect event names (GA4 format)
- Duplicate event firing