Enhanced Ecommerce in Google Analytics: GA4 Setup Guide
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
| Event | Fires when | Key parameters |
|---|---|---|
view_item | A product page opens | currency, value, items |
add_to_cart | An item goes in the cart | currency, value, items |
begin_checkout | Checkout starts | currency, value, items |
add_payment_info | Payment details are entered | currency, value, items |
purchase | The order is confirmed | transaction_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
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.
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 }]
}
});
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
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.
Missing currency or value. Whenever you send value, Google says you must also send currency, or revenue metrics won’t be calculated accurately.
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.
About Patrik Vavrovič
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?
Do I need Google Tag Manager to set up ecommerce tracking in GA4?
Why does GA4 show fewer sales than my store?
How long until ecommerce data appears in GA4 reports?
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.