The GA4 e-commerce events that build the funnel, from view_item to purchase
GA4 ecommerce events are a measurement contract: six recommended events, each with required parameters and an items array. On Google's public sample, January 2021, 300 of 1,204 purchase events arrive without a transaction_id. This article reads the contract, then checks it, following our guide to checkout funnel analysis with GA4.
Which GA4 ecommerce events build the funnel, and what must each one carry?
Six recommended Google Analytics 4 (GA4) ecommerce events build the funnel. Google's event reference marks items as required on all six. It also requires currency whenever value is sent, and transaction_id on purchase. Everything else is optional, and optional parameters are where most funnels lose detail.
A recommended event is a GA4 event whose name and parameters Google defines in advance. Reports, explorations, and the BigQuery export (raw export) then read it the same way on every site. A renamed event, such as checkout_start, is a custom event: no standard report picks it up.
A checkout funnel is an ordered sequence of e-commerce events that a session is expected to cross, from the product view to the purchase. Each step counts the sessions that reached it. The difference between two consecutive steps is the drop-off.
| Step | GA4 event | Required by Google's reference | Optional, worth sending |
|---|---|---|---|
| 1 | view_item | items; currency when value is sent | value |
| 2 | add_to_cart | items; currency when value is sent | value |
| 3 | begin_checkout | items; currency when value is sent | value, coupon |
| 4 | add_shipping_info | items; currency when value is sent | shipping_tier, coupon |
| 5 | add_payment_info | items; currency when value is sent | payment_type, coupon |
| 6 | purchase | items, transaction_id; currency when value is sent | shipping, tax, coupon, customer_type |
Google's ecommerce guide lists eight more recommended events: lists, promotions, cart views and removals, wishlists, and refunds. None of them is a funnel step, but each one explains a step. A site without view_cart cannot tell a cart page view from a cart addition.
The items array: what should it carry at each step?
The items array should carry the products the event is about, and nothing else. On view_item, that is the product on screen. On add_to_cart, it is the product added. From checkout onward, it is the content of the cart.
The items array is the repeated record of the GA4 export that lists the products attached to one event. It holds one entry per product, with fields such as item_id, item_name, price, and quantity. Google requires item_id or item_name in each entry and accepts up to 200 entries per event. Where items sits next to event_params in each row is covered in The GA4 export schema: events, event_params, and items explained.
The query below takes an inventory of the 14 recommended ecommerce events in January 2021. For each event present, it counts events, sessions, and the size of the items array.
SELECT
event_name,
COUNT(*) AS events,
COUNT(DISTINCT CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING))) AS sessions,
COUNTIF(ARRAY_LENGTH(items) = 0) AS events_without_items,
COUNTIF(ARRAY_LENGTH(items) = 1) AS events_with_one_item,
MAX(ARRAY_LENGTH(items)) AS max_items_per_event
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
AND event_name IN ('view_item_list', 'select_item', 'view_item', 'add_to_cart', 'add_to_wishlist', 'view_cart', 'remove_from_cart',
'begin_checkout', 'add_shipping_info', 'add_payment_info', 'purchase', 'refund', 'view_promotion', 'select_promotion')
GROUP BY event_name
ORDER BY events DESC
| Event | Events | Sessions | Events without items | Events with one item | Max items per event |
|---|---|---|---|---|---|
view_item | 86,971 | 23,105 | 26,221 | 2,297 | 12 |
add_to_cart | 15,522 | 4,537 | 0 | 581 | 12 |
begin_checkout | 11,034 | 2,159 | 0 | 6,414 | 27 |
add_shipping_info | 3,952 | 2,159 | 3,952 | 0 | 0 |
add_payment_info | 2,841 | 1,560 | 2,841 | 0 | 0 |
purchase | 1,204 | 1,115 | 0 | 668 | 21 |
Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).
Two defects show up. First, 26,221 view_item events, 30.1% rounded to one decimal, carry no items. Second, only 581 of the 15,522 add_to_cart events carry a single item. Most carry up to 12, which looks like a product list attached to the event. Either way, "which product was added" has no clean answer on the sample. Four recommended events return no row at all: view_cart, remove_from_cart, add_to_wishlist, and refund.
Are add_shipping_info and add_payment_info optional steps?
The add_shipping_info and add_payment_info events are recommended, yet many checkouts lack a separate step for one. A wallet payment can skip add_payment_info entirely. The funnel then shows a step that measures nothing, or loses buyers who never saw it.
The public sample shows the first case. add_shipping_info fires in exactly the same 2,159 sessions as begin_checkout. Step 4 therefore adds no information to step 3: the delivery drop-off is invisible. Both events also arrive with an empty items array, on 3,952 and 2,841 events. A product-level reading of the checkout steps is impossible on the sample.
The two step parameters are optional in Google's reference: shipping_tier and payment_type. Without them, the funnel says that a step was crossed, never how. With them, the drop-off can be split by delivery option or payment method.
Decide one rule per step and write it down. Either the step exists and its event fires alone. Or it does not exist, and the funnel skips it. A step that fires with its neighbor is a tagging choice, not a behavior. Which checkout step really loses buyers is covered in Shipping, payment, account creation: where checkout breaks.
How do you check the contract in the export, by step and by day?
The contract is checked with two counts per day: sessions per step, and events missing a required parameter. A monthly total hides the date of a break; a daily series shows it. The query below counts, per day, the sessions with begin_checkout and with add_shipping_info. It also counts purchase events whose transaction_id is (not set). It then groups January 1 to 25 and shows the last six days one by one.
A measurement contract is the written list of events, parameters, and items that a site commits to send at each funnel step. It is the tracking plan, turned into tests. The raw export is checked against it every day, so a broken tag shows up as a failed test.
WITH events AS (
SELECT
event_date,
event_name,
ecommerce.transaction_id AS transaction_id,
CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING)) AS session_id
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
AND event_name IN ('begin_checkout', 'add_shipping_info', 'purchase')
),
daily AS (
SELECT
event_date,
COUNT(DISTINCT IF(event_name = 'begin_checkout', session_id, NULL)) AS checkout_sessions,
COUNT(DISTINCT IF(event_name = 'add_shipping_info', session_id, NULL)) AS shipping_sessions,
COUNTIF(event_name = 'purchase') AS purchase_events,
COUNTIF(event_name = 'purchase' AND transaction_id = '(not set)') AS purchases_without_id
FROM events
GROUP BY event_date
)
SELECT
IF(event_date < '20210126', '20210101-20210125', event_date) AS period,
COUNT(*) AS days,
COUNTIF(shipping_sessions = checkout_sessions) AS days_shipping_equals_checkout,
SUM(purchase_events) AS purchase_events,
SUM(purchases_without_id) AS purchases_without_id,
ROUND(100 * SUM(purchases_without_id) / SUM(purchase_events), 1) AS pct_without_id
FROM daily
GROUP BY period
ORDER BY period
| Period | Days | Days where shipping sessions = checkout sessions | purchase events | Without transaction_id | Share without transaction_id |
|---|---|---|---|---|---|
| 2021-01-01 to 2021-01-25 | 25 | 25 | 922 | 68 | 7.4% |
| 2021-01-26 | 1 | 1 | 55 | 33 | 60.0% |
| 2021-01-27 | 1 | 1 | 54 | 42 | 77.8% |
| 2021-01-28 | 1 | 1 | 69 | 64 | 92.8% |
| 2021-01-29 | 1 | 1 | 54 | 48 | 88.9% |
| 2021-01-30 | 1 | 1 | 31 | 26 | 83.9% |
| 2021-01-31 | 1 | 1 | 19 | 19 | 100.0% |
Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).
The monthly share is 300 of 1,204 events, 24.9%. That number hides the break. Before January 26, 7.4% of purchases lack an ID; after it, 232 of 282 do. The split date comes from reading the daily series first. Google warns that the sample's internal consistency is limited by obfuscation, so the break may be an artifact. On a production site, the first suspect is a release on that date.
The same daily count catches an event that stops firing. On the sample, add_to_cart is absent on most days of November 2020.
SELECT
COUNT(*) AS days,
COUNTIF(add_to_cart_events = 0) AS days_without_add_to_cart
FROM (
SELECT _TABLE_SUFFIX AS day, COUNTIF(event_name = 'add_to_cart') AS add_to_cart_events
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20201101' AND '20201130'
GROUP BY day
)
| November 2020 | Value |
|---|---|
| Days in the export | 30 |
Days without a single add_to_cart event | 18 |
Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).
A cart step missing on 18 days traps any calculation over the sample's 92 days.
Duplicate purchase events and transaction_id: one order or two?
transaction_id is the only field that tells one order from one purchase event. Google requires it on purchase. Its help page says GA4 deduplicates purchase events that share a transaction ID, on web streams only. It also says never to send an empty string as the ID. The page does not mention the BigQuery export.
A duplicate purchase is a second purchase event that carries a transaction_id already received. It typically comes from a reloaded or revisited confirmation page. It inflates orders and revenue unless the SQL keeps one event per ID.
WITH purchases AS (
SELECT
CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING)) AS session_id,
NULLIF(ecommerce.transaction_id, '(not set)') AS transaction_id,
(SELECT COUNTIF(item_id = '(not set)') FROM UNNEST(items)) > 0 AS has_unidentified_item
FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
AND event_name = 'purchase'
),
per_session AS (
SELECT session_id, COUNT(*) AS purchase_events, LOGICAL_OR(transaction_id IS NOT NULL) AS has_transaction_id
FROM purchases
GROUP BY session_id
)
SELECT
(SELECT COUNT(*) FROM purchases) AS purchase_events,
(SELECT COUNTIF(transaction_id IS NULL) FROM purchases) AS events_without_transaction_id,
(SELECT COUNTIF(transaction_id IS NULL AND has_unidentified_item) FROM purchases) AS of_which_item_not_set,
(SELECT COUNTIF(transaction_id IS NOT NULL) FROM purchases) AS events_with_transaction_id,
(SELECT COUNT(DISTINCT transaction_id) FROM purchases) AS distinct_transaction_ids,
(SELECT COUNT(*) FROM per_session) AS purchase_sessions,
(SELECT COUNTIF(purchase_events > 1) FROM per_session) AS sessions_with_several_purchases,
(SELECT COUNTIF(NOT has_transaction_id) FROM per_session) AS sessions_without_any_transaction_id
| Measure, January 2021 | Value |
|---|---|
purchase events | 1,204 |
Events without transaction_id, all with an item_id of (not set) | 300 |
Events with a transaction_id | 904 |
Distinct transaction_id values (orders) | 894 |
Sessions with at least one purchase | 1,115 |
Sessions with more than one purchase event | 49 |
Purchase sessions without any transaction_id | 270 |
Computed on 2026-10-15 on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data).
The export keeps both rows of a duplicate: 904 events carry an ID, for 894 distinct IDs. Ten events are repeats. Counting orders therefore means COUNT(DISTINCT transaction_id), never COUNT(*). The 300 events without an ID cannot be deduplicated at all. They also carry an item without an item_id, so product revenue loses them too.
What does a gap in the events do to the funnel?
A gap in the events moves a funnel rate without any change in buyer behavior. The table maps the five defects found on the sample.
| Gap in the contract | What the funnel shows | On the public sample, January 2021 |
|---|---|---|
| A recommended event never fires | A 100% drop, if the funnel uses it as a step | view_cart and remove_from_cart absent |
| A step fires with the previous one | A step that adds no information | add_shipping_info in the same 2,159 sessions as begin_checkout |
items empty or overloaded | No reading by product at that step | 26,221 view_item events empty; shipping and payment events always empty |
transaction_id missing | Fewer orders than purchase sessions | 270 of 1,115 purchase sessions without any ID |
purchase repeated | More events than orders | 10 repeat events for 894 orders |
The missing ID is the costliest gap. Counted by session, the purchase step holds 1,115 sessions. Counted by identified order, it holds 845 sessions, 24.2% fewer. Every abandonment rate built on orders then rises, with no buyer behaving differently. The same trap, on carts bought in a later session, is in Measuring cart abandonment with GA4 and BigQuery without overstating it.
The fix is never in the funnel query. It is in the tag, and the funnel only reports the damage. That is why the contract test runs before the funnel, every day. How a single tagging defect spreads through every report is in Tracking health: the GA4 tagging flaw that skews everything.
FAQ
Do I need all six ecommerce events for a GA4 funnel?
A GA4 funnel needs at least view_item, add_to_cart, begin_checkout, and purchase to cover the journey. The shipping and payment events are worth sending only when the checkout has those steps. Send them alone, at the moment the step is completed. Fired together with begin_checkout, they add a step that measures nothing.
Does the BigQuery export deduplicate purchase events?
On the public sample, the BigQuery export keeps duplicate purchase events. In January 2021, 904 events carry a transaction_id, for 894 distinct IDs. Google's help page describes deduplication in GA4 for web streams but does not mention the export. Deduplicate in SQL: count orders with COUNT(DISTINCT transaction_id), and keep one event per ID for revenue.
What should a transaction_id contain?
A transaction_id should contain the order number from your order system, unique per order. Google's help page asks for a dynamic value, never an empty string, and never shared across users. A fixed or empty ID merges unrelated purchases. Sharing that ID with your back office also lets you reconcile GA4 with your orders.
The rates built on these events, step by step, are in E-commerce checkout funnel: step-by-step drop-off analysis with GA4. Your own contract can be checked on your raw GA4 export. Book a diagnostic.
Sources
- Measure ecommerce (opens in a new tab) - Google, page updated 2026-10-14, consulted 2026-10-15
- Recommended events reference (opens in a new tab) - Google, page updated 2026-09-16, consulted 2026-10-15
- Minimize duplicate key events with transaction IDs (opens in a new tab) - Google, consulted 2026-10-15
- BigQuery Export schema (opens in a new tab) - Google, consulted 2026-10-15
- BigQuery sample dataset for Google Analytics ecommerce web implementation (opens in a new tab) - Google, page updated 2026-08-19, consulted 2026-10-15