GA4 E-commerce Tracking: A Complete Guide for Online Stores

GA4 E-commerce Tracking: A Complete Guide for Online Stores

GA4 E-commerce Tracking: A Complete Guide for Online Stores

No Fluff,

No Fluff,

GA4 ecommerce tracking
GA4 ecommerce tracking

GA4 e-commerce tracking helps online stores measure what shoppers do from the moment they view a product through to checkout and purchase. 

A reliable setup tracks the right e-commerce events, sends consistent product and transaction data, and checks that purchase values are accurate before anyone uses the numbers for marketing decisions. 

For most stores, getting the core shopping journey right is more useful than trying to track every possible interaction.

TL;DR

  • Start GA4 ecommerce tracking with the four core events: view_item, add_to_cart, begin_checkout and purchase

  • Make sure product IDs, names, prices, and quantities stay consistent across the shopping journey

  • Use the items array to pass product-level data with e-commerce events

  • For the GA4 purchase event, check transaction_id, value, currency and purchased items carefully

  • Give every purchase a unique transaction ID to reduce duplicate purchase counting

  • Test the full event payload in DebugView, not just whether the event name appears

  • For GA4 e-commerce tracking on Shopify, check Shopify’s Google & YouTube integration before adding another GTM or app-based implementation

  • Reconcile GA4 transactions and revenue with your e-commerce platform regularly, especially after checkout, theme, or tagging changes

  • Add refund tracking where returns materially affect revenue analysis

How GA4 Ecommerce Tracking Works

GA4 measures e-commerce as a series of events across the shopping journey, with additional data explaining which products, values, and transactions were involved.

The four events to get right first

For most online stores, start with four core events:

Store action

GA4 event

Shopper views a product

view_item

Shopper adds a product to their basket

add_to_cart

Shopper starts checkout

begin_checkout

Shopper completes an order

purchase

Google supports additional e-commerce events for actions such as viewing product lists, removing products from a basket, adding shipping or payment information, processing refunds, and measuring promotions. 

Its official e-commerce measurement documentation maps these shopping actions to recommended events and the product data they can carry.

You do not need to implement every available event on day one. If you can accurately measure product views, basket additions, checkout starts, and purchases, you already have a useful picture of how customers move towards a sale.

What happened to Enhanced Ecommerce?

If you are looking for enhanced e-commerce in GA4, the terminology has changed from the Universal Analytics days.

GA4 uses event-based e-commerce measurement. Rather than relying on the old Enhanced Ecommerce structure, your website, e-commerce platform, or tagging implementation sends the relevant shopping events and parameters to GA4.

For a new setup, focus on GA4's current event model instead of trying to reproduce an old Universal Analytics implementation.

What Ecommerce Data Does GA4 Need?

The event name tells GA4 what happened, while its parameters explain which products, quantities, and values were involved.

Understand the items array

E-commerce events usually carry product or service information inside an items array. You do not need to write JavaScript yourself to understand why this matters.

Think of the event as the action and the items data as the products involved in that action.

For example, when someone adds a pair of trainers to their basket, GA4 could receive:

  • add_to_cart as the event

  • product ID

  • product name

  • price

  • quantity

  • brand or category, where useful

Google uses the items array across e-commerce events to carry item-level information.

Keep product data consistent

Consistency matters across the shopping journey.

If the same product uses one ID during view_item, another during add_to_cart, and a different identifier again during purchase, your reporting becomes harder to interpret.

Before adding advanced tracking, make sure core product identifiers, names, prices, and currencies are being passed consistently. This is worth checking even when a developer, plugin, or e-commerce platform handles the technical implementation.

How to Set Up GA4 E-commerce Tracking

A reliable GA4 e-commerce tracking setup depends on your ecommerce platform, but the goal stays the same: the correct events and product data need to reach the correct GA4 property. 

Step 1: Check what your platform already sends

Before opening Google Tag Manager and creating new tags, find out what your e-commerce platform, plugin, or existing integration already tracks.

Start by checking:

  • Which e-commerce events already appear in GA4?

  • Is product data arriving with them?

  • Is the purchase event already being recorded?

  • Does its purchase value match a real test order?

  • Is another analytics app, plugin, or GTM implementation sending the same events?

