FREE CONSULTATION
Let's Discuss Your Project

Looking for help with Google Tag Manager, GA4, Server-Side Tagging, Conversion Tracking, Technical SEO or AI Search Optimization?

  • Google Tag Manager
  • Google Analytics 4
  • Server-Side Tagging
  • Conversion Tracking
  • Technical SEO
  • AI Search Optimization

Connect with me!

GA4 Ecommerce Data Layer Generator

Generate GTM-ready GA4 ecommerce data layer events for product views, carts, checkout, purchases, and refunds.

Recommended for purchase and refund events.

Product Items

Add one or more products included in this ecommerce event.

Generated GA4 Ecommerce Code

Use this data layer event on your website, then configure a GA4 Event tag in Google Tag Manager.

Ecommerce Event Preview

Review the main event details before implementing the data layer on your website.

Generate an ecommerce event to view its GA4 tracking summary.

Quick Presets

GA4 Ecommerce Best Practices

  • Use the prescribed GA4 ecommerce event names whenever they match the customer action.
  • Include an item ID or product name for every item in the items array.
  • Use a unique transaction ID for each purchase to help avoid duplicate revenue.
  • Clear the previous ecommerce object before pushing a new ecommerce event.
  • Test events in GTM Preview mode and GA4 DebugView before publishing.