ga4-recommended-events

Implement Google's recommended GA4 events with items arrays for gtag.js and GTM.

77|9|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill ga4-recommended-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ga4-recommended-events
Source: https://github.com/henkisdabro/claudecode-marketplace/tree/main/ga-suite/skills/ga4-recommended-events
Command: npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill ga4-recommended-events

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill guides implementing Google-defined recommended GA4 events (purchase, add_to_cart, login, sign_up, etc.) with proper items arrays and platform-specific patterns.

Core Features & Use Cases

  • Event Coverage: Complete ecommerce journey with view_item, begin_checkout, purchase, etc.
  • Items Array Best Practices: Structure for products and variants; recommended fields.
  • Cross-Platform Implementation: gtag.js and GTM patterns with verification guidance.

Quick Start

Implement a purchase event with a transaction_id, value, currency, and a populated items array.

Frequently Asked Questions about ga4-recommended-events

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

FAQPage Schema
How do I implement Google's recommended GA4 events for ecommerce tracking?

Recommended GA4 events are standardized event types Google defines for ecommerce and engagement tracking. Implement them by sending structured events (purchase, add_to_cart, view_item, etc.) with required parameters like transaction_id, value, currency, and a properly formatted items array through gtag.js or Google Tag Manager to enable accurate funnel analysis and revenue reporting.

What is the correct items array structure for GA4 ecommerce events?

The items array in GA4 events holds product details as an array of objects, each containing recommended fields like item_id, item_name, price, quantity, and item_category. Proper structure ensures GA4 correctly attributes revenue to products and enables product-level analysis across your purchase funnel and user lifecycle events.

Can I use GA4 recommended events with both gtag.js and Google Tag Manager?

Yes, GA4 recommended events work with both gtag.js (direct JavaScript implementation) and GTM (tag-based management). Each platform has specific integration patterns for sending events with the required transaction_id, currency, value, and items array, along with verification methods to confirm proper data collection.

What GA4 events should I track across the complete ecommerce purchase funnel?

Track the full ecommerce journey using view_item (product browsing), add_to_cart (cart actions), begin_checkout (checkout initiation), and purchase (transaction completion). Include authentication events (login, sign_up), monetization events, and promotion interactions to capture the complete user lifecycle and optimize conversion funnels.

How do I verify that GA4 recommended events are sending correctly with all required parameters?

Verification includes checking that purchase events contain transaction_id, value, currency, and a populated items array; that promotion fields are included where applicable; and that both gtag.js and GTM implementations match Google's recommended patterns. Use GA4's real-time reporting and debug view to confirm event structure and parameter accuracy.

What happens if I don't include the items array in GA4 purchase events?

Without the items array, GA4 records transaction revenue but cannot attribute sales to specific products, breaking product-level reporting and limiting ecommerce analysis. The items array is required to enable product performance insights, revenue attribution, and funnel optimization across your ecommerce implementation.