Google Analytics for Ecommerce: A Complete GA4 Installation Guide

Every e-commerce store generates data as soon as a visitor lands on a product page.

Google Analytics for Ecommerce turns that activity into revenue metrics, sales performance data, and a clear picture of how customers interact with your store.

This guide explains how ecommerce analytics works in GA4, from configuration to the reports that turn store data into decisions.

Key Takeaways

  • GA4 has replaced Universal Analytics and ecommerce tracking now runs on events rather than as an add-on.

  • A working installation requires a GA4 property, a Google Tag Manager container, and a data layer configured with the appropriate ecommerce parameters.

  • Six core events, view_item, add_to_cart, begin_checkout, add_shipping_info, add_pay_info and purchase, capture the entire purchasing journey.

  • Average order valueEcommerce conversion rate and revenue metrics are the KPIs most ecommerce businesses check first.

  • Custom reports and regular review frequency turn raw e-commerce data into concrete business decisions.

What Google Analytics 4 has changed for ecommerce tracking

Universal analysis measured sessions and page views as the basic statistics. Google Analytics 4 (GA4) treats every action, a product view, an addition to the cart, and a completed purchase as one event.

This event-based tracking model provides ecommerce companies with more detailed data about the customer journey, from the first landing page visit to the final purchase.

This change is also important for reporting. Universal Analytics relied on it improved e-commerce tracking as an add-on feature. In GA4, e-commerce parameters are built into the structure of the event itself, so that ecommerce event data automatically populates dimensions and metrics once data collection is properly configured.

How to set up Google Analytics 4 for your online store

A woman with long curly hair sits at a desk and works on a laptop in a bright, modern workspace with plants and furnishings.

Setting up Google Analytics for an ecommerce website starts with creating a GA4 propertywhich takes a few minutes analytics.google.com. Once the property is created, link it to your site by clicking the Google tagdirectly to your theme code or via 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 acts as a universal layer that sits between your store and any analytics or marketing platform you connect to.

Tip: Still considering where to build your store? Our guide to the best ecommerce platforms compares the options before you commit to setting up a Google Tag.

Set up a Google Tag Manager container

Google Tag Manager containers Save 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 in that container, configured to point to your property’s measurement ID.

Once the configuration tag is activated on each page, GA4 automatically collects basic engagement data through enhanced measurements, 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 e-commerce data through the data layer

The data layer is a JavaScript object on your site that contains product and transaction data, such as item name, price, and quantity, so that Google Tag Manager can read data and pass it to GA4.

When a customer adds a product to their cart, your site pushes an add_to_cart event and its associated items array to the data layer. GTM then reads that object and fires the corresponding GA4 event tag.

According to Google documentationEvent-level parameters (such as the total amount a customer spent) are outside the item set, while item-level parameters (such as the price of an individual product) are included.

The 6 Ecommerce Events Every Online Store Should Be Tracking

GA4’s e-commerce reporting depends on specific e-commerce events. Sending these six in a row gives you a complete purchasing journey and clear insight into shopping behavior, from browsing to completed transactions.

  • view_item – A customer is viewing a product page

  • add_to_cart – A product is added to the shopping cart

  • begin_checkout – Checkout begins

  • add_shipping_info – Shipping details have been entered

  • add_payment_info – Payment details have been entered

  • purchase – The transaction is completed

GA4 also lets you mark this as a key event, the version of what Google Analytics called goals for an ecommerce site under Universal Analytics, so that the action counts as a conversion in your reports.

Each event contains ecommerce parameters that describe products, categories, and prices. For example, sending item_category consistently allows you to compare performance across product categories rather than individual SKUs.

You can also add additional events. view_promotion and select_promotion measure how internal promotions and banners influence conversion events, while refund measures full and partial revenue from the original transaction.

Key ecommerce metrics and KPIs to monitor

A woman with short brown hair and glasses sits at a desk and looks at two computer screens with various charts and graphs.

Once ecommerce tracking is live, a handful of key metrics will show how users interact with your store and provide an at-a-glance view of your online store’s performance. These Key Performance Indicators (KPIs) are what e-commerce companies most often monitor to detect problems early.

How many users visit and where they come from

Start with the basic: How many users visited your site, which marketing channels they sent, and how they moved through your ecommerce site before converting.

GA4’s acquisition reports break this down by channel so you can see if organic search, paid social, or email are getting your best traffic. This is also where you can spot underperforming marketing efforts before they impact 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 the global average AOV is still hanging around $145 across all sectors, although the figure varies widely by category: luxury goods are sold at much higher prices per order than everyday accessories.

Track your average order value versus total sales over time to understand whether upsells, bundles, or shipping adjustments are actually making a change.

e-commerce conversion rate and where users drop off

Your ecommerce conversion rate is the number of completed purchases divided by the total number of sessions. Comparing conversion rates at every step, from view to cart, cart to checkout, checkout to purchase, shows exactly where users are dropping off and where customer behavior is declining.

High cart abandonment rates accompanied by healthy add to cart rates usually indicate friction at checkout and not a product problem. The average shopping cart abandonment rate on e-commerce sites is around 70%so even small improvements to that step are compounded quickly.

Product performance and revenue statistics

The Monetization section of GA4 is where e-commerce performance becomes specific metrics: product revenue, items viewed, and items purchased at the item level, traced back to the individual user interactions behind each offer.

This is where product performance data becomes useful. If one product category consistently generates higher revenue metrics per visitor, that category deserves more marketing budget and better placement on your landing page.

User engagement and lifetime user value

User engagement metrics, such as engaged sessions and average engagement time, indicate whether customers are actually exploring your store or quickly leaving.

Combined with user lifetime value reporting, this data helps you distinguish one-time buyers from customers who build a longer purchasing journey with your brand.

Build custom reports for marketing and customer insights

A woman sitting at a desk using a computer with dual monitors displaying graphs and data analysis in a modern office environment.

GA4s Explore section you can create custom reports with dynamic data views that go beyond what’s built-in by default. Sellers running seasonal campaigns can build a report that filters ecommerce data by campaign source to show exactly which campaigns resulted in completed purchases rather than just clicks.

Custom reports also help with customer segmentation and provide valuable insights beyond standard templates. Filtering by new versus returning customers, or by geographic location, gives you customer insights that inform where to spend on advertising 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 operations.

Turn e-commerce data into business decisions

The value of ecommerce tracking in Google Analytics lies in providing real data to support decisions. If a product page gets a lot of traffic but little adds to cart, it indicates a pricing, image, or copy issue that’s worth testing.

If payment abandonments specifically on mobile devices increase, that’s a signal to rethink your mobile checkout process before it results in lost revenue.

Review these reports regularly, weekly for fast-changing metrics like conversion rate, and monthly for slower metrics such as customer lifetime value. This keeps data-driven decisions part of the routine and saves you problems during audits.

Store owners scaling a print-on-demand business especially benefit from this discipline, as product catalogs and marketing channels tend to expand quickly once a store gains popularity.

Tip: New to the model? Learn how Print on Demand works before you scale the product categories you follow.

Leave a Comment