This check should happen before adding anything new to your GA4 e-commerce setup. Adding another implementation on top of a working one can create duplicate or conflicting data.

Step 2: Map store actions to GA4 events

Create a simple measurement map before implementation.

For example:

Product viewed → view_item

Added to basket → add_to_cart

Checkout started → begin_checkout

Order completed → purchase

The event should represent the action as accurately as possible. A purchase event, for example, should represent a successful order rather than someone merely reaching the checkout.

Step 3: Choose the implementation route

There are three common routes:

  1. A native ecommerce-platform integration

  2. Google Tag Manager using e-commerce data supplied by the website

  3. A direct implementation added by a developer

There is no benefit in choosing a more complicated setup simply because it is available.

If a reliable native integration already sends the events and parameters you need, it may be enough. GTM becomes useful when you need more control, additional events, or a customised implementation.

If your store needs more control over how e-commerce events are sent, our guide GA4 and Google Tag Manager: Complete Integration and Tagging Guide explains how GA4 and GTM work together in more detail. 

What a GTM ecommerce implementation actually does

The basic data flow is easier to understand than the code behind it:

Store action → ecommerce data becomes available → GTM reads the event and values → a GA4 tag sends them → GA4 receives the event and parameters.

For example, when a shopper adds a £50 product to their basket, the website may expose the add_to_cart action along with its product ID, price, and quantity. GTM can then use that information to send the corresponding GA4 event.

The important point for marketers is that GTM cannot invent accurate product or transaction information. The website or e-commerce platform needs to make the right data available first.

Set Up the Purchase Event and Revenue Correctly

Purchase tracking deserves extra attention because mistakes here directly distort transaction and revenue reporting.

What the purchase event should send

A useful GA4 purchase event needs more information than the fact that an order occurred.

Google's purchase-event implementation guidance includes transaction information, value, currency, and purchased items, with other fields such as tax, shipping, and coupons available where relevant.

For GA4 revenue tracking, pay particular attention to the purchase value and currency.

If the event fires but sends £0 revenue, the tracking is technically firing but commercially useless. The same applies if a £100 order appears as £1,000 or the wrong currency is attached.

Run test orders and compare the data GA4 receives with the actual transaction in your e-commerce platform.

Give every purchase a unique transaction ID

The transaction_id deserves its own check.

Google explains that transaction IDs are used to minimise duplicate purchase counting when purchases with the same transaction ID are received.

Use the real unique order or transaction identifier generated by your store. Do not deliberately reuse the same ID across genuine purchases.

If GA4 revenue suddenly looks unusually high, duplicate purchase implementations should be one of the first things you investigate.

Do not forget refunds

A purchase is not always the end of the revenue story.

GA4 also supports a refund ecommerce event. For stores where returns materially affect revenue, make sure your measurement approach accounts for refunds rather than judging performance only from gross purchase activity.

You do not need advanced refund tracking to launch basic e-commerce measurement, but it becomes increasingly important when GA4 is being used for ongoing revenue analysis.

Test Ecommerce Tracking Before Trusting It

With GA4 e-commerce tracking, a tag firing successfully proves that something was sent. It does not prove that the information inside the event is correct. 

Check the full purchase payload

Run at least one test purchase and inspect what GA4 receives.

For the purchase event, check:

  • Did it fire after the order was completed?

  • Is the transaction_id correct?

  • Does the purchase value match the actual order?

  • Is the correct currency being sent?

  • Are all purchased products present?

  • Are prices and quantities correct?

  • Did the purchase fire only once?

Apply the same logic earlier in the journey. If a shopper adds two units of a product to their basket, confirm that add_to_cart reflects the right item and quantity.

Use DebugView during testing

Walk through the journey yourself:

view_item → add_to_cart → begin_checkout → purchase

Then check whether GA4 receives the same sequence.

Google recommends enabling debug mode when implementing e-commerce events so you can inspect events and troubleshoot the data being sent.

Do not stop at the event name. Inspect the parameters. A perfectly named purchase event carrying the wrong value is still broken tracking.

If your events are firing but the data still looks wrong, 10 Google Analytics 4 Mistakes in Configuration You Should Avoid covers common setup issues that can undermine otherwise useful GA4 tracking. 

GA4 E-commerce Tracking on Shopify

Shopify stores have a different starting point, so check Shopify's native Google integration before adding another tracking layer.

