secondstep-claude-skills / ga4-audit-claude
CLAUDE.md2 starsChanged 9 months agoMITView on GitHub
This is a Claude Code skill that performs comprehensive audits of Google Analytics 4 properties. It evaluates 10 audit dimensions and produces a GA4 Health Score (0-100) with actionable fix recommendations. All commands are prefixed with /ga4: The Health Score (0-100) uses weighted scoring across 8 dimensions. E-commerce and non-e-commerce properties use different weight distributions. See scripts/health_score.py for the implementation.
In this repository47 other files it gives its agents.
- skills/ab-testing-claude/CLAUDE.mdCLAUDE.md
- skills/aeo-claude/CLAUDE.mdCLAUDE.md
- skills/competitor-analysis-claude/CLAUDE.mdCLAUDE.md
- skills/competitor-analysis-claude/competitor/CLAUDE.mdCLAUDE.md
- skills/conversion-tracking-claude/CLAUDE.mdCLAUDE.md
- skills/copywriting-frameworks-claude/CLAUDE.mdCLAUDE.md
- skills/email-marketing-claude/CLAUDE.mdCLAUDE.md
- skills/google-ads-audit-claude/CLAUDE.mdCLAUDE.md
- skills/google-ads-copy-claude/CLAUDE.mdCLAUDE.md
- skills/google-ads-scripts-claude/CLAUDE.mdCLAUDE.md
- skills/landing-page-audit-claude/CLAUDE.mdCLAUDE.md
- skills/linkedin-ads-claude/CLAUDE.mdCLAUDE.md
- skills/local-seo-claude/CLAUDE.mdCLAUDE.md
- skills/meta-ads-audit-claude/CLAUDE.mdCLAUDE.md
- skills/negative-keywords-claude/CLAUDE.mdCLAUDE.md
- skills/pmax-claude/CLAUDE.mdCLAUDE.md
- skills/product-feed-claude/CLAUDE.mdCLAUDE.md
- skills/quality-score-claude/CLAUDE.mdCLAUDE.md
- skills/saas-metrics-claude/CLAUDE.mdCLAUDE.md
- skills/schema-markup-claude/CLAUDE.mdCLAUDE.md
- skills/smart-bidding-claude/CLAUDE.mdCLAUDE.md
- skills/tiktok-ads-claude/CLAUDE.mdCLAUDE.md
- skills/youtube-ads-claude/CLAUDE.mdCLAUDE.md
- abtestSkill
- aeoSkill
- competitor-analysisSkill
- conversion-tracking-claudeSkill
- copySkill
- copywriting-frameworks-claudeSkill
- emailSkill
- ga4-audit-claudeSkill
- ads-auditSkill
- google-ads-copy-claudeSkill
- google-ads-scripts-claudeSkill
- lp-auditSkill
- linkedin-ads-claudeSkill
- localSkill
- meta-auditSkill
- negativesSkill
- pmaxSkill
- product-feed-claudeSkill
- quality-score-claudeSkill
- saasSkill
- schema-markup-claudeSkill
- biddingSkill
- tiktokSkill
- youtube-ads-claudeSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
All commands are prefixed with /ga4:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GA4 Audit Claude Skill — Project Guide
Overview
This is a Claude Code skill that performs comprehensive audits of Google Analytics 4 properties. It evaluates 10 audit dimensions and produces a GA4 Health Score (0-100) with actionable fix recommendations.
Architecture
ga4-audit-claude/
├── SKILL.md # Main skill router — maps /ga4 commands to sub-skills
├── skills/ # 10 sub-skill definitions (one per audit dimension)
│ ├── ga4-data-streams/ # Stream config, enhanced measurement, filters
│ ├── ga4-events/ # Event coverage, naming, parameter validation
│ ├── ga4-conversions/ # Conversion setup, counting method, Ads import
│ ├── ga4-audiences/ # Audience creation, predictive, Ads export
│ ├── ga4-attribution/ # Model selection, lookback windows
│ ├── ga4-ecommerce/ # Purchase funnel events, revenue tracking
│ ├── ga4-custom-dimensions/ # Dimension registration, quota usage
│ ├── ga4-reporting/ # Reports and explorations
│ ├── ga4-integrations/ # Google product linking (Ads, SC, BQ)
│ └── ga4-report/ # Final report compilation
├── agents/ # Agent definitions for orchestration
│ ├── audit-orchestrator.md # Full audit flow coordinator
│ ├── event-validator.md # Event naming and parameter checks
│ ├── ecommerce-debugger.md # E-commerce funnel debugging
│ └── report-generator.md # Report compilation and formatting
├── scripts/ # Python utilities
│ ├── health_score.py # Health Score calculator (weighted scoring)
│ ├── event_validator.py # Event naming convention validator
│ └── report_generator.py # Audit report generator
├── docs/ # Reference documentation
│ ├── ga4-event-reference.md # Complete GA4 event reference
│ ├── audit-methodology.md # Audit methodology details
│ └── common-issues.md # Common GA4 misconfigurations
└── templates/ # Report output templates (future)Commands
All commands are prefixed with /ga4:
| Command | What It Does |
/ga4 audit | Full audit — runs all 10 dimensions in sequence |
/ga4 streams | Audit data stream configuration |
/ga4 events | Audit event implementation and naming |
/ga4 conversions | Audit conversion event setup |
/ga4 audiences | Audit audience configuration |
/ga4 attribution | Audit attribution model settings |
/ga4 ecommerce | Audit e-commerce event implementation |
/ga4 dimensions | Audit custom dimension registration |
/ga4 reporting | Audit report and exploration setup |
/ga4 integrations | Audit Google product integrations |
/ga4 report | Generate the final scored audit report |
Health Score Calculation
The Health Score (0-100) uses weighted scoring across 8 dimensions. E-commerce and non-e-commerce properties use different weight distributions. See scripts/health_score.py for the implementation.
Development Rules
- Skill files are markdown — Each sub-skill lives in
skills/<name>/SKILL.md. These files define the audit checklist, scoring criteria, and output format for that dimension. - Snake_case for GA4 events — Always reference GA4 events in snake_case (e.g.,
add_to_cart, notAddToCart). - Audit output format — All audit findings must follow the standard format defined in the main
SKILL.md: passed checks, failed checks (with impact/current/recommended/fix), and warnings. - Python scripts — Located in
scripts/. Require Python 3.8+. No external dependencies beyond the standard library (json, argparse, sys, typing). - Agent definitions — Located in
agents/. Each agent markdown file defines the agent's role, capabilities, and orchestration rules. - Do not modify SKILL.md routing — The main SKILL.md maps commands to sub-skills. Changes to routing should be deliberate and reflected in README.md.
- Testing — Run
python scripts/health_score.py --scores '{"events": 80, "conversions": 65}' --jsonto verify the scoring calculator works.
Running Python Scripts
# Health Score Calculator
python scripts/health_score.py --interactive
python scripts/health_score.py --scores '{"events": 80, "conversions": 65, "data_streams": 90}'
python scripts/health_score.py --file audit_results.json --json
# Event Validator
python scripts/event_validator.py
# Report Generator
python scripts/report_generator.pyDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

