Sub topic 2
The recommended e-commerce events and the shopping funnel
This chapter covers the working model: which events GA4 recommends for a shop, how they map to the shopping funnel, and the errors that break that mapping. It assumes you know the GA4 interface (properties, data streams, reports), JavaScript objects and arrays, and how a shop's product, cart, and checkout pages work. It also assumes you know that a GA4 event is a name plus a set of parameters.
What "recommended" means
GA4 collects automatically some events, and you define others yourself. A third group is recommended events. These have names and parameters that Google has defined for common business types. For a shop, the names include view_item, add_to_cart, begin_checkout, and purchase.
Recommended events are not special on the wire. They are ordinary events. The difference is that GA4's reports know their names and parameters. If you send purchase with the documented parameters, the Monetization reports fill in. If you send completed_order instead, GA4 records it as a custom event and the e-commerce reports ignore it.
Two rules follow from this:
- Use the exact event names. Names are case-sensitive, so
Purchaseis a different event frompurchase. - Use the documented parameter names. A misspelled parameter such as
transactionIdis stored as a custom parameter and is not treated astransaction_id.
The funnel and its events
A shopping funnel is the ordered set of steps a visitor takes from first seeing a product to paying for it. Each step has a recommended event.
| Funnel stage | Event | Fires when |
|---|---|---|
| Discovery | `view_item_list` | A list of products is shown, such as a category page or search results |
| Discovery | `select_item` | The visitor clicks a product in that list |
| Discovery | `view_item` | A product detail page is shown |
| Cart | `add_to_cart` | A product is added to the cart |
| Cart | `remove_from_cart` | A product is removed from the cart |
| Cart | `view_cart` | The cart page or cart panel is shown |
| Checkout | `begin_checkout` | The visitor starts checkout |
| Checkout | `add_shipping_info` | A shipping method is chosen |
| Checkout | `add_payment_info` | A payment method is chosen |
| Purchase | `purchase` | The order is confirmed |
| After purchase | `refund` | Money is returned for an order |
The diagram shows the usual order, but real visitors do not follow it strictly. A visitor can land directly on a product page and never see a list. A returning visitor can skip browsing and go to the cart. A one-page checkout can fire shipping and payment events together or not at all. Do not rely on order to make events valid. Each event must be correct on its own.
What every event carries
Most e-commerce events share the same structure:
currency: a three-letter ISO 4217 code such asUSD.value: the monetary value of the event.items: an array describing the products involved.
The next chapters cover items and money fields in detail. For now, look at a complete event. This add_to_cart event adds two units of one product at 24.99 each:
gtag('event', 'add_to_cart', {
currency: 'USD',
value: 49.98,
items: [
{
item_id: 'SKU_1001',
item_name: 'Trail Running Shoe',
item_brand: 'Acme',
item_category: 'Shoes',
item_variant: 'blue',
price: 24.99,
quantity: 2
}
]
});The value is 49.98, which is price times quantity (24.99 × 2). It is the sum for the whole event, not the unit price. The currency parameter is required whenever you send value. Without it, GA4 cannot interpret the number, and revenue-related metrics can come out empty or wrong.
The purchase event adds one required parameter, transaction_id, a unique identifier for the order. GA4 uses it to avoid counting the same order twice, so it must be unique per order and stable for that order.
Which events matter most
You do not need every event on day one. Priorities depend on what you want to measure.
purchaseis the minimum for revenue reporting. Without it, the revenue metrics stay at zero.view_item,add_to_cart, andbegin_checkoutgive a usable funnel. They show where visitors drop out.view_item_list,select_item,view_cart,add_shipping_info, andadd_payment_infoadd detail. They help you find which step inside a stage causes the drop.refundcorrects revenue after the fact.
Add events in this order, and validate each before adding the next. A funnel with one wrong event is harder to debug than a funnel with three correct ones.
Common errors
- Wrong or custom event names.
addToCartandadd_to_cartare different events. Only the second feeds the e-commerce reports. - Missing
currency. Sendingvaluealone is the most frequent cause of revenue that does not appear. - Unit price in
value. For a quantity above 1,valuemust be the total, not one unit. - Events on page load rather than on the action. An
add_to_cartthat fires when the product page loads inflates cart counts. Fire it from the click or from the confirmed cart update. - Duplicate
purchaseevents. A confirmation page that reloads, or a tag that fires twice, sends the same order again. Thetransaction_idhelps, but you should also make the code fire once per order. - Mixing implementations. If a hard-coded gtag.js snippet and a Google Tag Manager tag both send
purchase, each order is reported twice.
Reading the funnel in reports
Once events arrive, the Monetization reports and the funnel explorations show counts per event. A quick sanity check is to compare consecutive stages. Counts should usually fall as you move down the funnel: fewer add_to_cart events than view_item events, and fewer purchase events than begin_checkout events. A stage that is larger than the one before it usually means a tag fires too often or a step is skipped by a shortcut such as a "buy now" button.
Exercise
A shop sends add_to_cart for a customer who adds 3 units of a 10.00 USD product. The developer sends value: 10.00 and omits currency. Name two things wrong and give the corrected parameters.
Show answer
First, value should be the total for the event, 30.00, not the unit price. Second, currency is missing, so GA4 cannot interpret the amount. The corrected parameters are currency: 'USD', value: 30.00, and an items entry with price: 10.00 and quantity: 3.
Exercise
Your funnel report shows more purchase events than begin_checkout events. Give two likely causes.
Show answer
Possible causes include a purchase tag firing twice (for example from both gtag.js and GTM), a confirmation page that sends the event again on reload, or a checkout shortcut that skips begin_checkout.