Guide

How to Set Up GA4 Ecommerce Tracking

GA4 ecommerce tracking gives online retailers detailed data about purchase behaviour — which products are viewed, added to basket, and bought; where customers drop out of the checkout funnel; and what your total revenue looks like over time. Without it, you are flying blind when it comes to your shop's performance.

Setting up ecommerce tracking in GA4 requires pushing structured data events to the data layer and configuring Google Tag Manager to pass those events to your Analytics property. It is more technical than basic GA4 installation, but the payoff in reporting insight is substantial.

The Ecommerce Events GA4 Expects

GA4 has a set of recommended ecommerce events that unlock its built-in reports. The core events are view_item (when a product page is loaded), add_to_cart (when a product is added to the basket), begin_checkout (when the checkout flow starts), add_payment_info (when payment details are entered), and purchase (when an order is completed). Each event should include item-level data: item ID, name, category, price, and quantity.

You can also track view_item_list (product listing pages) and select_item (when someone clicks a product from a list) to get funnel data all the way from browsing to purchase. The more events you implement, the more complete your funnel analysis will be.

Implementing Ecommerce Events via Google Tag Manager

The recommended approach is to have your website developers push events to the dataLayer object in a format GA4 understands. For example, when a purchase is completed, the page should push a purchase event with an ecommerce object containing transaction ID, value, currency, and an items array. Google Tag Manager then picks this up and sends it to GA4.

In Google Tag Manager, create a GA4 Event tag with event name set to a variable that reads from the dataLayer. Map the ecommerce parameters using the built-in ecommerce data layer variable. Enable "Send Ecommerce Data" and set the data source to "Data Layer". Test using GTM's preview mode before publishing.

Viewing Ecommerce Reports in GA4

Once events are flowing, navigate to Reports, then Monetisation in GA4's left-hand menu. The Ecommerce Purchases report shows revenue by item, purchase quantity, and add-to-cart rates. The Purchase Journey report visualises how many sessions pass through each stage of your funnel and where drop-off occurs.

The Checkout Journey report specifically shows abandonment at each step of your checkout process. If you see a large drop between "add payment info" and "purchase", that is a signal to investigate your payment step — slow loading, confusing layout, or a lack of trusted payment methods are common culprits.

FAQs

Common questions.

Do I need a developer to set up GA4 ecommerce tracking?
For most websites, yes. The dataLayer push code needs to be added to your site's templates by someone with access to the codebase. Popular platforms like Shopify, WooCommerce, and Magento have plugins that handle most of this automatically, which can significantly reduce the technical effort required.
What currency should I use in GA4 ecommerce events?
Pass the ISO 4217 currency code that matches the price you are sending — for example, "GBP" for pounds sterling. GA4 supports multiple currencies and can convert them to a reporting currency, but you must specify the currency correctly in each event for the data to be accurate.
Why does my GA4 purchase revenue not match my order management system?
Common causes include refunds not being deducted, tax handling differences, cancelled orders that still fired the purchase event, and sessions where the purchase confirmation page loaded twice (duplicate transactions). Add transaction ID deduplication logic in your implementation and exclude refunded orders from your Analytics view using GA4's refund event.
Related guides

More on web design & ux.

Want a hand putting this into practice?

Book a free, no-obligation consultation with a Norwich-based specialist.

Book a free consultation
Get started

Let's put your business in a better light.

Book a free, no-pressure consultation. We'll talk through your goals and tell you honestly what we'd do — whether you work with us or not.

  1. 01
    Tell us a bitFill in the form — two minutes, tops.
  2. 02
    We'll call you backWithin one working day, no pressure.
  3. 03
    Get a clear planHonest advice and a fixed quote.

Free · No obligation · We reply within one working day

Book a free consultation