Tracking

GA4 checkout events: begin_checkout to purchase, done right

GA4 measures checkout with four recommended events: begin_checkout, add_shipping_info, add_payment_info and purchase. Each needs items, and currency whenever you send value. Purchase also needs a transaction_id, which GA4 uses to deduplicate repeat purchase events from the same user. Send one purchase per order with a unique, non-empty ID, and your checkout funnel and revenue will line up with real orders.

Updated 4 min readBy the NoHold Checkout team
On this page 10

Key takeaways

  • All four events need items; set currency whenever you send value, or revenue metrics won't compute correctly.
  • transaction_id is required on purchase and deduplicates purchases with the same ID from the same user.
  • Never send an empty transaction_id: GA4 deduplicates all purchases with transaction_id="" together.
  • value should be the sum of item price x quantity, with shipping and tax sent in their own fields.

The four checkout events

begin_checkout
When to fire it
Checkout page loads with the cart
Required per Google's reference
items; currency and value (conditionally)
Useful extras
coupon
add_shipping_info
When to fire it
Shopper submits or selects shipping
Required per Google's reference
items; currency and value (conditionally)
Useful extras
shipping_tier, coupon
add_payment_info
When to fire it
Shopper submits payment details or picks a method
Required per Google's reference
items; currency and value (conditionally)
Useful extras
payment_type, coupon
purchase
When to fire it
Payment confirmed
Required per Google's reference
transaction_id, items; currency and value (conditionally)
Useful extras
tax, shipping, coupon, customer_type
From Google's GA4 events reference. "Conditionally": if you set value, currency is required for revenue metrics to compute accurately.

Each item needs at least item_id or item_name; Google recommends sending both. Keep IDs consistent with what you send on view_item and add_to_cart, or product reports won't join up across the funnel. If your store sends variant-level IDs on product pages, send the same variant IDs at checkout, not parent product IDs. Also keep item prices in the same currency as the event's currency parameter; a cart shown in euros with item prices sent in dollars produces revenue figures nobody can reconcile.

What a correct purchase event looks like

gtag('event', 'purchase', {
  transaction_id: '10482',
  value: 118.00,          // items only: 2 x 49.00 + 1 x 20.00
  tax: 9.44,
  shipping: 6.90,
  currency: 'EUR',
  coupon: 'WELCOME10',
  items: [ { item_id: 'SKU-COAT-M', item_name: 'Wool coat', price: 49.00, quantity: 2 },
           { item_id: 'SKU-SPRAY', item_name: 'Care spray', price: 20.00, quantity: 1 } ]
});

Google's reference says value should be the sum of price times quantity for all items, excluding shipping and tax, which go in their own parameters. If you send the grand total as value and also send tax and shipping, you'll overstate revenue in item-level reports.

How transaction_id deduplication works

Google's ecommerce help says that by adding a transaction ID, Google Analytics deduplicates purchases registered with the same ID from the same user. That's what protects you from a thank-you page reload, or a browser and a server both sending the same order. Three rules follow from Google's guidance:

  1. Unique per order. Reusing an ID across different transactions can significantly undercount conversions.
  2. Never empty. GA4 deduplicates all purchase events with transaction_id="" together, so a blank ID collapses unrelated orders.
  3. Don't reuse across users. Google's help says the same ID shouldn't be used across different users.

Deduplication only catches identical IDs. If one sender uses the order number and another uses a payment ID for the same order, GA4 counts both. The fix is to pick one sender for purchase, or make both use the same ID. The same principle drives Meta's event_id deduplication.

Reading the checkout funnel

With all four events in place, you can build a funnel exploration from begin_checkout to purchase and see where shoppers drop. A hypothetical week:

begin_checkout:     2,000
add_shipping_info:  1,380   (69% of starts)
add_payment_info:   1,020   (74% of shipping)
purchase:             890   (87% of payment)
Overall checkout completion = 890 / 2,000 = 44.5%

The biggest drop here is between starting checkout and choosing shipping, which usually points at shipping cost surprises or a long contact form. See shipping rates at checkout and checkout abandonment causes for what to fix. Compare the same funnel by device category before acting: a drop that only appears on mobile usually means a layout or payment-method problem rather than a pricing one.

