Audience and prerequisites
Define checkout stages that match real page transitions, then test order, step identifiers and abandonment so reloads do not inflate the funnel. You need the store's real checkout state transitions, the implementation route (gtag.js or GTM), and a test order that can be safely abandoned. Skill level: intermediate. Reading time: seven minutes.
1. Define the stages from application state
Map only meaningful transitions. Google's ecommerce guidance uses begin_checkout when checkout starts, add_shipping_info when the customer adds shipping information, and add_payment_info when payment information is submitted. Use purchase only after the order is confirmed. A site that has no shipping step should not manufacture one to fill a funnel.
Write the condition that proves each transition completed. A click on “Continue” may fail validation; a payment form opening does not mean payment information was submitted. Decide whether returning to a prior step should create another event or be treated as a repeat, and ensure each rule is testable.
2. Carry the correct item and value context
Use the current recommended-event reference for each stage's parameters. Checkout events can carry an items array. If you send monetary value, calculate it according to Google's ecommerce definition and include matching three-letter currency; do not assume tax and shipping are included. Avoid adding fields just because the checkout form contains them.
Direct Google tag (gtag.js)
A direct event call belongs after the relevant state transition, for example when checkout has actually begun:
gtag('event', 'begin_checkout', {
items: [{ item_id: 'SKU_001', quantity: 1 }]
});Use the actual items and documented event fields. Do not reuse this example as the purchase event; purchase has its own transaction requirements.
Google Tag Manager
With GTM, the application may push a generic event and ecommerce values to the data layer after the state changes. Configure a matching trigger and GA4 Event tag for each event. The push is not itself a GA4 event, and direct calls plus GTM tags for one stage can double count.
3. Test the funnel paths
Use Preview or Tag Assistant to test normal progression, invalid data, back navigation, abandoned checkout, and failed payment. Confirm each event fires only when its condition is met, with the expected items and at most one event per transition. Check receipt in the intended GA4 DebugView. A test-session event is not a guarantee that all reports or business records reconcile.
If a stage is missing, compare the actual state transition with the trigger. If the funnel jumps forward on a failure, move the event to the success callback. If counts multiply, inspect retries, page reloads, and overlapping implementations.
Privacy and limits
Do not send card numbers, credentials, names, addresses, or free-text checkout content. Apply consent before optional measurement according to the site's policy. Funnel definitions describe the site's instrumentation; reconcile purchases with the order system for financial reporting.
Related work
For the earlier product-list and item-view steps, see Model GA4 item views and product-list events. Use Implement a GA4 purchase event for the final order event.
Official references
- Measure ecommerce Checked November 10, 2026
- Recommended events: begin_checkout Checked November 10, 2026
- GA4 ecommerce events Checked November 10, 2026
What changed
- v1.0.0Initial bilingual guide drafted and checked against current official Google documentation.