Skill skill

Analytics Audit Skill

You are auditing the Google Analytics implementation in this project.

Updated Apr 5, 2026 By One Person Company Editorial Team Skill system

Overview

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

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]

Direct Answer

Run this skill before you ship SEO, CTA, or distribution changes. Verify what moved in GA4, Search Console, and newsletter stats before you decide the next step.

Evidence To Collect

  • GA4 total users and sessions for the last 7 days
  • Search Console clicks, impressions, CTR, and average position for the affected page
  • Newsletter signups or install activity before and after the change
  • The live page URL or deploy preview used for the readout

What Good Looks Like

  • The page has one clear direct answer near the top
  • Metrics can be compared before and after the ship
  • The next move is obvious from the evidence, not from guesswork

SKILL.md file

Embedded doc viewer SKILL.md
Markdown source

Preview raw SKILL.md. Open the full source below. Scroll, inspect, then download the exact SKILL.md file if you want the original.

# 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]

## Direct Answer
Run this skill before you ship SEO, CTA, or distribution changes. Verify what moved in GA4, Search Console, and newsletter stats before you decide the next step.

## Evidence To Collect
- GA4 total users and sessions for the last 7 days
- Search Console clicks, impressions, CTR, and average position for the affected page
- Newsletter signups or install activity before and after the change
- The live page URL or deploy preview used for the readout

## Source Links To Cite
- Google Analytics documentation for the metric or event you are checking
- Google Search Console documentation for the report you are using
- The exact live page or skill URL that this audit is about

## What Good Looks Like
- The page has one clear direct answer near the top
- Metrics can be compared before and after the ship
- The next move is obvious from the evidence, not from guesswork

Comments & Discussion

Add a comment