Skip to content

Measuring cart abandonment with GA4 and BigQuery without overstating it

Cart abandonment counted per session overstates the loss, because many carts are bought in a later visit. On Google's public GA4 sample, December 2020 carts give three rates. Per session, 81.2% were abandoned; per user, 78.2% within 7 days and 76.7% within 30. Our guide to checkout funnel analysis with GA4 sets the definitions used here.

What are the three definitions of cart abandonment?

Cart abandonment has three common definitions, and each one gives a different rate on the same data. The first counts sessions. The second and third count users, with a window of 7 or 30 days after the cart. On the public sample, for carts of December 2020, the three rates span 4.5 pp.

Cart abandonment is the share of carts that did not end in a purchase, within a chosen scope and a chosen window. The scope is the session or the user; the window is the session, seven days, or thirty days. The rate depends on those two choices more than on the site.

DefinitionUnitWindowQuestion it answersRate, December 2020 carts
Per sessionSessionSame sessionDoes the cart page work?81.2%
Per user, 7 daysUser7 days after the first cartDo visitors buy what they carted?78.2%
Per user, 30 daysUser30 days after the first cartHow many carts are lost for good?76.7%

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), with the three-definition query of this article.

All three rates are correct, and each answers a different question. The error is to report the first as if it answered the second. A 4.5-point gap looks small on this sample. It grows on sites with accounts, saved carts, and reminder emails, where more carts come back. The sample is also obfuscated and five years old: it illustrates the method, not a market. Your own export will give other rates. So the unit and the window belong in the name of the rate, every time it's shown.

Why is the per-session rate wrong for the buyer question?

The session rate is simple to compute and correct for one question only: does the cart page work? It divides sessions with an add_to_cart and no purchase by all sessions with an add_to_cart. In January 2021, that gives 81.6% on the public sample, or 3,704 of 4,537 cart sessions. For December 2020 carts, it gives 81.2%, or 6,864 of 8,450.

The rate turns wrong when you read it as lost buyers. A visitor adds a jacket to the cart on Monday evening and leaves. On Thursday, the same visitor clicks a reminder email and pays. The session rate records Monday as an abandoned cart, and Thursday as a session without a cart. The visitor bought, and the report shows a loss.

Repeat carts add a second inflation. A hesitant visitor who fills the cart on three evenings counts three times. In the December cohort, 8,450 cart sessions belong to 7,113 users, so 1,337 sessions are repeats. A closed funnel adds a third distortion: it drops sessions whose cart came from a previous visit. That mechanism has its own article, closed or open funnel, and why the GA4 report overstates your losses.

The session rate still has its place on the cart page report. It reacts the day after a shipping banner changes or a button breaks. It just doesn't measure buyers.

Per user with a window: how long do carts take to come back?

A user-level rate counts a cart as converted when the same user buys within a set delay. That delay is the recovery window. On the public sample, 80.0% of the later purchases made within 30 days came within 7 days.

A recovery window is the period after a user's first cart during which a purchase by the same user counts that cart as converted. It starts at the cart event, not at the start of the session. Seven days and thirty days are the usual choices, and the window is written in the name of the rate.

The cohort is December 2020, because the sample ends on 2021-01-31. A cart filled on January 28 would have three days to convert, not seven. Every December cart has at least 31 days of follow-up in the sample. The query takes each user's first December cart and the first purchase that follows it. Timestamps are in UTC microseconds, hence 86,400,000,000 per day.

WITH events AS (
  SELECT
    user_pseudo_id,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS ga_session_id,
    event_name, event_date, event_timestamp
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201201' AND '20210131'
    AND event_name IN ('add_to_cart', 'purchase')
),
first_carts AS (
  -- each user's first cart of December 2020, with its session
  SELECT user_pseudo_id,
    ARRAY_AGG(STRUCT(ga_session_id, event_timestamp) ORDER BY event_timestamp LIMIT 1)[OFFSET(0)] AS cart
  FROM events
  WHERE event_name = 'add_to_cart' AND event_date < '20210101'
  GROUP BY user_pseudo_id
),
outcomes AS (
  SELECT
    LOGICAL_OR(p.ga_session_id = f.cart.ga_session_id) AS bought_in_cart_session,
    MIN(p.event_timestamp) - ANY_VALUE(f.cart.event_timestamp) AS delay_us
  FROM first_carts AS f
  LEFT JOIN events AS p
    ON p.user_pseudo_id = f.user_pseudo_id
   AND p.event_name = 'purchase'
   AND p.event_timestamp >= f.cart.event_timestamp
  GROUP BY f.user_pseudo_id
)
SELECT
  CASE
    WHEN bought_in_cart_session THEN '1. same session'
    WHEN delay_us IS NULL THEN '6. no purchase by 2021-01-31'
    WHEN delay_us < 86400000000 THEN '2. later session, under 1 day'
    WHEN delay_us <= 7 * 86400000000 THEN '3. 1 to 7 days'
    WHEN delay_us <= 30 * 86400000000 THEN '4. 7 to 30 days'
    ELSE '5. over 30 days'
  END AS first_purchase_after_cart,
  COUNT(*) AS users
