Table of contents
Every eCommerce store generates data the moment a visitor lands on a product page.
Google Analytics for eCommerce turns that activity into revenue metrics, sales performance data, and a clear view of how customers interact with your store.
This guide explains how eCommerce analytics works in GA4, from setup through the reports that turn store data into decisions.
Key takeaways
-
GA4 replaced Universal Analytics, and eCommerce tracking now runs on events rather than as an add-on.
-
A working setup needs a GA4 property, a Google Tag Manager container, and a data layer configured with the right eCommerce parameters.
-
Six core events, view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info, and purchase, capture the full purchase journey.
-
Average order value, eCommerce conversion rate, and revenue metrics are the KPIs most eCommerce businesses check first.
-
Custom reports and a regular review cadence turn raw eCommerce data into concrete business decisions.
What Google Analytics 4 changed for eCommerce tracking
Universal Analytics measured sessions and pageviews as the baseline metrics. Google Analytics 4 (GA4) treats every action, a product view, an add to cart, and a completed purchase as an event.
This event-based tracking model provides eCommerce businesses with more detailed data on the customer journey, from the first landing page visit to the final purchase.
That change matters for reporting, too. Universal Analytics relied on enhanced eCommerce tracking as an add-on feature. In GA4, eCommerce parameters are built into the event structure itself, so eCommerce event data populates dimensions and metrics automatically once data collection is configured correctly.
How to set up Google Analytics 4 for your online store

Setting up Google Analytics for an eCommerce website starts with creating a GA4 property, which takes a few minutes at analytics.google.com. Once the property is created, connect it to your site by adding the Google tag, either directly to your theme code or through Google Tag Manager (GTM).
Most eCommerce platforms document their own connection steps. Shopify, WooCommerce, and BigCommerce all support the Google tag through native integrations or plugins, and Google Tag Manager serves as a universal layer that sits between your store and any analytics or marketing platform you connect to.
Tip: Still weighing where to build your store? Our guide to the best eCommerce platforms compares the options before you commit to a Google Tag setup.
Set up a Google Tag Manager container
Google Tag Manager containers hold every tag, trigger, and variable used to pass data from your site to GA4. To enable eCommerce tracking, you first need a GA4 Configuration tag inside that container, configured to point to your property’s measurement ID.
Once the configuration tag fires on every page, GA4 automatically collects baseline engagement data through Enhanced Measurement, page views, scrolls, and outbound clicks, but eCommerce actions still need to be set up separately. This is where the data layer comes in.
Pass eCommerce data through the data layer
The data layer is a JavaScript object on your site that holds product and transaction details, like item name, price, and quantity, so Google Tag Manager can read and pass data to GA4.
When a customer adds a product to their cart, your site pushes an add_to_cart event and its associated items array into the data layer. GTM then reads that object and fires the matching GA4 event tag.
According to Google’s documentation, event-level parameters (such as the total amount a customer spent) are outside the items array, while item-level parameters (like an individual product’s price) are inside it.
The 6 eCommerce events every online store should track
GA4’s eCommerce reporting depends on specific eCommerce events. Sending these six in sequence gives you a complete purchase journey and a clear read on shopping behavior, from browsing to completed transactions.
-
view_item – A customer views a product page
-
add_to_cart – A product is added to the cart
-
begin_checkout – Checkout starts
-
add_shipping_info – Shipping details are entered
-
add_payment_info – Payment details are entered
-
purchase – The transaction completes
GA4 also lets you mark any of these as a key event, its version of what Google Analytics called goals for an eCommerce site under Universal Analytics, so the action counts as a conversion in your reports.
Each event includes eCommerce parameters describing products, categories, and pricing. Sending item_category consistently, for instance, lets you compare performance across product categories rather than individual SKUs.
You can layer in additional events, too. view_promotion and select_promotion measure how internal promotions and banners influence conversion events, while refund measures full and partial returns against the original transaction.
Key eCommerce metrics and KPIs to monitor

