Analytics & Metrics

Enhanced Ecommerce in Google Analytics: GA4 Setup Guide

4 min read  ·  September 25, 2026

Enhanced ecommerce in Google Analytics was a Universal Analytics feature, and it no longer exists. Google Analytics 4 replaced it with ecommerce events such as view_item, add_to_cart and purchase. Your store has to send these events itself. Once it does, GA4 reports revenue, products and where shoppers drop out of checkout.

What replaced enhanced ecommerce in Google Analytics 4?

Standard Universal Analytics properties stopped processing data on July 1, 2023. Starting the week of July 1, 2024, Google removed access to all Universal Analytics data and began deleting it. Guides that still mention “enhanced ecommerce” describe a retired tool.

Source: Google Analytics Help, Universal Analytics sunset timeline

The idea survived, but the setup did not. GA4 tracks ecommerce with named events that carry product details, and none of them are on by default. Google’s own help center says these events aren’t sent automatically, so your store has to send them.

The 5 ecommerce events to send

EventFires whenKey parameters
view_itemA product page openscurrency, value, items
add_to_cartAn item goes in the cartcurrency, value, items
begin_checkoutCheckout startscurrency, value, items
add_payment_infoPayment details are enteredcurrency, value, items
purchaseThe order is confirmedtransaction_id, currency, value, items

Each item needs an item_id or an item_name. For purchases, also send tax, shipping and quantity where you have them.

How to set up ecommerce tracking in Google Analytics

1

Use your platform’s integration or a plugin. It is the fastest route. Google notes that on Shopify some events are tracked automatically through the Shopify Pixel. WooCommerce stores typically use a GA4 plugin.

2

Push events to a Google Tag Manager data layer. Google recommends clearing the previous ecommerce object before each push, so data from one event can’t leak into the next:

dataLayer.push({ ecommerce: null });
dataLayer.push({
  event: "purchase",
  ecommerce: {
    transaction_id: "T-10482",
    value: 59.90,
    currency: "USD",
    items: [{ item_id: "SKU-123", item_name: "Trail Bottle", price: 59.90, quantity: 1 }]
  }
});
3

Add gtag code by hand. A developer can call gtag("event", "purchase", {...}) with the same parameters on the order confirmation page.

How to check that GA4 ecommerce tracking works

Turn on debug mode, place a test order and watch each event arrive in DebugView. Check that currency, value and items are filled in. Reports and explorations can take up to 24 hours to show ecommerce data, so don’t judge the setup on day one.

Which ecommerce reports to read in Google Analytics

Start with Reports > Monetization > Ecommerce purchases to see revenue by product. Then open Purchase journey, which follows shoppers from session start through product views, cart and checkout to purchase. You can’t customize it, but you can open it as an exploration and build your own funnel.

Roughly 7 in 10 carts are abandoned. Baymard Institute puts the average documented cart abandonment rate at 70.22%, based on 50 studies. Your funnel report shows where your own shoppers leave, and checkout optimization covers the fixes.

Source: Baymard Institute, Cart Abandonment Rate Statistics

Once your purchase data is reliable, compare your rate with ecommerce conversion rates by industry and what counts as a good conversion rate. Then work through how to increase conversion without more traffic.

Common ecommerce tracking mistakes

1

Missing or empty transaction IDs. GA4 deduplicates web purchases that share a transaction ID, so a unique ID stops a page reload from counting the same order twice. Never send an empty ID, because Google treats every empty ID as a duplicate.

2

Missing currency or value. Whenever you send value, Google says you must also send currency, or revenue metrics won’t be calculated accurately.

3

Ignoring cookie consent. If your banner blocks GA4 until visitors agree, anyone who declines is never counted, so GA4 revenue will sit below your store’s real revenue.

“
Analytics only helps when you trust the numbers. Place one test order, follow it through every report and match it to your order list before you make a single decision from the data.
Patrik Vavrovič
Patrik VavrovičFounder, KonvertiQ
About Patrik Vavrovič
Patrik Vavrovič is a marketing and business consultant and co-founder of the marketing agency ContentFruiter. With 15 years in marketing and hundreds of audits behind him, for brands ranging from local retailers to names like Garmin, Viessmann and HiPP, he founded KonvertiQ to bring that same depth to ecommerce checkout and conversion.
Interactive Reality Check

Have you placed a test order and seen every ecommerce event arrive in GA4 DebugView?

Key takeaways

Enhanced ecommerce belonged to Universal Analytics, whose standard properties stopped processing data on July 1, 2023. GA4 uses ecommerce events instead.

Send view_item, add_to_cart, begin_checkout, add_payment_info and purchase, each with currency, value and items. Purchases also need a transaction_id.

Use a platform integration, Google Tag Manager or gtag, then verify with DebugView before you trust the reports.

Make every transaction_id unique and never empty, so Google can remove duplicate purchases.

FAQ

What replaced enhanced ecommerce in Google Analytics 4?
Enhanced ecommerce was a Universal Analytics feature. In GA4 it is replaced by ecommerce events such as view_item, add_to_cart, begin_checkout, add_payment_info and purchase, which your store must send with product and revenue details.
Do I need Google Tag Manager to set up ecommerce tracking in GA4?
No. Shopify and WooCommerce can send events through a native integration or plugin. Google Tag Manager with a data layer gives you more control, and you can also add gtag code by hand.
Why does GA4 show fewer sales than my store?
The usual causes are visitors who decline analytics cookies, blocked scripts, and purchase events that never fire on some payment routes. Compare GA4 purchases with your store’s order report for the same day to see the gap.
How long until ecommerce data appears in GA4 reports?
Google says reports and explorations can take up to 24 hours to show ecommerce data. DebugView shows events as they arrive, so use it for testing.

Get practical store fixes in your inbox

Join the KonvertiQ newsletter for short, data-backed tips on checkout, trust and conversion. No spam, unsubscribe anytime.

We use your email only to send the newsletter. See our Privacy Policy.

We use cookies for essential site functionality and, only with your consent, for analytics. More in our Cookie Policy.

Cookie settings

Choose which categories of cookies you want to allow. Essential cookies are always active.

Essential
Required for the site to function.
Analytics
Helps us understand how the site is used.
Marketing
Used to personalize advertising.