Skip to Content

How to Track eCommerce Success with Google Analytics

How to Track eCommerce Success with Google Analytics featured image

Moving from Universal Analytics to Google Analytics 4

Switching to Google Analytics 4 is more than just a platform update. It changes how your website data is collected, tracked and understood. Instead of focusing on sessions and pageviews, GA4 logs every user interaction as a separate event. That means you get a clearer view of what people are actually doing on your site, across both desktop and mobile.

GA4 also brings machine learning into the mix, spotting trends and giving you insights without needing to dig for them. You don’t have to switch off Universal Analytics straight away, but the sooner you set up GA4, the sooner it can start collecting the historical data you’ll need later.

Since Universal Analytics is being phased out, GA4 is the only way to keep your tracking relevant and reliable.

 

What's changed with GA4

The biggest difference is the move to an event-based model. It tracks what users actually do — clicks, scrolls, add-to-cart actions — rather than just how many pages they visit.

There’s no built-in eCommerce conversion rate like before. Instead, you’ll be looking at metrics like session conversion rate, engagement and revenue per user. It’s a more flexible system that gives you more control over how you measure success.

You’ll also notice that GA4’s reports are customisable. You can build them around your business goals instead of relying on the fixed templates from Universal Analytics.

 

Better eCommerce Tracking

GA4 can track the full shopping journey - from product views to completed checkouts. You’ll need to configure this manually, but once set up, you’ll get detailed insight into what is driving revenue.

Not every feature from Universal Analytics has carried over yet, but Google is regularly adding new tools. What’s there already is powerful and worth getting to grips with.

 

Setting up GA4 for online shops

GA4 won’t automatically track purchases or revenue. You’ll need to add tracking yourself. The easiest way is with Google Tag Manager.

By pushing event data (like product names and prices) to a data layer, you can use GA4 tags to track actions like ‘add to basket’ or ‘begin checkout’. This gives you control over what gets tracked and when.

Focus on key steps like product views, add-to-cart, and purchases. These are your main indicators of what’s working and what’s not.

 

Using Google Tag Manager

Google Tag Manager makes setup easier and keeps your tracking clean. Add your GA4 measurement ID, then build tags for each event — things like ‘view item’, ‘add to cart’ or ‘purchase’.

Set triggers to match user actions. For example, you might want a tag to fire when someone views a product page or when they hit the checkout. The more accurate your tagging, the better your data.

 

Tracking at item level

GA4 now supports item-scoped dimensions, which means you can track individual product performance inside events. It’s especially helpful when users add multiple products to their cart.

Just be careful to separate item-scoped data from general event data, or your reports will get messy.

 

Migrating from enhanced eCommerce

Moving from Universal Analytics isn’t a one-click job. You’ll need to rebuild your tracking in GA4, mapping each event and data point to its new equivalent.

Variables like shipping methods or voucher codes need to be pushed into the data layer and picked up by your new GA4 tags. It can get technical, so you might need a developer’s help.

 

What you can track

With the right setup, GA4 can track product views, cart activity, checkout steps and purchases. You’ll be able to build custom reports around the data that matters most.

It’s also possible to measure product performance by category or brand, giving you better insight into what sells and why.

 

Spotting abandoned carts

GA4 can help you see when users add items to their baskets but don’t check out. This is where you can dig into things like delivery costs, payment friction or forced account creation — all common blockers.

You can even build audiences of cart abandoners and run remarketing ads to bring them back.

 

Tracking internal promotions

Want to know if your banners or product offers are working? Use GA4 events like ‘view promotion’ and ‘select promotion’ to track how users engage with them.

Just make sure eCommerce tracking is turned on and your tags are firing correctly. A small mistake here can mean lost or incomplete data.

 

Avoiding tracking mistakes

Double purchases. Missing data. Inflated revenue. These are common issues when tracking isn’t set up properly.

To avoid duplicate purchases, make sure the purchase event only fires once, and not again if the user refreshes the thank-you page. To deal with cancelled or refunded orders, you’ll need to filter them out manually, since GA4 doesn’t do this automatically.

 

Get your setup right

Setting up GA4 for eCommerce can be fiddly, especially if your store has custom functionality. Google Tag Manager gives you the tools, but it is worth working with a developer to get it right the first time.

Once you’ve got clean data coming in, you can build reports that actually help you make better decisions.

 

Key metrics to keep and eye on

Conversion rate — purchases divided by sessions

Average order value (AOV) — revenue divided by number of orders

Customer acquisition cost (CAC) — how much you’re spending to get each customer

Return on ad spend (ROAS) — revenue brought in compared to your ad budget

Abandonment rate — how many people leave before completing checkout

Review these regularly to keep things on track.

 

Using GA4 reports to grow

GA4’s Monetisation reports and Events Explorer give you a clear view of what users are doing and what’s driving revenue. You can segment your reports by product, channel, or campaign to spot what is performing well.

Track engagement too — look at bounce rates, time on site, and drop-off points to understand how people are interacting with your content.

 Want help getting GA4 set up properly for your store? We can audit, configure and clean up your tracking so you get data you can trust. Get in touch with us here.

 

FAQs

How do I enable eCommerce tracking in GA4?

You need to set up events manually using Google Tag Manager or your site’s code. GA4 won’t track purchases unless you tell it to.

Can GA4 track platforms like Shopify or Amazon?

GA4 works well with Shopify when set up correctly through Tag Manager. Tracking Amazon sales is more complex and often needs third-party tools.

How do I stop duplicate orders from being tracked?

Use a transaction ID and make sure the purchase event only triggers once per order. Avoid tracking on pages that reload easily.

Why should I set up GA4 now?

Because you’ll need historical data when Universal Analytics is turned off. The earlier you start, the better your reporting will be later.

What are the most common mistakes?

Not turning on eCommerce tracking. Firing the wrong tags. Forgetting to test. Assuming it works like Universal Analytics. It doesn’t.