GA4 ecommerce tracking records product interactions, basket activity, checkout progress and purchases through configured events. It shows where shoppers drop out and which products generate revenue when your implementation sends consistent, accurate data. Include a unique transaction_id with each completed order.
Installing a Google tag alone doesn’t collect the full shopping journey. Your platform integration or custom implementation must send the right events and product details. Start with the event sequence, then test it against actual orders.
Key takeaways
- Measure browsing, basket changes, checkout, purchases and refunds using Google’s recommended event names.
- Send consistent product identifiers, accurate values and a unique
transaction_idfor each order. - Test complete journeys, including failed payments, page refreshes and partial refunds.
- Use your commerce platform as the order ledger; GA4 explains observed shopping behaviour.
The ecommerce events every store should measure
Each event describes a different shopping action. Include an items array with the relevant products, and provide at least item_id or item_name for each one. Sending both makes reporting easier.

Use this sequence to cover the buying journey.
| Event | When to send it | Useful details alongside items |
|---|---|---|
view_item_list | A product list appears | item_list_id, item_list_name |
select_item | Someone selects a listed product | List identifier and selected item |
view_item | Product details appear | value, currency |
add_to_cart | Products enter the basket | Added quantity, value, currency |
remove_from_cart | Products leave the basket | Removed quantity, value, currency |
begin_checkout | Checkout starts | coupon, value, currency |
add_shipping_info | Shipping information is submitted | shipping_tier, value, currency |
add_payment_info | Payment information is submitted | payment_type, value, currency |
purchase | An order completes successfully | transaction_id, value, currency |
refund | A completed order is refunded | Original transaction_id, refunded items |
The path from view_item to add_to_cart shows where product interest becomes basket activity.
The extra fields aren’t universally required. However, currency is necessary when sending a monetary value.
For basket events, the items array should contain only the products changed by the basket action. Checkout and purchase events should describe the relevant order contents.
Keep the item_id stable across every step. Otherwise, GA4 can’t reliably connect product interest with subsequent purchases.
Get purchase and refund parameters right
Build a complete purchase payload
For revenue reporting, send transaction_id, value, currency and items with every purchase. Google’s structural requirements identify transaction_id and items; monetary reporting also needs accurate value and currency.
Within each item, send item_id, item_name, price and quantity. The minimum identifier requirement is item_id or item_name, but a fuller record supports useful product analysis.
Calculate value as the sum of item price multiplied by quantity, excluding shipping and tax. Send those charges separately through shipping and tax. Use an ISO currency code, such as GBP, rather than a currency symbol.
Connect refunds to the original order
Use refund, not ecommerce_refund, and include the original transaction_id. Add item_id and refunded quantity for item-level refund metrics.
For partial refunds, describe only the refunded products and amounts. Keep refund processing connected to the system that owns order adjustments.
A browser tag can’t observe a refund issued later through an administration screen. That needs platform support or a backend implementation, potentially through GA4’s Measurement Protocol.
Our first-party ecommerce data guidance explains why orders, refunds and customer records need clear ownership across connected systems.
Choose your GA4 ecommerce tracking setup route
Shopify and WooCommerce integrations
On Shopify, connect your GA4 property through Google & YouTube and complete the analytics configuration. Supported ecommerce events then flow through the integration. Avoid adding another manual purchase implementation alongside it.
For WooCommerce’s Google Analytics integration, enter your GA4 Measurement ID under WooCommerce > Settings > Integration > Google Analytics. Configure its tracking options before testing the storefront.
Neither platform removes the need for validation. Themes, checkout changes and extensions can affect event coverage. Refund reporting also depends on whether the integration receives backend refund activity.
Assign one integration responsibility for each event. Two plugins sending the same purchase can inflate revenue.
Google Tag Manager or direct implementation
A custom storefront usually benefits from developer involvement. The implementation must expose product, basket and order information when each action happens.
With Google Tag Manager, structured ecommerce data commonly enters through the data layer. A Google Analytics: GA4 Event tag then reads the event name and parameters, including items, from that data.
Direct implementations can send the same recommended events through gtag.js. Whichever route you choose, document event triggers, field names, currency treatment and product identifiers so they match the data layer schema.
Also specify consent behaviour and duplicate prevention. Event names are case-sensitive, so Purchase and purchase aren’t interchangeable.
Validate events before trusting revenue

