ga4-events

Provides implementation guidance and validation for GA4 events across web and server contexts.

90|10|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/cognyai/claude-code-marketing-skills --skill ga4-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ga4-events
Source: https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/ga4-events
Command: npx skills add https://github.com/cognyai/claude-code-marketing-skills --skill ga4-events

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GA4 event implementation reference for teams needing a single, authoritative source of event definitions, parameters, and validation patterns to standardize analytics instrumentation.

Core Features & Use Cases

  • Comprehensive event model overview covering automatically collected, enhanced measurement, recommended, and custom events.
  • Code examples for gtag.js, GTM, and Measurement Protocol to implement and validate events across web and server-side contexts.
  • Use Case: Audit and implement GA4 events across a property, ensuring correct parameter usage and deduplication with transaction_id in ecommerce flows.

Quick Start

Ask me for a specific GA4 event or topic to get exact parameters, code samples, and validation steps.

Frequently Asked Questions about ga4-events

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement GA4 events using gtag.js or GTM?

To implement GA4 events, you need the exact event names and parameters for gtag.js or Google Tag Manager. This Skill provides ready-to-use code samples, parameter lists, and validation steps for automatically collected, enhanced measurement, recommended, and custom events across web contexts.

What is the difference between automatically collected and recommended GA4 events?

GA4 event models distinguish between automatically collected events that trigger without setup, enhanced measurement events configured via the interface, and recommended events requiring specific custom parameters. This Skill outlines exact parameter lists and naming rules to standardize your analytics instrumentation across these categories.

Can I use the Measurement Protocol to send GA4 events server-side?

Yes, the GA4 Measurement Protocol supports sending events server-side. This Skill provides code examples and validation patterns for implementing server-side GA4 events, ensuring correct parameter usage and deduplication using transaction_id in ecommerce flows.

How do I audit and debug GA4 event implementation?

Auditing and debugging GA4 events requires checking exact parameter usage and validating event payloads. This Skill offers comprehensive validation guidance, debugging steps, and code samples to audit automatically collected, recommended, and custom events across web and server contexts.

Why do my GA4 ecommerce events trigger duplicate transactions?

GA4 ecommerce events trigger duplicate transactions when the transaction_id parameter is missing or reused. This Skill provides exact parameter lists and validation patterns to implement deduplication correctly within your gtag.js, GTM, or Measurement Protocol setup.