Google Analytics for Ecommerce: Setup & Tracking | Vortex IQ

Google analytics ecommerce tracking is the foundation of nearly every ecommerce analytics stack. GA4 is free, powerful, and provides the session-level behavioural data that your ecommerce platform's native analytics cannot match. But only when it is configured correctly. Most stores have GA4 installed. Far fewer have ecommerce tracking set up properly - meaning they are missing the product-level events, funnel data, and revenue attribution that make GA4 genuinely useful for ecommerce decision-making.
This guide covers everything you need to set up google analytics ecommerce tracking correctly in GA4: property configuration, enhanced ecommerce events, platform-specific integration, the reports that matter, the mistakes to avoid, and where GA4 stops and dedicated ecommerce analytics tools take over.
This piece is part of our complete guide: Ecommerce Analytics & Dashboards: Complete Guide.
See it in action
Want to automate this for your store?
Vortex IQ's AI agents can audit, fix, and monitor your ecommerce store automatically.
In This Guid
Why Google Analytics Matters for Ecommerce
GA4 serves a specific and important role in your ecommerce tracking stack. It provides the behavioural layer: the data about what visitors do on your site, where they come from, how they navigate, and where they drop off. This is data that your ecommerce platform (Shopify, BigCommerce, or Adobe Commerce) does not capture at the same level of detail.
Google analytics ecommerce tracking gives you three things that platform analytics typically do not:
Session-level behaviour data: GA4 tracks the full visitor journey, from landing page through product views, add-to-cart actions, checkout steps, and purchase completion. This lets you identify exactly where visitors are dropping off and which pages or steps need improvement.
Channel attribution: GA4 provides multi-channel attribution data that shows which traffic sources contribute to conversions, including both first-touch and last-touch models. Your ecommerce platform might tell you that organic search drove 400 sessions. GA4 tells you which organic landing pages, which search queries (via Google Search Console integration), and how those sessions converted relative to other channels.
Audience segmentation: GA4 allows you to create custom segments and audiences based on behaviour, demographics, and acquisition source. This is critical for understanding which types of visitors convert and which do not, allowing you to tailor your marketing and on-site experience accordingly.
For these reasons, GA4 is not optional for any serious ecommerce operation. It is foundational. What you build on top of it depends on your store's size and complexity.
Setting Up GA4 for Ecommerce: Step by Step
If you are setting up google analytics ecommerce tracking for the first time, follow these steps in order. If you already have GA4 installed but have not configured enhanced ecommerce, skip to the events section.
Step 1: Create a GA4 Property
If you do not already have a GA4 property:
- Go to analytics.google.com and sign in with your Google account
- Click Admin (gear icon) in the bottom left
- Click Create Property
- Enter your property name (typically your store name)
- Set your reporting time zone and currency (use your store's primary currency)
- Select your industry category (Shopping) and business size
Step 2: Create a Web Data Stream
- In your new property, go to Admin and then Data Streams
- Click Add Stream and select Web
- Enter your website URL (your live store domain, not a staging URL)
- Enable Enhanced Measurement - this automatically tracks page views, scrolls, outbound clicks, site search, and video engagement
- Copy the Measurement ID (begins with G-) - you will need this for your platform integration
Step 3: Connect GA4 to Your Ecommerce Platform
The connection method depends on your platform:
Shopify: Navigate to Online Store and then Preferences in your Shopify admin. Paste your GA4 Measurement ID in the Google Analytics field. Alternatively, use the Google & YouTube channel app for a fuller integration that includes enhanced ecommerce tracking events. The app method is recommended as it handles event tracking automatically.
BigCommerce: Go to Advanced Settings and then Web Analytics in your BigCommerce admin. Paste your GA4 Measurement ID. BigCommerce supports enhanced ecommerce tracking natively through its Data Layer. Verify that ecommerce events are firing correctly using GA4 DebugView after setup.
Adobe Commerce: Adobe Commerce requires more manual configuration. Install the Google Tag Manager extension or use the GA4 integration module available in the Adobe Commerce marketplace. Configure the Data Layer to push ecommerce events (view_item, add_to_cart, begin_checkout, purchase) to GA4. Adobe Commerce's flexibility means more customisation options but also more setup complexity.
Step 4: Verify Ecommerce Tracking Is Working
After connecting your platform:
- Go to your GA4 property and navigate to Admin and then DebugView
- Open your store in a browser and complete a test journey: view a product, add to cart, begin checkout, complete a test purchase
- Watch DebugView for the corresponding events appearing in real time
- Verify that revenue data is attached to the purchase event
If events are not appearing, check that your Measurement ID is correct, that enhanced ecommerce is enabled in your platform settings, and that there are no JavaScript conflicts blocking the GA4 tag from loading.
GA4 Ecommerce Events Explained
GA4 uses an event-based data model. For ecommerce tracking, specific events correspond to each stage of the shopping journey. Understanding these events is essential for reading your ga4 ecommerce reports correctly.
The Core Ecommerce Events
Event What It Tracks When It Fires view_item A product page view When a visitor views a product detail page view_item_list A product list view When a visitor sees a collection or category page select_item A product click from a list When a visitor clicks a product from a collection add_to_cart Item added to cart When a visitor adds a product to their shopping cart remove_from_cart Item removed from cart When a visitor removes a product from their cart view_cart Cart page view When a visitor views their cart begin_checkout Checkout initiated When a visitor starts the checkout process add_shipping_info Shipping information submitted When a visitor completes the shipping step add_payment_info Payment information submitted When a visitor enters payment details purchase Transaction completed When a visitor completes a purchase refund Transaction refunded When an order is refunded (full or partial)
Event Parameters
Each ecommerce event carries parameters that provide detail about the transaction:
- currency: The currency code (GBP, USD, EUR)
- value: The monetary value of the event (total order value for purchase events)
- items: An array of products involved, each with item_id, item_name, item_category, price, and quantity
- transaction_id: A unique identifier for the transaction (purchase and refund events)
- coupon: Any discount code applied
- shipping: Shipping cost
- tax: Tax amount
These parameters power the detailed ga4 ecommerce reports that break down revenue by product, category, and promotion.
Building Ecommerce Reports in GA4
With ecommerce tracking configured, GA4 provides several report types that are specifically valuable for ecommerce analysis.
Monetisation Reports
Navigate to Reports and then Monetisation in the GA4 left navigation. These reports show:
- Ecommerce purchases: Revenue, items purchased, and purchase events by product, category, and brand
- In-app purchases: If applicable to your business
- Publisher ads: If you run ads on your site
The Ecommerce Purchases report is your primary google analytics ecommerce report. It shows which products generate the most revenue, highest average order values, and strongest conversion from view to purchase.
Funnel Exploration
Navigate to Explore and create a Funnel Exploration. This is one of GA4's most useful features for ecommerce. Build a funnel using your ecommerce events:
- view_item (or session_start)
- add_to_cart
- begin_checkout
- purchase
The funnel shows the drop-off rate at each stage, the total conversion rate and (critically) allows you to segment by device, channel, country, and other dimensions. This is where you discover that mobile checkout completion is 40% lower than desktop, or that traffic from a specific campaign drops off at the add_to_cart stage.
Path Exploration
Path Exploration shows the actual navigation paths visitors take through your site. For ecommerce, this reveals unexpected journeys: visitors who bounce between product pages, revisit the cart multiple times before purchasing, or exit from specific pages at high rates. Use this to identify UX issues and navigation friction.
User Segments
GA4 allows you to create custom segments based on ecommerce behaviour:
- Purchasers vs non-purchasers
- High-value customers (purchase value above a threshold)
- Cart abandoners (add_to_cart event but no purchase)
- Returning visitors vs new visitors
Applying these segments to any report reveals how different customer types behave, which is essential ecommerce tracking data for personalisation and marketing optimisation.
Common GA4 Ecommerce Tracking Mistakes
Getting ga4 ecommerce tracking right requires attention to detail. These are the most common mistakes that degrade your data quality.
Mistake 1: Duplicate Events
If you install the GA4 tag through your platform's native integration and also through Google Tag Manager, you will fire duplicate events. Every product view, add-to-cart, and purchase will be counted twice. This makes your revenue data appear inflated and your conversion data unreliable. Use one method or the other. Not both.
Mistake 2: Missing Currency or Value Parameters
If the purchase event fires without a value parameter or with an incorrect currency, GA4 cannot calculate revenue accurately. Always verify that purchase events include the correct value and currency parameters by checking Debug View during testing.
Mistake 3: Not Filtering Internal Traffic
Your own team's browsing (testing, QA, demo sessions) inflates session counts and distorts conversion rates. Set up an internal traffic filter in GA4 by going to Admin, then Data Streams, then your stream, then Configure Tag Settings, then Define Internal Traffic. Add your office IP addresses and any VPN ranges your team uses.
Mistake 4: Incorrect Attribution Settings
GA4's default attribution model has changed over time. Check your attribution settings (Admin then Attribution Settings) to ensure they align with your business model. For most ecommerce stores, the data-driven attribution model provides the most balanced view of channel contribution. If you are comparing GA4 data to your ad platform data, attribution model differences are the most common reason the numbers do not match.
Mistake 5: Not Connecting Google Search Console
GA4 does not provide organic search query data on its own. Connect Google Search Console (Admin then Product Links then Search Console) to see which search queries drive traffic to your store and how your organic landing pages perform. This is free and takes minutes to configure but is frequently overlooked.
Where GA4 Falls Short for Ecommerce
GA4 is an exceptional web analytics tool. It is not a complete ecommerce analytics platform. Understanding the boundaries helps you decide what to build on top of it.
No Real-Time Revenue Alerting
GA4 provides a real-time report that shows current active users and recent events. But it does not build contextual revenue baselines, detect anomalies against those baselines, or alert you when something is wrong. You can see that revenue is happening, but you cannot see, from GA4 alone, whether the amount of revenue is normal or concerning for this time on this day.
For real-time revenue alerting and anomaly detection that GA4 cannot provide, read our guide: Setting Up Ecommerce Alerts: What to Monitor.
No Inventory Visibility
GA4 tracks visitor behaviour. It knows nothing about your inventory levels, stock velocity, fulfilment status, or supply chain health. A product showing "out of stock" appears in GA4 only as a page with no add_to_cart events, and GA4 cannot tell you why.
No Cross-Source Correlation
When google analytics ecommerce data shows a conversion rate drop, GA4 cannot cross-reference that with a Shopify app update, an inventory sync failure, or a payment gateway latency spike. It shows you the symptom. Diagnosing the cause requires correlating GA4 data with data from other systems, which GA4 does not do.
Limited Automated Insights
GA4's Insights feature provides some automated observations, but they are generic and surface-level compared to what dedicated ecommerce analytics tools produce. GA4 might tell you "sessions from organic search increased 15%." A dedicated tool would tell you which specific landing pages drove the increase, whether the additional traffic is converting, and what the revenue impact is.
Attribution Limitations
GA4's attribution models are improving but still face the fundamental challenge of cross-device and cross-platform tracking in a privacy-first world. Cookie restrictions, ad blockers, and consent requirements mean that GA4's attribution data is increasingly incomplete, particularly for multi-touch journeys that span several days and devices.
Extending GA4 with AI-Driven Analytics
The most effective approach is not to replace GA4 but to extend it. GA4 provides the behavioural data layer. A dedicated ecommerce analytics platform provides the intelligence layer, connecting GA4 data with ecommerce platform data, ad platform data, inventory data, and operational data to create a complete picture.
Vortex IQ's Nerve Centre integrates directly with the Google Analytics integration, pulling GA4 data into a unified analytics environment alongside your Shopify, BigCommerce, or Adobe Commerce data, your ad platform performance data, and your operational metrics. Vortex Mind then analyses the combined dataset, detecting anomalies that span multiple data sources, identifying root causes, and generating insights in plain language.
For example, if GA4 shows a traffic increase but your ecommerce platform shows flat revenue, the combined analysis reveals whether the additional traffic is low-intent, whether conversion is suppressed by a technical issue, or whether the traffic source is delivering the wrong audience. This cross-source analysis is what GA4 alone cannot provide but what ecommerce data analytics at scale requires. See vortex iq.ai/pricing for plans.
Frequently Asked Questions
How do I set up Google Analytics for my ecommerce store?
Create a GA4 property at analytics.google.com, create a web data stream for your store domain, and connect it to your ecommerce platform using either the native integration (Shopify, BigCommerce) or Google Tag Manager (Adobe Commerce). Enable enhanced ecommerce tracking to capture product-level events. Verify the setup using GA4 DebugView by completing a test purchase and confirming that the purchase event fires with the correct revenue value and product data.
What is GA4 ecommerce tracking?
GA4 ecommerce tracking is the system of events that captures the shopping journey in Google Analytics. It tracks product views (view_item), add-to-cart actions (add_to_cart), checkout initiation (begin_checkout), and completed purchases (purchase), along with parameters like revenue, product details, and coupon codes. This data powers ga4 ecommerce reports including monetisation reports, funnel explorations, and product performance analysis. See the full GA4 ecommerce events reference for details.
Is Google Analytics enough for ecommerce?
Google analytics ecommerce tracking is essential but not sufficient for most growing stores. GA4 provides excellent session-level behavioural data, funnel analysis, and channel attribution. It does not provide real-time revenue alerting, inventory analytics, cross-source root cause analysis, or AI-powered insights. For stores with fewer than 50 daily orders and simple operations, GA4 combined with platform analytics may be enough. For larger stores, GA4 should be one layer in a broader ecommerce analytics stack.
How do I fix GA4 ecommerce tracking issues?
Start with GA4 Debug View - complete a test journey on your store and check whether events fire at each stage (view_item, add_to_cart, begin_checkout, purchase). If events are missing, check your platform integration settings and ensure enhanced ecommerce is enabled. If events fire but revenue shows as zero, check the value and currency parameters. If you see duplicate events, ensure you have only one GA4 tag installed (not both a native integration and Google Tag Manager firing the same events).
Can I use GA4 with Shopify, BigCommerce, and Adobe Commerce?
Yes. GA4 ecommerce tracking works with all three major ecommerce platforms. Shopify offers a native integration through the Google & YouTube channel app. BigCommerce supports GA4 natively through its web analytics settings. Adobe Commerce requires a dedicated module or Google Tag Manager configuration. The setup complexity varies - Shopify is the simplest, Adobe Commerce is the most complex but most customisable.
Related Articles
Ready to take action?
Run a Free AI Audit on Your Store
Vortex IQ scans your ecommerce store across 85+ checks (SEO, performance, analytics, ads) and gives you a prioritised fix plan in under five minutes.