ga4-audit-claude
Skill2 starsChanged 9 months agoMITView on GitHub
This is the master skill file for the GA4 Audit Claude Code skill. It routes /ga4 commands to the appropriate sub-skill. Before running any audit, understand the core GA4 data model. GA4 uses an event-based data model, replacing the session/pageview model from Universal Analytics. Everything is an event. Four event categories: 1. Automatically collected events — first_visit, session_start, page_view (web), screen_view (app), user_engagement 2. Enhanced measurement events — scroll, click (outbound), view_search_results, video_start, video_progress, video_complete, file_download 3. Recommended events —…
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/ga4-audit-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
- 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 skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Distinctive: line 25
Before running any audit, understand the core GA4 data model.
- Distinctive: line 98
Must start with a letter
- Very specific: line 99
No reserved prefixes (firebase_, ga_, google_, gtag.)
- Distinctive: line 109
When running a full audit, execute sub-skills in this order:
- Distinctive: line 150
All audit findings follow this structure:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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 — Main Skill
Command Routing
This is the master skill file for the GA4 Audit Claude Code skill. It routes /ga4 commands to the appropriate sub-skill.
Available Commands
| Command | Sub-skill | Description |
/ga4 audit | All sub-skills | Full property audit across all dimensions |
/ga4 streams | ga4-data-streams | Audit data stream configuration |
/ga4 events | ga4-events | Audit event implementation |
/ga4 conversions | ga4-conversions | Audit conversion setup |
/ga4 audiences | ga4-audiences | Audit audience configuration |
/ga4 attribution | ga4-attribution | Audit attribution settings |
/ga4 ecommerce | ga4-ecommerce | Audit e-commerce tracking |
/ga4 dimensions | ga4-custom-dimensions | Audit custom dimensions |
/ga4 reporting | ga4-reporting | Audit reports and explorations |
/ga4 integrations | ga4-integrations | Audit Google product links |
/ga4 report | ga4-report | Generate final audit report |
GA4 Fundamentals
Before running any audit, understand the core GA4 data model.
Event-Based Model
GA4 uses an event-based data model, replacing the session/pageview model from Universal Analytics. Everything is an event.
Four event categories:
- Automatically collected events —
first_visit,session_start,page_view(web),screen_view(app),user_engagement - Enhanced measurement events —
scroll,click(outbound),view_search_results,video_start,video_progress,video_complete,file_download - Recommended events — Google-defined names with expected parameters (e.g.,
purchase,sign_up,generate_lead) - Custom events — User-defined events for business-specific actions
Sessions
A session begins with session_start and ends after 30 minutes of inactivity (configurable). Unlike UA, sessions do NOT restart at midnight or on new campaign parameters by default.
Key session metrics:
session_start— Fires once per sessionengagement_time_msec— Accumulated active timeengaged_sessions— Sessions lasting >10 seconds, with a conversion, or with 2+ page/screen viewsengagement_rate—engaged_sessions / sessions
Users
GA4 tracks three user identity spaces:
- User ID — Your authenticated user identifier (most accurate)
- Google Signals — Cross-device tracking for signed-in Google users
- Device ID — Client ID from
_gacookie (least accurate)
Reporting identity hierarchy (configurable):
- Blended: User ID > Google Signals > Device ID > Modeling
- Observed: User ID > Google Signals > Device ID
- Device-based: Device ID only
Engagement
GA4 replaces bounce rate with engagement metrics:
- Engaged session: >10 seconds OR conversion event OR 2+ page views
- Engagement rate: Percentage of engaged sessions (replaces inverse bounce rate)
- Average engagement time: Mean active time per session
Recommended Events Reference
All business types:
login,sign_up,share,search,select_content
E-commerce:
view_item_list,select_item,view_item,add_to_wishlistadd_to_cart,remove_from_cart,view_cartbegin_checkout,add_shipping_info,add_payment_infopurchase,refundview_promotion,select_promotion
Lead generation:
generate_lead,form_submit,qualify_lead
SaaS / Apps:
sign_up,tutorial_begin,tutorial_completespend_virtual_currency,earn_virtual_currencylevel_start,level_end,level_upunlock_achievement,post_score
Content / Media:
page_view,scroll,video_start,video_progress,video_completefile_download,click
Travel:
search,view_item,begin_checkout,purchase
Event Naming Rules
- Snake_case only (e.g.,
add_to_cart, NOTAddToCart) - Maximum 40 characters
- Must start with a letter
- No reserved prefixes (
firebase_,ga_,google_,gtag.) - Maximum 500 distinct event names per property
- Maximum 25 custom parameters per event
- Parameter names: max 40 characters
- Parameter values: max 100 characters
Orchestration
Full Audit Flow (/ga4 audit)
When running a full audit, execute sub-skills in this order:
- Data Streams — Foundation check (stream config, filters, retention)
- Events — Event coverage and quality
- Conversions — Conversion event setup
- E-commerce — E-commerce funnel (if applicable)
- Custom Dimensions — Dimension registration
- Audiences — Audience configuration
- Attribution — Attribution model settings
- Reporting — Report and exploration setup
- Integrations — Google product linking
- Report — Compile findings into scored report
Audit Input Requirements
For each audit, you need:
- GA4 Property ID (format:
properties/XXXXXXXX) - Business type (e-commerce, lead gen, SaaS, content, travel)
- Website URL
- GTM container ID (optional but recommended)
- Google Ads account ID (if running paid traffic)
Health Score Calculation
Health Score = (
streams_score * 0.10 +
events_score * 0.20 +
conversions_score * 0.15 +
audiences_score * 0.10 +
attribution_score * 0.10 +
ecommerce_score * 0.15 +
dimensions_score * 0.10 +
integrations_score * 0.10
) * 100Each dimension score is 0.0 to 1.0 based on checklist completion percentage.
Output Format
All audit findings follow this structure:
## [Dimension Name] Audit
**Score: XX/100**
### Passed Checks
- [x] Check description
### Failed Checks
- [ ] Check description
- **Impact**: High/Medium/Low
- **Current**: What is currently configured
- **Recommended**: What should be configured
- **Fix**: Step-by-step instructions
### Warnings
- [!] Warning descriptionDoes 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.

