# ga4-events

A GA4 event reference for choosing parameters, wiring implementations, and checking incoming data. Use it when building or auditing analytics tracking.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 111
- Author: Cogny AI
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cognyai/claude-code-marketing-skills/tree/HEAD/skills/ga4-events/SKILL.md
- Updated: 2026-10-12
- HTML: https://affpapa.org/en/nevibecode/skills/ga4-events

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ga4-events/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ga4-events/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ga4-events/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ga4-events/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install cognyai/claude-code-marketing-skills ga4-events
```

2. **Manually: put the files in place**
- File: `.github/skills/ga4-events/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/cognyai/claude-code-marketing-skills --path skills/ga4-events
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ga4-events/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/cognyai/claude-code-marketing-skills/tree/HEAD/skills/ga4-events/SKILL.md

## When to use it
- 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
- Run `/ga4-events purchase` and show the purchase parameters with an implementation example.
- Use `/ga4-events ecommerce` to outline the event flow for an ecommerce funnel.
- Ask `/ga4-events validation` for a check sequence using DebugView, Realtime, and BigQuery.

## Similar
- [seo-audit](https://affpapa.org/en/nevibecode/skills/coreyhaines31-seo-audit.md) — skill · 238500 installs
- [programmatic-seo](https://affpapa.org/en/nevibecode/skills/coreyhaines31-programmatic-seo.md) — skill · 150800 installs
- [copy-editing](https://affpapa.org/en/nevibecode/skills/coreyhaines31-copy-editing.md) — skill · 149800 installs
- [marketing-ideas](https://affpapa.org/en/nevibecode/skills/coreyhaines31-marketing-ideas.md) — skill · 147400 installs
- [sales-enablement](https://affpapa.org/en/nevibecode/skills/sales-enablement.md) — skill · 119400 installs
- [revops](https://affpapa.org/en/nevibecode/skills/revops.md) — skill · 114000 installs

From the same set: [cognyai/claude-code-marketing-skills](https://affpapa.org/en/nevibecode/by/cognyai/claude-code-marketing-skills.md) — 38 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
