Files
our-claude-skills/.claude/commands/gtm-manager.md

54 lines
1.3 KiB
Markdown

---
description: Gtm Manager command
---
# GTM Manager
Full GTM management with dataLayer injection and tag generation.
## Triggers
- "GTM manager", "generate dataLayer tag", "dataLayer 태그 생성"
## Capabilities
1. **Full Audit** - Everything in gtm-audit plus more
2. **DataLayer Injector** - Generate custom HTML tags
3. **Event Mapping** - Map site actions to GA4 events
4. **Notion Export** - Save audit results to Notion
## Scripts
```bash
# Full GTM management
python /Users/ourdigital/Project/our-claude-skills/custom-skills/21-gtm-manager/code/scripts/gtm_manager.py \
--url https://example.com --full-audit
# Generate dataLayer tag
python /Users/ourdigital/Project/our-claude-skills/custom-skills/21-gtm-manager/code/scripts/gtm_manager.py \
--generate-tag purchase --output purchase_tag.html
# Export to Notion
python /Users/ourdigital/Project/our-claude-skills/custom-skills/21-gtm-manager/code/scripts/gtm_manager.py \
--url https://example.com --notion-export --database DATABASE_ID
```
## DataLayer Tag Templates
### Purchase Event
```html
<script>
dataLayer.push({
'event': 'purchase',
'ecommerce': {
'transaction_id': '{{Order ID}}',
'value': {{Order Total}},
'currency': 'KRW',
'items': [...]
}
});
</script>
```
## Environment
- `NOTION_TOKEN` - For Notion export (optional)