Refunds and upsells

Google's ecommerce guide includes a refund event, and notes that transaction_id is required for purchases and refunds. Send a refund with the original order's transaction_id when you refund, with items and value for a partial refund. Without it, GA4 revenue stays inflated by everything you gave back, which matters for stores with high return rates such as apparel.

Post-purchase upsells are a separate decision. If an accepted upsell creates its own order, send it as its own purchase with its own transaction_id. If you send it under the original order's ID, GA4 treats it as a duplicate of the first purchase and drops it.

Hypothetical order 10482: purchase, value 118.00, transaction_id '10482'
Accepted upsell, own order 10483: purchase, value 24.00, transaction_id '10483'
Later partial refund on 10482: refund, transaction_id '10482', value 49.00, items [coat x1]
Net revenue reported = 118.00 + 24.00 - 49.00 = 93.00

Browser or server?

Most stores send GA4 events from the browser with gtag.js or Google Tag Manager. Google also offers a server-side option for sending events from your backend. Server events don't depend on the browser, but they need the shopper's GA4 client ID to join the existing session, otherwise each server purchase looks like a new user with no traffic source. If you use both, make sure only one of them sends purchase for a given order, or that they share the same transaction_id so GA4 can deduplicate.

Common mistakes

  • Missing currency while sending value. Revenue shows as zero or wrong.
  • Firing purchase on page load of a confirmation URL that shoppers can revisit, without a stable transaction_id.
  • Firing add_payment_info on page load instead of when payment is actually entered or chosen; it inflates that step.
  • Mixing currencies in one property without sending the right currency per event.
  • Item IDs that differ between product pages and checkout, so funnels and product reports don't match.
  • Checkout on another domain without cross-domain setup, so the session splits and purchases look like direct traffic.
  • Consent mode ignored in regions where consent is required, leading either to compliance problems or to unexplained gaps.

When the checkout isn't Shopify's

If your checkout runs outside Shopify, the GA4 integration inside Shopify won't see these four events. The checkout has to send them, ideally with the shopper's existing GA4 client ID so the session continues. With NoHold Checkout, the "NoHold sends everything" tracking mode sends GA4 events from the checkout along with Meta, TikTok and Google Ads, with a cookie consent banner; the default mode instead relies on your store's apps for storefront events and Whop's integration for the purchase. The trade-offs are covered in tracking with a custom checkout.

Pre-launch checklist

  1. Open GA4 DebugView and complete a real test order.
  2. Confirm each of the four events appears once, in order, with items, value and currency.
  3. Confirm purchase has the real order number as transaction_id.
  4. Reload the confirmation page; confirm no second purchase is counted in reports the next day.
  5. Compare one day of GA4 purchases with store orders; investigate gaps above what consent refusals explain.

Frequently asked questions

Is transaction_id required for GA4 purchase events?

Yes. Google's GA4 events reference marks transaction_id as required for purchase. It identifies the order and lets GA4 avoid counting duplicate purchase events with the same ID from the same user. Use the real order number or another value that's unique per order, and never send it empty.

Should GA4 purchase value include tax and shipping?

Google's reference describes value as the sum of item price times quantity, excluding shipping and tax, with those sent in the separate tax and shipping parameters. Including them in value as well inflates revenue in item-level analysis. Check how your reports define revenue before changing an existing setup.

Why does GA4 show fewer purchases than my store?

Common causes are shoppers who declined analytics consent, ad blockers, a checkout on another domain without cross-domain measurement, the purchase event firing before the page fully loads, or reused transaction IDs that get deduplicated. Compare a single day order by order to find which one applies.

Do I need all four checkout events?

Only purchase is essential for revenue, but begin_checkout, add_shipping_info and add_payment_info let you see where shoppers drop out of checkout. Without them you know how many bought, not why the others didn't. They are cheap to add and make checkout problems visible.

Sources

  1. Google Analytics: Measure ecommerce (developer guide)
  2. Google Analytics: Recommended events reference
  3. Google Analytics Help: Measure ecommerce

Keep reading