refactor(gtm): Split into lightweight audit and comprehensive manager
- 13-ourdigital-gtm-audit: Lightweight audit-only tool (original) - GTM container validation - DataLayer event checking - Form and checkout analysis - No Notion integration, no inject mode - 14-ourdigital-gtm-manager: Comprehensive management toolkit - Full audit capabilities - DataLayerInjector for custom HTML tag generation - Notion integration for audit logging - 20+ GA4 event templates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
# GTM Audit Report Template
|
||||
|
||||
## Executive Summary
|
||||
|
||||
| Metric | Status |
|
||||
|--------|--------|
|
||||
| Container Installed | ✅ / ❌ |
|
||||
| Container Valid | ✅ / ❌ |
|
||||
| DataLayer Active | ✅ / ❌ |
|
||||
| Tags Firing | X of Y |
|
||||
| Critical Issues | X |
|
||||
| Warnings | X |
|
||||
|
||||
## Container Status
|
||||
|
||||
**Container ID**: GTM-XXXXXX
|
||||
**Installation Position**: head / body
|
||||
**Multiple Containers**: Yes / No
|
||||
**Noscript Fallback**: Present / Missing
|
||||
|
||||
### Issues Found
|
||||
- [ ] Issue description
|
||||
|
||||
## DataLayer Analysis
|
||||
|
||||
### Events Captured
|
||||
| Event Name | Count | Has Issues |
|
||||
|------------|-------|------------|
|
||||
| page_view | 1 | No |
|
||||
| add_to_cart | 0 | - |
|
||||
|
||||
### DataLayer Quality
|
||||
- [ ] Initialized before GTM
|
||||
- [ ] Standard event naming
|
||||
- [ ] Correct data types
|
||||
- [ ] E-commerce structure valid
|
||||
|
||||
## Tag Firing Report
|
||||
|
||||
### Tags Fired ✅
|
||||
| Destination | Events | Parameters |
|
||||
|-------------|--------|------------|
|
||||
| GA4 | page_view | page_location, page_title |
|
||||
| Meta Pixel | PageView | - |
|
||||
|
||||
### Tags Not Detected ⚠️
|
||||
| Expected Tag | Reason | Priority |
|
||||
|--------------|--------|----------|
|
||||
| GA4 purchase | Event not triggered | High |
|
||||
|
||||
## Network Request Analysis
|
||||
|
||||
Total requests captured: X
|
||||
|
||||
### By Destination
|
||||
| Destination | Requests | Status |
|
||||
|-------------|----------|--------|
|
||||
| GA4 | X | ✅ |
|
||||
| Meta | X | ✅ |
|
||||
| Google Ads | 0 | ⚠️ |
|
||||
|
||||
## Issues & Recommendations
|
||||
|
||||
### Critical 🔴
|
||||
1. **Issue Title**
|
||||
- Description
|
||||
- Impact
|
||||
- Recommended Fix
|
||||
|
||||
### Warning 🟡
|
||||
1. **Issue Title**
|
||||
- Description
|
||||
- Recommended Fix
|
||||
|
||||
### Info 🔵
|
||||
1. **Issue Title**
|
||||
- Description
|
||||
|
||||
## Action Items Checklist
|
||||
|
||||
### Immediate (Critical)
|
||||
- [ ] Action item 1
|
||||
- [ ] Action item 2
|
||||
|
||||
### Short-term (This Week)
|
||||
- [ ] Action item 3
|
||||
|
||||
### Long-term (This Month)
|
||||
- [ ] Action item 4
|
||||
|
||||
## Technical Details
|
||||
|
||||
### Environment
|
||||
- URL Audited: https://example.com
|
||||
- Audit Timestamp: YYYY-MM-DD HH:MM:SS
|
||||
- Browser: Chromium (headless)
|
||||
- Viewport: 1920x1080
|
||||
|
||||
### Raw Data
|
||||
Full JSON report available at: `gtm_audit_report.json`
|
||||
|
||||
---
|
||||
|
||||
## Appendix: Tag Destination Reference
|
||||
|
||||
| Tag Type | Network Pattern |
|
||||
|----------|-----------------|
|
||||
| GA4 | google-analytics.com/g/collect |
|
||||
| UA (Legacy) | google-analytics.com/collect |
|
||||
| Google Ads | googleads.g.doubleclick.net |
|
||||
| Meta Pixel | facebook.com/tr |
|
||||
| LinkedIn | px.ads.linkedin.com |
|
||||
| TikTok | analytics.tiktok.com |
|
||||
| Kakao | pixel.kakao.com |
|
||||
| Naver | wcs.naver.com |
|
||||
Reference in New Issue
Block a user