GA4 Event Implementation Reference — complete event taxonomy, parameter lists, implementation patterns (gtag.js, GTM, Measurement Protocol), and validation techniques

No licenceAuto-check: notesMarketing & SEO

Install Ga4 Events

skills CLI
$ npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cognyai/claude-code-marketing-skills ga4-events --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ga4-events .claude/skills/ga4-events && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ga4-events
GitHub stars
104
Token cost
~5.2k tokens
SKILL.md length
1,033 words
Files
1
Skills in repo
47
Repo updated
First seen
Licence
None found

At a glance

GA4 Event Implementation Reference — complete event taxonomy, parameter lists, implementation patterns (gtag.js, GTM, Measurement Protocol), and validation techniques

  • Works in 8 steps: Case sensitivity — Purchase != purchase.… → String truncation at 100 chars — URLs… → Custom dimension quotas — 50… → …
  • Tasks that involve Go-to-market strategy
  • SKILL.md covers Usage, Instructions, Event Model Overview and Automatically Collected Events, plus 7 more sections
  • Reaches google-analytics.com

What it does

Ga4 Events is an agent skill from cognyai/claude-code-marketing-skills. GA4 Event Implementation Reference — complete event taxonomy, parameter lists, implementation patterns (gtag.js, GTM, Measurement Protocol), and validation techniques

Its SKILL.md is about 5.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering Go-to-market strategy. It works with Google Analytics. The repository describes itself as: Marketing skills for Claude Code — SEO audits and implementation, ad analysis, ad optimization. Free skills need no account. $9/mo for live Search Console, Bing & LinkedIn data.

When your agent uses it

  • Tasks that involve Go-to-market strategy

Example prompts

  • “/ga4-events”

Requirements

  • Pre-approved tools (allowed-tools): WebFetch, WebSearch, Bash, Read, Write, mcp__cogny__google_analytics_4__tool_list_account_summaries, mcp__cogny__google_analytics_4__tool_get_property, mcp__cogny__google_analytics_4__tool_list_custom_dimensions, mcp__cogny__google_analytics_4__tool_list_custom_metrics, mcp__cogny__google_analytics_4__tool_list_conversion_events, mcp__cogny__google_analytics_4__tool_list_data_streams, mcp__cogny__google_analytics_4__tool_get_metadata, mcp__cogny__google_analytics_4__tool_run_report, mcp__cogny__google_analytics_4__tool_run_realtime_report

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Case sensitivity — Purchase != purchase. Always use snake_case.
  2. String truncation at 100 chars — URLs and long values get silently cut.
  3. Custom dimension quotas — 50 event-scoped, 25 user-scoped (standard). Plan carefully.
  4. Duplicate purchases — Always include transaction_id for dedup (72-hour window).
  5. Missing currency — value without currency is ignored in monetization reports.
  6. Stale dataLayer — Always push { ecommerce: null } before ecommerce events in GTM.
  7. PII in parameters — No emails, phone numbers, or names. Violates GA4 ToS.
  8. Dynamic event names — Burns through the 500-name limit. Use parameters instead.

What it can do on your machine

Read from SKILL.md and the folder at commit a062fb4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • WebFetch
    • WebSearch
    • Bash
    • Read
    • Write
    • mcp__cogny__google_analytics_4__tool_list_account_summaries
    • mcp__cogny__google_analytics_4__tool_get_property
    • mcp__cogny__google_analytics_4__tool_list_custom_dimensions
    • mcp__cogny__google_analytics_4__tool_list_custom_metrics
    • mcp__cogny__google_analytics_4__tool_list_conversion_events

    …and 4 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript, sql, bash and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • google-analytics.com

    Also links to:

    • support.google.com
    • cogny.com
    • developers.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ga4 Events loads about 5.2k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 1,033 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: WebFetch, WebSearch, Bash, Read, Write, mcp__cogny__google_analytics_4__tool_list_account_summaries,

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,033 words (~5,200 tokens).

