ga4-audit — Claude Code skill: what it does, how to install
Audits Google Analytics 4 setup and data hygiene. It identifies misconfigured key events, missing streams, and tracking discrepancies against your actual store orders.
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a claude-codeWhat ga4-audit does
This skill inspects a GA4 property via the Cogny MCP gateway to catch tracking flaws before quarterly reporting breaks down. It reviews data streams to find duplicated web tracking, scans custom dimensions, and inspects key events. If default actions like page_view or scroll are marked as conversions, the audit flags inflated metrics.
To verify figures beyond Google's ecosystem, the audit compares GA4 purchase counts against Shopify orders or WooCommerce sales reports. It can also estimate the consent and ad-blocker gap using tools like Plausible or Fathom. Some settings cannot be fetched via API, such as the 2-month versus 14-month retention window; the skill asks you to confirm those directly in the GA4 admin panel.
Running the audit requires a paid Cogny Agent account ($9/month) and an active MCP endpoint at https://app.cogny.com/mcp configured in your .mcp.json.
What it helps with
- strip noisy automatic events from GA4 conversion lists
- compare recorded GA4 purchases against Shopify or WooCommerce sales
- detect duplicate web streams that double-count visitors
- measure ad-blocker traffic gaps against Plausible or Fathom
Example prompts for the agent
- /ga4-audit
- /ga4-audit config
- /ga4-audit data-quality
How to install ga4-audit
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a claude-code2Manually: put the files in place
~/.claude/skills/ga4-audit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ga4-audit/
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a codex2Manually: put the files in place
.agents/skills/ga4-audit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a cursor2Manually: put the files in place
.cursor/skills/ga4-audit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cognyai/claude-code-marketing-skills ga4-audit2Manually: put the files in place
.github/skills/ga4-audit/SKILL.md1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a gemini-cli2Platform CLI
gemini skills install https://github.com/cognyai/claude-code-marketing-skills --path skills/ga4-auditManually: put the files in place
.devin/skills/ga4-audit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about ga4-audit
How do I install ga4-audit in Claude Code?
Run npx skills add cognyai/claude-code-marketing-skills --skill ga4-audit -a claude-code.
What does ga4-audit check?
It inspects key events, data stream configurations, custom dimensions, PII parameters, and discrepancies with e-commerce platforms.
What dependencies are needed before running ga4-audit?
You need a Cogny Agent subscription ($9/mo), the Cogny MCP server added to .mcp.json, and an authorized Google Analytics 4 connection.