Enhanced Ecommerce Helper

Validate, generate, and test GA4 & Universal Analytics ecommerce events. This tool helps marketers, analysts, and developers ensure their ecommerce tracking is accurate and complete.

Inline AdSense / Banner

GA4 Event Builder

Live Preview & Code Snippet

GA4 `gtag.js` Snippet

// Select an event and fill in the fields to generate the code snippet.

Data Layer Validator

Paste your full `dataLayer.push` or ecommerce event JSON object here to check for required fields and correct data types.

Helper Guides & FAQs

What is Enhanced Ecommerce?

Enhanced Ecommerce is a feature in Google Analytics that allows you to get detailed insights into the shopping behavior of your users. It goes beyond standard pageviews and transactions to track the entire customer journey, including product impressions, clicks, viewing product details, adding to a cart, initiating the checkout process, and completing a purchase.

What are the main differences between GA4 and Universal Analytics (UA) Ecommerce?

The core difference is the data model. Universal Analytics used a complex set of "actions" (like 'detail', 'add', 'checkout', 'purchase'). GA4 simplifies this into a more flexible, event-based model with recommended event names like `view_item`, `add_to_cart`, and `purchase`.

GA4's `items` array is also flatter and uses slightly different parameter names (e.g., `item_id` instead of `id`, `item_name` instead of `name`). This tool focuses on generating snippets for the modern GA4 standard.

Which fields are required for a purchase event?

For a GA4 `purchase` event, the following fields are required for accurate reporting:

  • transaction_id: A unique ID for the transaction.
  • value: The total value of the purchase, including tax and shipping.
  • currency: The currency of the transaction in 3-letter ISO 4217 format (e.g., 'USD').
  • items array: At least one item with `item_id` and `item_name`.

While other fields like `price` and `quantity` for each item are not strictly required, they are essential for meaningful analysis.

Resources & Templates

Sidebar Ad
(300x600)
HELPFUL TOOLS FOR YOU
RESOURCES