ga4-items-array-reference

Implement GA4 recommended events with items-array structures using gtag.js or GTM.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This reference documents the items array used in ecommerce GA4 events, including required fields and optional enhancements for rich product data.

Core Features & Use Cases

  • Item Schema: item_id, item_name, price, quantity, category, and more.
  • Variant & Hierarchies: Variant, multiple category levels, and lists.
  • Reporting Enablement: How items data drives reports and funnel analysis.

Quick Start

Build a purchase event with a three-item array covering basic and advanced fields.

Frequently Asked Questions about ga4-items-array-reference

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

FAQPage Schema
How do I structure the items array for GA4 ecommerce events?

GA4 items arrays require item_id, item_name, price, and quantity as core fields, with optional enhancements like variant, category hierarchies, and list placement to capture rich product data. The schema ensures consistent analytics tracking across purchase, view, and conversion events.

What fields should I include in GA4 product data for detailed reporting?

Include required fields (item_id, item_name, price, quantity) plus optional fields for variant, multiple category levels, and list information. This enables detailed funnel analysis and product-level reporting in GA4.

Can I use the items array structure with GTM and gtag.js?

Yes, the items array structure works across GTM container integrations and gtag.js implementations in JavaScript and React environments. Both support GA4 parameter schemas and recommended event sequencing.

How do items arrays drive GA4 reports and funnel analysis?

Item-level data in the array enables product-centric reports, conversion funnels, and category-based segmentation. Proper schema conformance ensures GA4 can aggregate and analyze product performance consistently across events.

What's the difference between basic and advanced items array fields in GA4?

Basic fields (item_id, item_name, price, quantity, category) cover standard tracking. Advanced fields add variant details, multiple category hierarchies, and list information for richer product attribution and reporting depth.