中文导读
Analytics Audit Skill 是一套面向一人公司的通用 playbook,帮助你用更少的人力完成更稳的增长、交付与决策。
说明: 原始步骤、命令与 API 名称保留英文,以避免参数和接口名称失真。
概览
You are auditing the Google Analytics implementation in this project.
步骤 1:Find Existing Analytics
Search for analytics code:
- gtag or dataLayer references
- Google Tag Manager (GTM-)
- Universal Analytics (UA-) - deprecated
- GA4 Measurement IDs (G-)
- Third-party analytics (Mixpanel, Amplitude, Plausible, etc.)
步骤 2:Generate Audit Report
Create a report with these sections:
- Current Setup
- Framework detected
- Analytics provider(s) found
- Measurement ID(s) found (redact last 6 chars for security: G-XXXX)
- Implementation method (gtag.js, GTM, npm package)
- Issues Found
- Check for:
- Deprecated UA properties - Universal Analytics sunset July 2024
- Missing pageview tracking for SPAs
- Hardcoded Measurement IDs (should use env vars)
- Missing TypeScript types for gtag
- No consent mode implementation
- Debug mode in production (check for debug_mode: true)
- Duplicate script loading
- Missing error boundaries around analytics code
- Blocking script loading (should be async)
- No fallback for ad-blocker scenarios
- Recommendations
- Provide actionable fixes ranked by priority:
- 🔴 Critical (breaking/deprecated)
- 🟡 Warning (best practice violations)
- 🟢 Suggestion (optimizations)
- Event Coverage Analysis
- List custom events being tracked and suggest missing ones:
- Sign up / Login events
- Purchase/conversion events
- Form submissions
- Error tracking
- Key user interactions
- Output Format
Summary
- Status: [Healthy / Needs Attention / Critical Issues]
- Provider: [GA4 / GTM / Other]
- Framework: [detected framework]
Current Implementation
[describe what was found]
🔴 Critical
[list critical issues]
🟡 Warnings
[list warnings]
🟢 Suggestions
[list suggestions]
Event Coverage
| Event Type | Status | Recommendation | |------------|--------|----------------| | Page Views | ✅ | - | | Sign Up | ❌ | Add sign_up event | | ... | ... | ... |
Next Steps
- [ordered action items]
SKILL.md 原文件
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# check-analytics
Analytics Audit Skill
You are auditing the Google Analytics implementation in this project.
Step 1: Find Existing Analytics
Search for analytics code:
gtag or dataLayer references
Google Tag Manager (GTM-)
Universal Analytics (UA-) - deprecated
GA4 Measurement IDs (G-)
Third-party analytics (Mixpanel, Amplitude, Plausible, etc.)
Step 2: Generate Audit Report
Create a report with these sections:
Current Setup
Framework detected
Analytics provider(s) found
Measurement ID(s) found (redact last 6 chars for security: G-XXXX******)
Implementation method (gtag.js, GTM, npm package)
Issues Found
Check for:
Deprecated UA properties - Universal Analytics sunset July 2024
Missing pageview tracking for SPAs
Hardcoded Measurement IDs (should use env vars)
Missing TypeScript types for gtag
No consent mode implementation
Debug mode in production (check for debug_mode: true)
Duplicate script loading
Missing error boundaries around analytics code
Blocking script loading (should be async)
No fallback for ad-blocker scenarios
Recommendations
Provide actionable fixes ranked by priority:
🔴 Critical (breaking/deprecated)
🟡 Warning (best practice violations)
🟢 Suggestion (optimizations)
Event Coverage Analysis
List custom events being tracked and suggest missing ones:
Sign up / Login events
Purchase/conversion events
Form submissions
Error tracking
Key user interactions
Output Format
# Analytics Audit Report
## Summary
- **Status**: [Healthy / Needs Attention / Critical Issues]
- **Provider**: [GA4 / GTM / Other]
- **Framework**: [detected framework]
## Current Implementation
[describe what was found]
## Issues
### 🔴 Critical
[list critical issues]
### 🟡 Warnings
[list warnings]
### 🟢 Suggestions
[list suggestions]
## Event Coverage
| Event Type | Status | Recommendation |
|------------|--------|----------------|
| Page Views | ✅ | - |
| Sign Up | ❌ | Add sign_up event |
| ... | ... | ... |
## Next Steps
1. [ordered action items]
预览原始 SKILL.md. 下面可以直接查看完整原文。可滚动阅读、检查结构,再下载精确的 SKILL.md 原文件。
# check-analytics
Analytics Audit Skill
You are auditing the Google Analytics implementation in this project.
Step 1: Find Existing Analytics
Search for analytics code:
gtag or dataLayer references
Google Tag Manager (GTM-)
Universal Analytics (UA-) - deprecated
GA4 Measurement IDs (G-)
Third-party analytics (Mixpanel, Amplitude, Plausible, etc.)
Step 2: Generate Audit Report
Create a report with these sections:
Current Setup
Framework detected
Analytics provider(s) found
Measurement ID(s) found (redact last 6 chars for security: G-XXXX******)
Implementation method (gtag.js, GTM, npm package)
Issues Found
Check for:
Deprecated UA properties - Universal Analytics sunset July 2024
Missing pageview tracking for SPAs
Hardcoded Measurement IDs (should use env vars)
Missing TypeScript types for gtag
No consent mode implementation
Debug mode in production (check for debug_mode: true)
Duplicate script loading
Missing error boundaries around analytics code
Blocking script loading (should be async)
No fallback for ad-blocker scenarios
Recommendations
Provide actionable fixes ranked by priority:
🔴 Critical (breaking/deprecated)
🟡 Warning (best practice violations)
🟢 Suggestion (optimizations)
Event Coverage Analysis
List custom events being tracked and suggest missing ones:
Sign up / Login events
Purchase/conversion events
Form submissions
Error tracking
Key user interactions
Output Format
# Analytics Audit Report
## Summary
- **Status**: [Healthy / Needs Attention / Critical Issues]
- **Provider**: [GA4 / GTM / Other]
- **Framework**: [detected framework]
## Current Implementation
[describe what was found]
## Issues
### 🔴 Critical
[list critical issues]
### 🟡 Warnings
[list warnings]
### 🟢 Suggestions
[list suggestions]
## Event Coverage
| Event Type | Status | Recommendation |
|------------|--------|----------------|
| Page Views | ✅ | - |
| Sign Up | ❌ | Add sign_up event |
| ... | ... | ... |
## Next Steps
1. [ordered action items]
评论与讨论
添加评论