Inspect the event and its contents
For GTM implementations, open Preview and connect Tag Assistant. Follow the shopping journey, then check that each data layer event has the expected name and ecommerce parameters. Use GA4’s DebugView to inspect incoming events.
Open each event and inspect its parameters. A visible purchase event doesn’t prove that revenue or item data is correct.
Confirm that quantities and prices are numbers, the currency is present, and items contains product objects. Compare each product ID with the catalogue.
Test consent rejection, acceptance and withdrawal too. Our Google Consent Mode guidance covers consent-state testing alongside tag behaviour. Never send customer names, email addresses or postal addresses as analytics parameters.
Reconcile realistic orders and exceptions
Complete controlled orders using different quantities, discounts and delivery options. Include address changes, failed payments and a partial refund.
Record the order ID, product subtotal, tax, shipping and refund amount. Then compare those fields with the events received.
Refresh the confirmation page and revisit it later. A second purchase event indicates a trigger problem.
A confirmation page can appear repeatedly; the underlying order should create only one purchase.
Keep one integration responsible for purchases, and tie its trigger to confirmed order completion. A unique transaction_id supports deduplication, but doesn’t replace correct triggering.
Google’s current ecommerce guidance allows up to 24 hours for reports and explorations to populate. DebugView provides immediate implementation feedback.
Read ecommerce reports without mixing metrics
Separate product revenue from order totals
In the standard Life cycle collection, open Reports > Monetization > Ecommerce purchases. This report helps compare product performance. Navigation can differ when someone has customised the report collection.
Google’s GA4 metric definitions distinguish item-scoped measures from event-scoped measures. Gross item revenue covers product sales and excludes tax and shipping.
Therefore, compare like-for-like figures when reconciling analytics with your order system. An order total and product revenue answer different questions.
Average order value is purchase revenue divided by ecommerce purchases. Keep the revenue definition consistent across reporting periods, especially when refunds affect comparisons.
Use funnels to find checkout friction
Open Reports > Monetization > Purchase journey to inspect the buying sequence. For a tailored view, build a Funnel exploration with your chosen steps.
Use product views and basket additions to measure view-to-basket performance. Compare checkout starts with purchases to assess checkout completion.
Define cart abandonment using the same population throughout. For a user-based funnel, compare conversion rate from basket users to purchasers. Calculate the share who don’t reach purchase within your selected conditions.
For purchase conversion rate, use session key event rate with purchase selected. Don’t substitute an all-key-events rate that includes unrelated actions.
Segment conversion rate by device only when volume supports a meaningful comparison.
Keep historical data and product detail usable
Set retention for useful comparisons
Standard GA4 properties offer two-month and 14-month retention options for event-level data. User-level retention also has a maximum of 14 months.
These settings affect explorations and user-level analysis, rather than standard aggregated reports. Choose deliberately before relying on longer-term customer analysis.
Google’s data retention guidance explains the available controls. Extending retention doesn’t restore data already deleted.
For longer-term raw-event analysis, consider BigQuery export. Google’s BigQuery export schema describes the exported fields. Export starts collecting prospectively, so it won’t recover an unavailable history.
Add custom item details selectively
GA4 supports up to 27 custom parameters within the items array. Standard properties allow 10 registered item-scoped custom dimensions; Analytics 360 allows 25.
Use these for product attributes that support decisions, rather than copying every catalogue field. Standard parameters already cover details such as brand, category and variant.
For B2B stores, quote requests and account approvals may also matter. Track those separately instead of forcing them into purchase events.
Frequently asked questions
Why does the item name show “(not set)”?
GA4 may receive an item ID without an item name, or receive the name in the wrong place. An event-level item_name doesn’t replace the field inside each item object.
Inspect the affected event’s items array. Send item_name consistently across browsing, basket, checkout and purchase events. Then validate newly collected data; correcting the implementation won’t repair historical records.
Has Google Analytics been discontinued?
GA4 continues to operate. Standard Universal Analytics properties stopped processing new data on 1 July 2023.
Existing Universal Analytics Enhanced Ecommerce actions need mapping to GA4’s recommended events, with matching parameters and item data. Legacy Universal Analytics tags don’t automatically populate GA4 ecommerce reports. Validate newly collected GA4 data after making changes.
Build confidence before adding more tracking
Useful ecommerce measurement depends on trusted events across the buying journey. Accurate purchase values and connected refunds matter more than a large event catalogue.
Start with the recommended sequence, give one integration ownership, and reconcile controlled orders with the data received. Once those foundations hold, GA4 can help you identify checkout friction without confusing tracking faults with customer behaviour.