“Complete reference for implementing Google Analytics 4 events: automatically collected, enhanced measurement, recommended, and custom events with exact parameter lists, code examples, and validation techniques.”

— opening of SKILL.md by cognyai
name
ga4-events
allowed-tools
WebFetch, WebSearch, Bash, Read, Write, mcp__cogny__google_analytics_4__tool_list_account_summaries, mcp__cogny__google_analytics_4__tool_get_property, mcp__cogny__google_analytics_4__tool_list_custom_dimensions, mcp__cogny__google_analytics_4__tool_list_custom_metrics, mcp__cogny__google_analytics_4__tool_list_conversion_events, mcp__cogny__google_analytics_4__tool_list_data_streams, mcp__cogny__google_analytics_4__tool_get_metadata, mcp__cogny__google_analytics_4__tool_run_report, mcp__cogny__google_analytics_4__tool_run_realtime_report
version
1.0.0
author
Cogny AI
user-invocable
true
argument-hint
<event name, category, or topic>

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/ga4-events of cognyai/claude-code-marketing-skills.

Open the folder on GitHubat commit a062fb4

Compare with similar skills

Ga4 Events next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ga4 Events compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ga4 Events this skillcognyai/claude-code-marketing-skills104—~5.2kAutomated safety check: NotesNone
Tracking Discoverjtrackingai/analytics-tracking-automation142—~614Automated safety check: PassApache-2.0
Tracking Live Gtmjtrackingai/analytics-tracking-automation142—~721Automated safety check: PassApache-2.0
Tracking Schemajtrackingai/analytics-tracking-automation142—~1.1kAutomated safety check: PassApache-2.0
Tracking Syncjtrackingai/analytics-tracking-automation142—~677Automated safety check: PassApache-2.0
Google Tag Managerthatrebeccarae/claude-marketing161—~2.6kAutomated safety check: PassMIT

Similar skills

  • Tracking Discover

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants crawl coverage, platform detection, dataLayer discovery, or a fresh artifact directory before grouping and schema work.

    142 GitHub stars~614 tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed
  • Tracking Live Gtm

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants to inspect the real live GTM runtime before schema generation or compare multiple live GTM containers.

    142 GitHub stars~721 tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed
  • Tracking Schema

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants schema preparation, event design, selector validation, schema review, or event-spec generation.

    142 GitHub stars~1.1k tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed
  • Tracking Sync

    jtrackingai/analytics-tracking-automation

    A skill your agent uses when the user wants GTM-ready config generation, GTM workspace sync, or container selection from an approved schema.

    142 GitHub stars~677 tokensUpdated 5 mo ago
    Marketing & SEOAuto-check passed
  • Google Tag Manager

    thatrebeccarae/claude-marketing

    Google Tag Manager expertise. An agent skill from thatrebeccarae/claude-marketing.

    161 GitHub stars~2.6k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check passed
  • Pp Google Tag Manager

    mvanhorn/printing-press-library

    Mirror any GTM container into a local database, then audit, diff Trigger phrases: audit my GTM container, diff my GTM workspace against live, what GA4 ids are in my tag manager, check consent mode…

    2.1k GitHub stars~4.3k tokensUpdated yesterday
    Marketing & SEOAuto-check: notes

More from cognyai/claude-code-marketing-skills

