Tutorial · Analytics

Which GA4 e-commerce events does an online shop need?.

The shopping events in order, how to build the items array, how to send the purchase once, and how to check the data before you trust the reports.

The short answer

Send the recommended GA4 e-commerce events in shopping order, from view_item_list to purchase, with an items array on each one. Google treats these events as the source of the Ecommerce purchases report, so a missing event leaves a gap in the funnel.12 Check each event in DebugView before you rely on the reports.2

Starting point
14recommended events for online sales2
200items allowed in one event's items array1
27custom parameters allowed in each item1

These are Google's documented limits when this guide was written. Check the developer documentation before you build, because the event names and limits are updated.

Before you start

The Google tag has to be on the site, and you need access to both Analytics and the site's source code, or to a tag manager that can send the events.1 Turn on debug mode so the events appear in real time while you test.1

Decide on the currency first. Set it on every event that sends a value, at the event level, because it is the currency that standard reports use.1

The events in shopping order

Each event follows the one before it, so the funnel reads in the same order as a shopper's visit.

Six stages of GA4 e-commerce events in shopping order, from viewing a product list to refunds, with the purchase event highlighted.
The recommended events in shopping order, grouped by stage. Source: Google Analytics Help, [GA4] Recommended events (see Sources).
  1. view_item_list: a list of products is shown, such as a category page or a set of related products.2
  2. select_item: the shopper clicks a product from that list.2
  3. view_item: the product page is opened.2
  4. add_to_cart: the item goes into the basket. Use remove_from_cart when it leaves, and view_cart when the basket is shown.2
  5. begin_checkout: the first checkout step starts. A coupon can be added here.1
  6. add_shipping_info and add_payment_info: the shopper enters delivery and payment details. Use shipping_tier and payment_type when they apply.1
  7. purchase: the order is complete.1
  8. refund: an order is refunded, with the same transaction ID.1

The items array

Each product goes in an items array. Every item needs an item_id or an item_name, and both are recommended. price and quantity are optional, and quantity defaults to 1 when it is left out.1

Send every item parameter you have data for, even the optional ones. Coupon, discount, brand, category and list name all feed the reports.1

Example

A shopper adds two units of a tee priced at 10.01 to the cart. The add_to_cart event carries one item with item_id set to the SKU, price set to 10.01 and quantity set to 2. The event's value is 20.02, which is price times quantity.1

Worked example: an add_to_cart event with a price of 10.01 and quantity 2 has a value of 20.02, price times quantity.
Example: one add_to_cart event with two units at 10.01 each, so the value is 20.02.

See where your website loses revenue.

Get a free Traffic Scan →

The purchase event

Send purchase once per order, with a transaction_id that is unique to that order. Google's example sets value to the sum of price times quantity for all items, then adds tax and shipping separately.1

Use the same ID for a refund. A refund event needs the transaction_id, and sending the items with it gives item-level refund figures in Analytics.1

Promotions and banners

Internal promotions have their own events. view_promotion records a banner shown to the shopper, and select_promotion records a click on it. Both take a promotion_id, a promotion_name and the promoted item.1

Measure promotions only if you use them to sell. A homepage banner that nobody clicks adds noise to the funnel.

Check the events before you trust them

Open DebugView while you walk through the shop, from a category page to a test order. Each event should appear in the order above, with the items and values you expect.2 The Realtime report confirms the events arrive from real visits once the setup is live.2

Google's events report also suggests events to collect, based on the data already in the account.2 Treat those suggestions as a checklist, not as a finished plan.

What to read in the reports

The Ecommerce purchases report shows purchases, revenue and the items sold. Compare its revenue with your platform's order totals for the same dates. Large gaps usually mean a missing transaction_id, a second purchase event for one order, or a currency mismatch.1

Decision order for purchase counts: check unique transaction IDs, send purchase once per order, then set currency on each event.
The checks to run in order when purchase counts or revenue do not match your platform.

Set a fixed week for the check, and compare the funnel step by step. A drop between begin_checkout and purchase points at the checkout, not at the product page.

Mistakes to check before you go live

  • A purchase event on the thank-you page that refreshes: the same order is counted twice unless the events are set up to send once.
  • No currency at event level: the value is read in the wrong currency in standard reports.1
  • Items sent outside the items array: item reports stay empty.1
  • A missing transaction ID: refunds and purchases cannot be matched.1

Discover your website’s 3 biggest gaps for free.

Get a free Traffic Scan →

Frequently asked questions

Which GA4 events do I need for an online shop?
The shopping events in order: view_item_list, select_item, view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info and purchase. Add remove_from_cart, view_cart and refund when you use them.
What is the items array?
The list of products inside each e-commerce event. Each item needs an item_id or an item_name. Price and quantity are optional, and quantity defaults to 1.
Why do purchases appear twice in GA4?
Usually because the purchase event fires again on a page refresh or a second visit to the thank-you page. Send it once per transaction_id, and check the funnel in DebugView.
Do I need a tag manager for these events?
No. Google's guide shows the gtag code, and a tag manager can send the same events. Either way, check each event in DebugView.

Sources

  1. Google for Developers, Measure ecommerce (updated 14 Oct 2026): the events in shopping order, the items array and its limits, the purchase and refund parameters, and the promotion events.
  2. Google Analytics Help, [GA4] Recommended events: the fourteen events for online sales, DebugView and the Realtime report, and the event recommendations in the Events report.