FROM outcomes
GROUP BY first_purchase_after_cart
ORDER BY first_purchase_after_cart
First purchase after the first cart of December 2020Users
In the same session1,131
In a later session, under 1 day249
1 to 7 days174
7 to 30 days106
Over 30 days40
No purchase by 2021-01-315,413
Total users with a December cart7,113

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).

In total, 529 users bought in a later session within 30 days. Of those, 249 bought within one day, or 47.1%. Within 7 days, the share reaches 80.0%, or 423 of 529. A 7-day window therefore captures most of the recovery without waiting a month. The user key is user_pseudo_id, a browser cookie. A buyer who switched devices still counts as lost, so even the 30-day rate is a ceiling. How many days and sessions a purchase usually takes is covered in time to conversion: how many days and sessions before a purchase.

The SQL on the public sample, and the three results

One query computes the three rates, for the cart and for the checkout. It reads three events: add_to_cart, begin_checkout, and purchase. The session key is user_pseudo_id plus the ga_session_id parameter. The cohort is every step reached in December 2020, and January serves as follow-up. The query scans about 0.7 GB of the public sample.

WITH events AS (
  SELECT
    user_pseudo_id,
    (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS ga_session_id,
    event_name, event_date, event_timestamp
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20201201' AND '20210131'
    AND event_name IN ('add_to_cart', 'begin_checkout', 'purchase')
),
step_sessions AS (
  -- cohort: sessions that reached the step in December 2020; January is the follow-up
  SELECT step, user_pseudo_id,
    MIN(IF(event_name = step, event_timestamp, NULL)) AS step_ts,
    LOGICAL_OR(event_name = 'purchase') AS purchased_in_session
  FROM events, UNNEST(['add_to_cart', 'begin_checkout']) AS step
  GROUP BY step, user_pseudo_id, ga_session_id
  HAVING MIN(IF(event_name = step, event_date, NULL)) < '20210101'
),
step_users AS (
  SELECT u.step,
    LOGICAL_OR(p.event_timestamp BETWEEN u.first_ts AND u.first_ts + 7 * 86400000000) AS bought_7d,
    LOGICAL_OR(p.event_timestamp BETWEEN u.first_ts AND u.first_ts + 30 * 86400000000) AS bought_30d
  FROM (SELECT step, user_pseudo_id, MIN(step_ts) AS first_ts FROM step_sessions GROUP BY step, user_pseudo_id) AS u
  LEFT JOIN events AS p ON p.user_pseudo_id = u.user_pseudo_id AND p.event_name = 'purchase'
  GROUP BY u.step, u.user_pseudo_id
)
SELECT
  step, sessions, abandoned_sessions, users, abandoned_users_7d, abandoned_users_30d,
  ROUND(100 * abandoned_sessions / sessions, 1) AS session_rate_pct,
  ROUND(100 * abandoned_users_7d / users, 1) AS user_7d_rate_pct,
  ROUND(100 * abandoned_users_30d / users, 1) AS user_30d_rate_pct
FROM (SELECT step, COUNT(*) AS sessions, COUNTIF(NOT purchased_in_session) AS abandoned_sessions
      FROM step_sessions GROUP BY step)
JOIN (SELECT step, COUNT(*) AS users, COUNTIF(bought_7d IS NOT TRUE) AS abandoned_users_7d,
        COUNTIF(bought_30d IS NOT TRUE) AS abandoned_users_30d
      FROM step_users GROUP BY step)
USING (step)
ORDER BY step
Result, December 2020 cohortadd_to_cartbegin_checkout
Sessions reaching the step8,4504,362
No purchase in the session6,8642,247
Abandonment per session81.2%51.5%
Users reaching the step7,1133,859
No purchase within 7 days5,5591,901
Abandonment per user, 7 days78.2%49.3%
No purchase within 30 days5,4531,874
Abandonment per user, 30 days76.7%48.6%

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). Rates rounded to one decimal by the query.

