ga4-events — Claude Code skill: what it does, how to install
A GA4 event reference for choosing parameters, wiring implementations, and checking incoming data. Use it when building or auditing analytics tracking.
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-codeWhat ga4-events does
This skill maps the GA4 event model and helps choose parameters for automatically collected, recommended, enhanced measurement, and custom events. It covers web tracking and ecommerce, then shows implementation routes through gtag.js, GTM, and the Measurement Protocol.
The validation guidance uses DebugView, Realtime reports, and BigQuery checks. With Cogny MCP connected, the skill can inspect a GA4 property, its data streams, conversions, custom dimensions, and custom metrics. The reference works with zero accounts; MCP is needed when the advice should reflect a specific property.
What it helps with
- choose parameters for a GA4 event
- map a user action to a recommended event
- wire tracking through
gtag.js, GTM, or Measurement Protocol - check whether an event reaches DebugView and Realtime
- compare tracking with a GA4 property setup
Example prompts for the agent
- Run
/ga4-events purchaseand show the purchase parameters with an implementation example. - Use
/ga4-events ecommerceto outline the event flow for an ecommerce funnel. - Ask
/ga4-events validationfor a check sequence using DebugView, Realtime, and BigQuery.
How to install ga4-events
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-code2Manually: put the files in place
~/.claude/skills/ga4-events/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ga4-events/
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a codex2Manually: put the files in place
.agents/skills/ga4-events/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a cursor2Manually: put the files in place
.cursor/skills/ga4-events/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cognyai/claude-code-marketing-skills ga4-events2Manually: put the files in place
.github/skills/ga4-events/SKILL.md1Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a gemini-cli2Platform CLI
gemini skills install https://github.com/cognyai/claude-code-marketing-skills --path skills/ga4-eventsManually: put the files in place
.devin/skills/ga4-events/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -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-events
How do I install ga4-events in Claude Code?
Run npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-code, then use ~/.claude/skills/ga4-events/SKILL.md.
What does ga4-events do?
It helps design and validate GA4 tracking by covering event names, parameters, gtag.js, GTM, Measurement Protocol, and data checks.
Does ga4-events require a GA4 account?
The reference works without an account. When Cogny MCP is connected, it can tailor guidance to a specific GA4 property and its collected events.