How to Use Google Analytics for Ecommerce

Cody Schneider••7 min read

Your e-commerce platform's built-in dashboard is great for a quick glance at total sales, but it doesn't tell the whole story. To truly understand how those sales happened - where your customers came from, what they looked at, and why they decided to buy - you need Google Analytics. This article will guide you through setting up GA4 for your store and introduce you to the key reports that will help you grow your business.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

First Things First: Setting Up E-commerce Tracking in GA4

Before you can analyze anything, you need to make sure Google Analytics is actually receiving your e-commerce data. Without this crucial step, GA4 is just a traffic counter. Once enabled, it becomes a powerful engine for understanding customer behavior and revenue drivers.

For most e-commerce platforms like Shopify, BigCommerce, or WooCommerce, this process is fairly straightforward.

For Platform Users (Shopify, BigCommerce, etc.)

Most modern e-commerce platforms have a native integration or an official app that handles the setup for you. The general steps are:

  • Find your Measurement ID: In your Google Analytics 4 property, go to Admin > Data Streams > Web Stream Details. Your Measurement ID will start with "G-" and will be in the top right corner. Copy this.
  • Install the Google & YouTube App: If you're on Shopify, you'll install the "Google & YouTube" app from the Shopify App Store. Other platforms will have similar apps or built-in sections for third-party integrations.
  • Paste your Measurement ID: Follow the app's setup prompts and paste your "G-" ID when asked. This connects your store to your GA4 property.

This automated approach will set up the most important e-commerce events for you, such as view_item, add_to_cart, and purchase, without requiring any code.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

For Custom-Built Stores

If your store is custom-built, you'll likely need the help of a developer to implement e-commerce tracking using Google Tag Manager (GTM). This involves setting up a "data layer" on your website that passes detailed information about products, prices, and user actions to GTM, which then sends it to GA4. This method is more complex but offers incredible flexibility for custom tracking.

The E-commerce Reports You Actually Need to Watch

Once data starts flowing (which can take 24-48 hours), you can stop guessing and start making informed decisions. Don't get lost in the dozens of reports available. Start with these essential four.

1. Acquisition Reports: Where Are Your Best Customers Coming From?

This report answers the most fundamental marketing question: Which of my channels are actually driving sales?

  • What it tells you: How much traffic and revenue is generated by each marketing source, such as Organic Search, Paid search, Email, and Social Media.
  • Actionable insights: You might discover that while your Instagram brings tons of traffic, your weekly email newsletter generates 50% of your revenue. This insight tells you exactly where to double down on your marketing efforts and budget.
  • Where to find it: In the left-hand menu, navigate to Reports > Acquisition > Traffic acquisition.

Once in the report, pay close attention to the columns: Users, Sessions, Conversions, and Total revenue. You can sort by revenue to instantly see which channels are your financial heavy-hitters. If you've been running paid campaigns, this is where you can validate your ad spend against actual sales.

2. E-commerce Purchases Report: Your Sales Funnel at a Glance

This is your diagnostic tool for the shopping journey, showing you how users move from viewing a product to buying it - and where they drop off.

  • What it tells you: The conversion rates between key steps: viewing an item, adding it to the cart, starting the checkout process, and completing a purchase.
  • Actionable insights: If you see a huge number of "Adds to cart" but a massive drop-off before "Begin checkout," you might have a problem with your cart page. Maybe shipping costs are a surprise, or the call-to-action is confusing. A tiny improvement at this stage can lead to a significant revenue lift.
  • Where to find it: Navigate to Reports > Monetization > E-commerce purchases. You'll see a funnel chart breaking down user progression.

Look for the biggest percentage drops between steps. That’s your biggest opportunity for improvement. A high abandonment rate post-cart could indicate friction, while a low rate from product view to add-to-cart might suggest your product pages aren't compelling enough.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

3. Product Performance Report: Which Products Are Your Winners (and Losers)?

Your overall revenue is important, but knowing which products contribute the most to it is even more powerful. This report breaks down performance on a per-product basis.

  • What it tells you: Metrics for specific items, including how many times they've been viewed, added to carts, purchased, and the revenue they've generated.
  • Actionable insights: Identify your cash cows to feature them more prominently on your homepage or in ad campaigns. Pinpoint underperforming products that get lots of views but few purchases - they might need better images, more detailed descriptions, or a price adjustment.
  • Where to find it: Navigate to Reports > Monetization > E-commerce purchases. Scroll down past the funnel visualization to a table of your products.

A key metric here is the Cart-to-view rate. A high rate indicates a product is desirable once seen, while a low rate suggests visitors don't find it appealing enough to even consider buying.

4. Demographic and Tech Reports: Who Is Buying Your Products?

Understanding not just what sells but who is buying helps you refine your marketing personas and target your advertising with much greater precision.

  • What it tells you: User data broken down by country, gender, age, and - critically - the device they use (Desktop, Mobile, Tablet).
  • Actionable insights: If you discover that 80% of your revenue comes from users on mobile devices, but your mobile checkout experience is clunky, you've just found your top priority for website improvements. If a surprising number of sales come from a country you're not actively targeting, it might be a new market worth exploring.
  • Where to find it: Find user data in Reports > Demographics and device data in Reports > Tech.

To connect this data to revenue, create comparisons. For example, in the Tech details report, you can click "Add comparison" to segment your users by country or age, giving you a multi-layered view of your most profitable customer archetypes.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Supercharge Your Analysis with Proper Campaign Tracking

One of the most common e-commerce reporting mistakes is seeing a giant chunk of revenue attributed to "(direct) / (none)" or generic sources like "your-email-provider.com / email." This happens when you don't properly tag your marketing links.

The solution is to use UTM parameters. These are simple tags you add to the end of a URL to tell Google Analytics exactly where the traffic came from. For example, instead of just linking to your newest product in an email, you’d use a link like this:

yourstore.com/new-product?utm_source=spring_mailer&utm_medium=email&utm_campaign=new_product_launch

Now, instead of seeing generic "email" traffic, you'll see a specific campaign in your Acquisition report called "new_product_launch," with its own dedicated traffic and revenue data. This allows you to measure the ROI of every single marketing effort with pinpoint accuracy. Google even provides a free Campaign URL Builder to make this easy.

Final Thoughts

Ditching your e-commerce platform's default dashboard for the depth of Google Analytics can feel intimidating, but it doesn't have to be. By correctly setting up tracking and focusing on reports that cover acquisition, funnel performance, and top products, you can turn raw data into decisions that directly increase your sales.

Making sense of all this can still be a headache, especially when you need to combine your Google Analytics data with insights from Shopify, Google Ads, and Facebook Ads just to see the full customer journey. At Graphed, we built an easier way. We let you connect all of your data sources in just a few clicks. Instead of hunting through menus in GA, you can simply ask questions in plain English, like "Show me my top 10 products by revenue from Facebook campaigns last month," and get an instant report. If you're ready to get clear answers about what's working without getting lost in spreadsheets, give Graphed a try.

Related Articles