All 47 skills in this repo
  • Gtm Audit

    cognyai/claude-code-marketing-skills

    Google Tag Manager container audit — tag health, orphaned and paused tags, duplicate GA4 config, trigger coverage, Consent Mode, naming, workspace hygiene

    104 GitHub stars~1.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Gtm Setup

    cognyai/claude-code-marketing-skills

    GTM Event Tracking & Setup Reference — dataLayer fundamentals, trigger types, variable types, GA4 tag configuration, debug mode, and best practices

    104 GitHub stars~4.8k tokensUpdated 3 mo ago
    Auto-check: notes
  • Gtm Tracking Plan

    cognyai/claude-code-marketing-skills

    Turn a measurement plan into a Google Tag Manager spec — tags, triggers, variables, and copy-paste dataLayer snippets for every event

    104 GitHub stars~1.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Pre Send QA

    cognyai/claude-code-marketing-skills

    Pre-flight QA for an email campaign — merge tags, broken links, spam triggers, compliance, mobile rendering — before you hit send

    104 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check: notes
  • Brand Kit

    cognyai/claude-code-marketing-skills

    Build a portable brand-kit.json for the user's product — colors, typography, voice — that other skills (video, ad creative, landing page) can consume.

    104 GitHub stars~3.4k tokensUpdated 3 mo ago
    Auto-check: notes
  • Linkedin Launch Video

    cognyai/claude-code-marketing-skills

    Produce a LinkedIn-native 1:1 (or 16:9) launch video using HyperFrames.

    104 GitHub stars~2.7k tokensUpdated 3 mo ago
    Auto-check: notes

Questions about Ga4 Events

What does Ga4 Events do?

GA4 Event Implementation Reference — complete event taxonomy, parameter lists, implementation patterns (gtag.js, GTM, Measurement Protocol), and validation techniques. Ga4 Events is an agent skill from cognyai/claude-code-marketing-skills.

When should I use Ga4 Events?

Ga4 Events fits situations like: tasks that involve Go-to-market strategy.

How do I install Ga4 Events in Claude Code?

Run `npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a claude-code`. Or copy the skill folder (skills/ga4-events in cognyai/claude-code-marketing-skills) into .claude/skills/ga4-events in your project. Claude Code loads it when a task matches its description.

How do I install Ga4 Events in Codex?

Run `npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a codex`. Or copy the skill folder (skills/ga4-events in cognyai/claude-code-marketing-skills) into .agents/skills/ga4-events in your project. Codex loads it when a task matches its description.

Can I use Ga4 Events in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cognyai/claude-code-marketing-skills --skill ga4-events -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ga4-events, .gemini/skills/ga4-events, .github/skills/ga4-events and .opencode/skills/ga4-events in your project.

What does Ga4 Events need to run?

SKILL.md names no scripts, command-line tools or credentials: Ga4 Events is instructions for the agent only. Its frontmatter pre-approves these tools: WebFetch, WebSearch, Bash, Read, Write, mcp__cogny__google_analytics_4__tool_list_account_summaries, mcp__cogny__google_analytics_4__tool_get_property, mcp__cogny__google_analytics_4__tool_list_custom_dimensions, mcp__cogny__google_analytics_4__tool_list_custom_metrics, mcp__cogny__google_analytics_4__tool_list_conversion_events, mcp__cogny__google_analytics_4__tool_list_data_streams, mcp__cogny__google_analytics_4__tool_get_metadata, mcp__cogny__google_analytics_4__tool_run_report, mcp__cogny__google_analytics_4__tool_run_realtime_report.

Does Ga4 Events access the network?

SKILL.md names 4 domains. In commands or code: google-analytics.com; the agent is likely to contact it when it follows the instructions. As links in the text: support.google.com, cogny.com and developers.google.com. This is read from the text; nothing was executed.

Is Ga4 Events safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Ga4 Events use?

No licence was found for Ga4 Events or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Ga4 Events use?

About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ga4 Events?

Skills that share tags, products or a category with Ga4 Events: Tracking Discover (jtrackingai/analytics-tracking-automation, 142 stars), Tracking Live Gtm (jtrackingai/analytics-tracking-automation, 142 stars), Tracking Schema (jtrackingai/analytics-tracking-automation, 142 stars) and Tracking Sync (jtrackingai/analytics-tracking-automation, 142 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ga4 Events?

cognyai (a GitHub organization) maintains it in cognyai/claude-code-marketing-skills, which has 104 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on June 16, 2026.

Source: cognyai/claude-code-marketing-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.