Changing the unit alone doesn't lower the rate. Per user and without a window, the cart rate is 84.1%. That is 5,982 of 7,113 first-cart sessions without a purchase, from the recovery query. A user's first cart converts less often than later ones, which include returning buyers. The window is what lowers the rate: 3.0 pp at 7 days, 4.5 pp at 30 days. The same query, run on your own export, gives your three numbers in one pass.

How does cart abandonment differ from checkout abandonment?

Cart abandonment and checkout abandonment measure two different losses, and they don't move together. Cart abandonment includes browsers who used the cart as a wish list. Checkout abandonment starts once the visitor has committed to buy. For December 2020, per session, the two rates are 81.2% and 51.5%.

Checkout abandonment is the share of checkouts that did not end in a purchase, within the same scope and window as cart abandonment. It starts at begin_checkout, not at add_to_cart. It isolates visitors who committed to buy and then stopped, which makes it the rate of the checkout pages.

DefinitionCart abandonmentCheckout abandonmentGap between the two
Per session81.2%51.5%29.7 pp
Per user, 7 days78.2%49.3%28.9 pp
Per user, 30 days76.7%48.6%28.1 pp
Fall from session to 30 days4.5 pp2.9 pp—

Derived on 2026-10-15 from the three-definition query on the public sample bigquery-public-data.ga4_obfuscated_sample_ecommerce (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data), December 2020 cohort.

The window lowers the checkout rate less than the cart rate: 2.9 pp against 4.5 pp. A visitor who stops in checkout often hit a blocker: a fee, a form, a failed payment. That visitor comes back less often than one who was only comparing. In January 2021, the open funnel gives 48.4% checkout abandonment per session on the sample. Reporting one rate under the other's name is the most common confusion in funnel reviews. The two rates also call for different owners: merchandising for the cart, the checkout team for the checkout.

Which cart abandonment rate should you show the board?

Show two rates: the session rate for the cart page, and the 7-day user rate for buyers. The first moves the day after a site change. The second says how much intent is truly lost, once a week has passed. The 30-day rate is only 1.5 pp lower on the sample, and arrives a month late.

RateQuestionFinal afterWho reads itDecember 2020 cohort
Cart, per sessionDoes the cart page work?The same daySite and product teams81.2%
Cart, per user, 7 daysDo visitors buy what they carted?7 daysBoard, e-commerce lead78.2%
Cart, per user, 30 daysHow many carts are lost for good?30 daysQuarterly review76.7%
Checkout, per user, 7 daysDoes checkout keep committed buyers?7 daysBoard, checkout owner49.3%

A 7-day rate on a weekly slide must stop 7 days before the report date. The last week's carts aren't final yet, and including them inflates the rate. Each rate keeps its unit and window in its title, such as "cart abandonment, user, 7 days". Written once in the data model, the definition then stays the same from one review to the next. A public benchmark mixes dozens of units and windows, so it matches none of these rates. Why your rate only compares to itself is the subject of Cart abandonment rate: the public benchmarks, and why yours only compares to itself.

FAQ

Why does my cart abandonment rate differ from the GA4 funnel report?

The GA4 funnel exploration counts users, not sessions, and follows the step order you set. It reports only the first sequence of steps in the date range. A step can also carry a "Within" time limit. Your SQL rate matches it only with the same unit, order, and window. Write those three settings next to both numbers before you compare them.

Can I use view_cart instead of add_to_cart?

You can use view_cart if every cart page fires it, but the rate then describes another moment. The view_cart event fires when the visitor opens the cart, often well after the add. It counts fewer carts, closer to checkout. Sites with a mini-cart and no cart page can't use it at all. Keep one event per rate, and write that event in the rate's name.

Is a 7-day window right for products people think about for weeks?

A 7-day window fits when most late purchases arrive within a week. You can check that on your own data. Run the recovery query and find the delay after which few users still buy. On the public sample, 80.0% of later purchases within 30 days came within 7 days. A long-consideration catalog may need 14 or 30 days. Once chosen, keep the window fixed, or two periods stop being comparable.

How do I count recovered carts for visitors who never log in?

Without a login, the user is a browser cookie, user_pseudo_id, and a device switch breaks the link. A cart on a phone and a purchase on a laptop count as an abandoned cart. If your site sends a user_id at login, use it as the user key where it exists. The abandonment rate can then only fall, so the cookie-based rate stays a ceiling.

The rest of the funnel, step by step, is in E-commerce checkout funnel: step-by-step drop-off analysis with GA4. To run these three rates on your own raw GA4 export, with definitions written once: Book a diagnostic.

Sources