Start with the Google & YouTube channel

For GA4 e-commerce tracking on Shopify, Shopify currently directs merchants to install its Google & YouTube channel as part of the GA4 tagging process.

Shopify states that certain e-commerce events are collected automatically, while other recommended or custom events can still be implemented where required. Its current GA4 setup guidance explains the connection process.

Before adding GTM, another analytics app, or a custom implementation, check what the existing integration is already sending.

This is especially important for stores that have been through several analytics setups. An old manual tag, a newer native integration and a third-party app can create a messy measurement setup if more than one is trying to record the same purchase.

When custom tracking may still make sense

A Shopify store may still need additional implementation for:

  • business-specific events

  • custom parameters

  • unusual storefront interactions

  • specialised measurement requirements

Treat these as additions to a reliable base. Do not rebuild standard e-commerce measurement simply because a more complicated implementation is possible.

Where to Find Ecommerce Data in GA4

Once GA4 e-commerce tracking is working reliably, use the resulting data to understand product performance and where shoppers are leaving the buying journey. 

Check product performance

E-commerce data can help you investigate questions such as:

  • Which products receive many views but few basket additions?

  • Which products are regularly added to baskets but rarely purchased?

  • Which item contributes the most revenue?

  • Which products sell in the highest quantities?

This is where consistent item IDs, names, and values start to pay off. Clean implementation makes product-level analysis much easier.

Once your e-commerce data is reliable, GA4 Segments and Audiences: How to Slice Your Data for Better Insights can help you analyse how different customer groups behave across product views, basket activity, and purchases.

Look at the purchase journey

The event sequence can also expose where the biggest drop-offs occur.

If product pages generate plenty of view_item activity but relatively few add_to_cart events, product presentation, price, or the offer may deserve closer investigation.

If shoppers frequently begin checkout but rarely purchase, the problem may sit closer to delivery charges, payment options, or checkout usability.

GA4 cannot tell you the reason on its own. It shows you where to investigate.

That is a more useful role for analytics than simply producing another dashboard.

To connect e-commerce behaviour with the campaigns that brought shoppers to your store, read A Guide to UTM Parameters in Google Analytics 4 for a practical approach to cleaner campaign attribution. 

Reconcile GA4 with your store periodically

Do not treat launch-day testing as the end of data quality checks.

Periodically compare transactions and revenue in GA4 against the e-commerce platform that records the actual orders. The numbers do not need to be treated as interchangeable systems, but unexpected changes or widening discrepancies can point to a tracking problem.

Recheck the implementation after major theme changes, checkout updates, analytics-app changes, or tagging work. Tracking that was correct six months ago can still break after the store changes.

GA4 E-commerce Tracking Checklist

Before considering the implementation complete, check the essentials once more.

  • view_item, add_to_cart, begin_checkout, and purchase fire at the correct stages

  • Product IDs and names remain consistent through the shopping journey

  • The items data contains the correct products and quantities

  • Purchase values match actual test orders

  • Currency is being sent correctly

  • Every purchase has a unique transaction ID

  • Test orders generate one purchase rather than duplicates

  • Refund measurement is considered where returns materially affect reporting

  • Shopify stores do not have overlapping implementations sending the same events

  • Transactions and revenue are periodically checked against the e-commerce platform

  • Tracking is retested after major store, checkout, or tagging changes

Clean GA4 e-commerce tracking is easier to troubleshoot and gives your marketing team a much better foundation for analysing product, checkout, and revenue performance.

If your e-commerce events or reports suddenly stop showing the data you expect, No data available in Google Analytics 4? Here are the solutions walks through the common causes and checks worth running first. 

Need Help Setting Up GA4 for Your Online Store?

If your store is recording purchases but the revenue does not quite match, e-commerce events are missing, or you are unsure whether several integrations are sending duplicate data, we can help.

At No Fluff, we audit and set up GA4 around the e-commerce data your team actually needs to understand performance and make better marketing decisions.

If you want us to take a look at your e-commerce tracking setup, get in touch with us.


Select...▼
Select...▼

Frequently Asked Questions

1. Is GA4 e-commerce tracking free to set up?

2. Does GA4 automatically track purchases, or do I need custom code?

3. Why is my GA4 revenue different from my store's actual revenue?