HeyMark
Content

Blog Ecommerce

Cart abandonment rate: formula and example

HeyMark3 min read
A basket containing a towel beside a shop counter and payment terminal.

In a session-based measurement, cart abandonment rate is the share of sessions that added a product and did not record a purchase within the chosen window. There is no single rule for every report. Here, sessions with add_to_cart are the base, and we look for purchase in that same session, within the defined measurement window.

Cart abandonment (%) = sessions with add_to_cart and no purchase in the window ÷ sessions with add_to_cart × 100.

Example: 100 sessions with a cart

Suppose a week includes 100 sessions with at least one add_to_cart event. In 35 of those same sessions, a purchase event is recorded before the business’s chosen measurement window ends. A later purchase in another session is not counted as a purchase within the cart session.

(100 − 35) ÷ 100 × 100 = 65% cart abandonment.

Use sessions for both sides of the calculation: do not compare 100 cart sessions with 35 users or 35 orders. Set the window before comparing results. If a purchase falls outside it or happens in another session, that session counts as abandoned under this convention. Sessions without add_to_cart are outside the base; if there are none, the rate is undefined, not 0%.

Cart and checkout answer different questions

Cart abandonment starts with a session that added a product. Checkout abandonment starts later, after someone begins payment. In Google Analytics 4, the Checkout journey report follows users who began with begin_checkout and shows the drop between one step and the next. For example, if 80 users begin checkout and 60 reach the next step, abandonment at that step is (80 − 60) ÷ 80 × 100 = 25%. That 25% does not replace the 65% in the earlier example: it uses checkout users, a later step, and a different denominator. GA4 documents the report and its steps.

For the checkout report, GA4 needs events such as begin_checkout, add_shipping_info, add_payment_info, and purchase. The standard report includes users who started at its first step; use a custom funnel if your question needs a different entry or rule. See Analytics’ recommended ecommerce events.

What to check when abandonment rises

First confirm that events arrive once and represent the same purchase. Then filter by step, device, and traffic source to locate where people drop off. If the largest loss appears when shipping is shown or payment details are requested, inspect that specific step. Google lists unexpected shipping costs and requiring sign-in as possible friction points. They are hypotheses to investigate in your checkout, not causes proved by the rate.

The percentage summarizes the sessions you defined; on its own, it does not explain why people left or how many would have bought. Compare periods using the same window, events, and session rules. Record any measurement change next to the result.

The 100 sessions, 35 purchases, 80 users, and 60 step completions are fictional figures to show the two calculations. They do not describe a real store or an expected average.

The cover is an AI-generated illustration.

Plan your next post in HeyMark.

Keep the idea, review the draft with your team, and see how it performed in the accounts you connected.