How to Track Ecommerce in Google Analytics
Tracking your total revenue is important, but understanding what drives that revenue is how you actually grow an e-commerce business. Google Analytics is the key to unlocking these insights, moving you from simply seeing sales numbers to understanding the entire customer journey. This guide will walk you through exactly how to set up e-commerce tracking in Google Analytics and which reports to use to find actionable insights.
First, Why Bother Tracking E-commerce Data in GA?
Connecting your e-commerce store to Google Analytics goes far beyond just mirroring the revenue data you already have in Shopify or WooCommerce. It allows you to connect user behavior with purchasing activity, answering the critical questions that drive growth.
See Your Top-Performing Products and Categories
Your store's backend can show you what sold, but GA can show you the story behind the sale. By tracking product impressions, add-to-carts, and purchase details, you can answer questions like:
- Which products are frequently viewed but rarely purchased? (This could signal a pricing, product description, or image issue).
- Which product categories generate the most revenue?
- How many times, on average, do users view a product before buying it?
Understand the Full Customer Journey
An e-commerce platform shows you the final transaction, but Google Analytics shows you the entire path that led to it. It connects the dots between a customer's first visit and their final purchase, helping you see things like:
- Which blog posts or landing pages are most effective at driving sales?
- How many site visits does it typically take for a new user to become a customer?
- Do customers who use site search convert at a higher rate?
Connect Marketing Efforts to Actual Revenue
This is the most important benefit for any marketer. Instead of just tracking clicks and traffic from your campaigns, you can directly attribute revenue to specific marketing channels. You can finally get clear answers to questions like:
- What was the return on investment (ROI) for last month's Google Ads campaign?
- Does our email marketing or social media channel drive more valuable customers?
- Which specific Facebook ad creative resulted in the most product sales?
Identify Funnel Drop-off Points
GA's e-commerce reports allow you to visualize the shopping funnel, from viewing a product to completing a purchase. You can pinpoint exactly where potential customers are abandoning the process. If you see that 80% of users add items to their cart but only 20% reach the checkout page, you know you have a problem to investigate in the cart experience specifically.
GA4 or Universal Analytics?
As you probably know, Google has fully transitioned to Google Analytics 4. While some may still be analyzing historical data in Universal Analytics (UA), all new data collection and standard e-commerce setup happen in GA4. The primary difference is the data model: UA was based on sessions and pageviews, while GA4 is built around events.
This event-based model is more flexible and better suited for tracking the customer journey across websites and apps. For e-commerce, this means that actions like view_item, add_to_cart, and purchase are all treated as distinct, trackable events. This guide will focus on setting up tracking in GA4.
Setting Up GA4 E-commerce Tracking on Popular Platforms
Thankfully, most modern e-commerce platforms have made it incredibly easy to integrate with Google Analytics 4. For the vast majority of store owners, you will not need to touch a single line of code. The process generally involves finding your GA4 "Measurement ID" and pasting it into a specific field in your store's admin panel.
How to Find Your GA4 Measurement ID
Before you do anything else, you’ll need this ID. It’s what tells your website which specific GA4 property to send data to.
- Log into your Google Analytics account.
- Click on Admin (the gear icon) in the bottom-left corner.
- In the Property column, make sure your GA4 property is selected.
- Click on Data Streams, then select your web data stream.
- Your Measurement ID will be in the top-right corner. It starts with "G-" and looks something like
G-ABC123XYZ. Copy it.
Now, let's look at how to use that ID on some major e-commerce platforms.
For Shopify Users
Shopify's native integration handles all the heavy lifting automatically. Once you connect it, Shopify will automatically send all key e-commerce events (product views, adds to cart, purchases) to your GA4 property.
- In your Shopify Admin, go to Online Store > Preferences.
- In the Google Analytics section, paste your GA4 Measurement ID (the "G-" ID you just copied).
- Click Save.
That's it. Yes, really. Shopify will begin sending data over to Google Analytics immediately. Note that it can take 24-48 hours for data to start populating in your GA4 reports.
For WooCommerce Users
WooCommerce requires a plugin to connect to Google Analytics, but the process is still very straightforward. There are several plugins available, but one of the most popular and reliable options is the official "Google Listings & Ads" plugin or dedicated solutions like the “Conversion Tracking Pro for Google Ads & Analytics”.
- From your WordPress dashboard, go to Plugins > Add New.
- Search for a reputable GA4 and WooCommerce integration plugin.
- Install and activate the plugin.
- Follow the plugin's setup wizard, which will typically ask you to authenticate your Google account and select the correct GA4 property.
The plugin will automatically add the necessary tracking code to your site and configure it to pass e-commerce data like product details, order values, and transaction IDs to GA4.
For Other Platforms (BigCommerce, Magento, etc.)
Most major e-commerce platforms operate similarly to Shopify and WooCommerce:
- First, check for a native integration. Look in the Settings, Analytics, or Marketing Integrations sections of your platform's administration panel. They often have a dedicated field for your GA4 Measurement ID.
- Advanced (if needed): Use Google Tag Manager (GTM). If your platform doesn't have a direct integration, the recommended path is using Google Tag Manager. GTM is a free tool from Google that lets you manage and deploy marketing tags (snippets of code or tracking pixels) on your website without having to modify the code. Many platforms have easier integrations with GTM, which can then be used to send detailed e-commerce data to GA4. This process is more involved but offers maximum flexibility.
Key E-commerce Reports to Check in GA4
Once you're set up and data has started flowing (allow at least 48 hours), you can start digging for insights. In GA4, most of your key e-commerce reports are found under the Monetization tab in the left-hand navigation.
Monetization Overview Report
Think of this as your e-commerce command center. It provides a high-level summary of your store's performance at a glance. You'll see cards for key metrics like:
- Total Revenue: The total income from transactions.
- E-commerce Revenue: Specifically revenue from item sales (excluding shipping and tax).
- Total Purchasers: The number of unique users who made a purchase.
- Average Purchase Revenue per User: How much revenue, on average, a single user generates.
This report is great for a quick daily check-in to monitor overall trends.
E-commerce Purchases Report
This is where you can dig into performance at the individual product level. This report answers the question, "What are my most popular and profitable products?"
By default, you'll see a table listing your products along with key metrics:
- Item views: The number of times a product detail page was viewed.
- Adds to cart: The number of times a product was added to a shopping cart.
- E-commerce purchases: The total number of times a product was purchased.
- Item revenue: The total revenue generated by a specific product.
Pro Tip: Calculate your own "add-to-cart-to-view rate" (Adds to cart / Item views). A low rate might indicate an issue with your product imagery, description, or pricing that is stopping visitors from taking that next step.
Acquisition Reports (Traffic and User)
While not located under the "Monetization" tab, the Acquisition reports are where you connect your marketing efforts to revenue.
- Go to Reports > Acquisition > Traffic acquisition.
Here, GA4 breaks down your traffic by the Default Channel Grouping (e.g., Organic Search, Direct, Paid Search, Organic Social). You can see exactly which channels are driving not only traffic and users but also the highest number of conversions (purchases) and total revenue. This is how you prove the ROI of your SEO, Google Ads, or social media efforts.
Final Thoughts
Setting up e-commerce tracking in Google Analytics is a non-negotiable first step toward making data-driven decisions for your online store. By properly connecting your store and dedicating time to analyze the Monetization and Acquisition reports, you can move from just guessing to truly knowing what marketing strategies, products, and on-site experiences are growing your business.
But let's be honest, tying your Google Analytics data to all the other platforms you use - your ad spend from Facebook and Google, customer data from Klaviyo, and sales data from Shopify - can quickly become a full-time reporting nightmare. That's why we built Graphed. We connect all your sources in just a few clicks and let you build reports using simple, natural language. You can ask questions in plain English, like "Which Facebook ads drove the most revenue for our new product line?" and get an interactive, real-time dashboard instantly. It automates the tedious manual work so you can spend less time pulling reports and more time acting on insights.
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.