Measuring the checkout process in GA4: checkout and purchase
Contents
The checkout process is measured with six events: view_cart, begin_checkout, add_shipping_info, add_payment_info, purchase and refund. They show at which step people drop off and how much is sold, provided each purchase is sent only once and with consistent amounts.
This article is part of the GA4 ecommerce guide. It is written for the people who decide what to measure; the technical detail appears under "For the technical team". CookingMetrics offers audits and support and does not sell tools. The Google pages consulted on November 16, 2026 show no update date.
In summary
view_cartis the cart view;begin_checkout, the start of payment;add_shipping_infoandadd_payment_info, the choice of shipping and of payment.purchaseis the purchase; according to Google, itstransaction_idis required.- The
valueofpurchasemust be the sum of price times quantity, excluding shipping and taxes. refundrecords a return and also requirestransaction_id.- The purchase must be sent only once; reloads of the thank-you page are the classic cause of duplicates.
- GA4 totals and those of the order system may not match exactly; a large difference points to a problem.
What problem it solves
This is the part of the journey where losing a person costs the most. If each step is measured, you can see where people drop off: at the cart, when choosing shipping, when choosing payment. If only the purchase is measured, you see how much is sold, but not why sales stop.
What data each event carries
According to the official GA4 reference:
view_cart,begin_checkout,add_shipping_infoandadd_payment_infocarryitems, andcurrencyandvalue, with the note thatcurrencyis required ifvalueis sent.begin_checkout,add_shipping_infoandadd_payment_infoacceptcoupon.add_shipping_infoacceptsshipping_tier(for example, ground, air or next day).add_payment_infoacceptspayment_type, the payment method chosen.purchasecarriestransaction_id(required),items,currencyandvalue, and acceptscoupon,shipping,taxandcustomer_type(new or returning, which should not be sent if in doubt). According to Google,valueis the sum of price times quantity, excluding shipping and taxes.refundcarriestransaction_id(required),currencyandvalue;itemsis optional, but the reference recommends it to see return metrics by product.
Questions that can be answered
- At which step is most of the people who start payment lost, comparing the counts of one event with those of the next?
- Which shipping or payment options do people choose, and in which are they most likely to drop off?
- Which products have the most returns, if the refund carries
items?
These ratios have no "normal" value; they are useful for comparing the same site over time.
The mistakes that cost the most
In his original guide, Martín Garay gathers advice that matches common practice: a unique transaction_id, the same currency in all events, detail for each product, not counting views of the thank-you page as transactions, discarding reloads and firing purchase only once. These are the author's criteria, not phrases from Google, and we share them with one warning: the monthly comparison between store orders and GA4 purchases is the best proof that sending works.
For the technical team: example of purchase with consistent amounts.
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: "purchase",
ecommerce: {
transaction_id: "T-10045",
currency: "USD",
value: 110.0,
shipping: 8.0,
tax: 9.5,
items: [
{ item_id: "SKU-001", item_name: "Taza de cerámica", price: 40.0, quantity: 2 },
{ item_id: "SKU-002", item_name: "Taza esmaltada", price: 30.0, quantity: 1 }
]
}
});
- In the example,
valueis 40 × 2 + 30 × 1 = 110, excluding shipping and taxes. - Store in the session or in the order the fact that
purchasehas already been sent for thattransaction_id, and do not resend it when the page is reloaded. - Send
refundfrom the order system or from the backend with the sametransaction_idas the purchase; partial refunds must carry only the returned products. - If there are several payment or shipping methods, normalize the values of
payment_typeandshipping_tier.
Limits and risks
- Totals will not match exactly with the order system: there are blockers, consent refusals and exits before confirmation.
- A duplicate inflates revenue without warning.
- The effect of a refund on reports is not developed here: we did not verify it in the documentation consulted.
- Official pages without a date. It is worth rereading them before implementing.
- Consent and privacy: what can be measured depends on the visitor's consent and on the applicable regulations.
What to do next
Compare, for the last month, the number of orders in the system with the number of purchase events in GA4. If the difference is large, start by checking duplicates and consent. To go back to the map, read the GA4 ecommerce guide. If you would like us to review your measurement, see our Google Analytics audit service.
Frequently asked questions
What is required in purchase?
According to Google, transaction_id is required; currency is required if value is sent, and items is required.
What should value include in a purchase?
The sum of price times quantity of the products, excluding shipping and taxes, according to Google's reference.
Why don't my GA4 purchases match my orders?
There may be duplicates, reloads, consent refusals or blockers. A small difference is to be expected; a large one points to a problem.
Do refunds need to be measured?
It is optional. If they are measured, the transaction_id must match that of the purchase; including items makes it possible to see returns by product.