Once eCommerce tracking is live, a handful of key metrics show how users interact with your store and reveal your online store’s performance at a glance. These key performance indicators (KPIs) are what eCommerce businesses check most often to catch problems early.
How many users are visiting, and where they come from
Start with the basics: how many users visited your site, which marketing channels sent them, and how they moved through your eCommerce site before converting.
GA4’s acquisition reports break this down by channel, so you can see whether organic search, paid social, or email is driving your best traffic. This is also where you catch underperforming marketing efforts before they drain your marketing ROI.
Average order value and total revenue
Average order value (AOV) measures how much customers spend per transaction, calculated as total revenue divided by the number of orders. The global average AOV sits around $145 across all industries, though the figure swings widely by category – luxury goods sell for far more per order than everyday accessories.
Track your average order value over time against total revenue to understand whether upsells, bundles, or adjustments to shipping costs are actually moving the number.
eCommerce conversion rate and where users drop off
Your eCommerce conversion rate is the number of completed purchases divided by the total sessions. Comparing conversion rate at each step, view to cart, cart to checkout, checkout to purchase, shows exactly where users drop off and where customer behavior breaks down.
High cart abandonment rates paired with healthy add to cart rates usually point to friction at checkout rather than a product problem. Cart abandonment across eCommerce sites averages around 70%, so even small improvements to that step compound quickly.
Product performance and revenue metrics
The Monetization section of GA4 is where eCommerce performance becomes specific numbers: product revenue, items viewed, and items purchased at the item level, traced to the individual user interactions behind each listing.
This is where product performance data becomes actionable. If one product category consistently drives higher revenue metrics per visitor, that category deserves more marketing budget and better placement on your landing page.
User engagement and user lifetime value
User engagement metrics, such as engaged sessions and average engagement time, indicate whether customers actually explore your store or leave quickly.
Paired with user lifetime value reporting, this data helps you distinguish one-time buyers from customers who are building a longer purchase journey with your brand.
Build custom reports for marketing and customer insights

GA4’s Explore section lets you build custom reports with dynamic data views beyond what’s built in by default. Merchants running seasonal campaigns can build a report that filters eCommerce data by campaign source, showing exactly which campaigns drove completed purchases rather than just clicks.
Custom reports also help with customer segmentation and provide valuable insights beyond the default templates. Filtering by new versus returning customers, or by geographic location, gives you customer insights that inform where to spend on ads and which product categories to feature in region-specific promotions.
Google Analytics eCommerce reports built this way pull accurate data directly from your store’s own activity.
Turn eCommerce data into business decisions
The value of Google Analytics eCommerce tracking is in providing real data to support decisions. If a product page has strong traffic but a low add-to-cart rate, that points to a pricing, image, or copy problem worth testing.
If checkout abandonment spikes on mobile specifically, that’s a signal to review your mobile checkout flow before it turns into lost sales.
Review these reports on a regular cadence, weekly for fast-moving metrics like conversion rate, and monthly for slower ones like customer lifetime value. That will keep data-driven decisions part of the routine and spare you trouble during audits.
Store owners scaling a print-on-demand business benefit especially from this discipline, since product catalogs and marketing channels tend to expand quickly once a store gains traction.
Tip: New to the model? Learn how Print on Demand works before you scale the product categories you’re tracking.
- Sign up for free
- 577 custom products
- Sell without inventory
FAQ
Create a GA4 property, connect it to your store through the Google tag or Google Tag Manager, and add the six eCommerce events, view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info, and purchase, to your data layer.
Each event needs an items array with product details for GA4 to populate eCommerce reports correctly.
They serve different purposes rather than competing directly. Shopify’s built-in analytics provide quick access to order and revenue data with no setup, while GA4 tracks the full customer journey across marketing channels, devices, and shopping behavior.
Most scaling stores use both – Shopify for quick order snapshots and GA4 for deeper marketing and behavior analysis.
Send the purchase event to GA4 with a unique transaction_id, the order’s total value, and an items array listing each product purchased. GA4 uses the transaction ID to prevent duplicate counting and reports the data in the eCommerce purchases and Monetization overview reports.
Nothing is currently replacing Google Analytics. GA4 already replaced Universal Analytics, which stopped processing data in 2023, and GA4 remains Google’s current and only supported analytics platform for websites and apps.
Google continues to update GA4 itself rather than build a successor.
Published author, scholar, and musician, Andris draws on over 11 years of experience in and outside academia to make complex topics accessible – from SEO and website building to AI and monetizing art. Devoted to his family and self-confessed introvert, he loves creating things, playing musical instruments, and walking around forests.