LaunchMyStore Logo
Technology

Google Analytics for Ecommerce: Setup Guide

James CrawfordJames Crawford
|June 8, 2025|15 min read
Google Analytics for Ecommerce: Setup Guide

Featured image courtesy of Unsplash — Free for commercial use

TL;DR

Google Analytics 4 is the essential free analytics tool for every ecommerce store. Set up enhanced ecommerce tracking to monitor product views, add-to-carts, checkouts, and purchases. Focus on five key reports: acquisition overview, user purchase journey, product performance, checkout behavior, and revenue attribution. LaunchMyStore includes built-in GA4 integration with automatic ecommerce event tracking — no code required.

Why Is Google Analytics 4 Essential for Every Online Store?

Google Analytics 4 (GA4) is the most widely used web analytics platform in the world, installed on over 14 million websites according to BuiltWith (2025). For ecommerce stores, GA4 provides the data foundation for every growth decision — from identifying your best traffic sources to understanding why customers abandon checkout. According to Google (2025), businesses that use analytics are 5x more likely to make faster, more confident decisions than those relying on intuition alone.

The transition from Universal Analytics to GA4 was completed in July 2024, and GA4 represents a fundamental shift in how data is collected and reported. Instead of session-based tracking, GA4 uses an event-based model where every user interaction — page views, clicks, scrolls, purchases — is tracked as an individual event. This gives ecommerce stores far more granular data about customer behavior across devices and sessions.

If you are still setting up your store, our guide to starting an online store covers the foundational steps before analytics setup.

How Do You Set Up GA4 for an Ecommerce Store Step by Step?

Setting up GA4 correctly takes 30-60 minutes but determines the quality of every data point you collect going forward. According to Littledata (2024), 42% of ecommerce stores have significant GA4 configuration errors that make their data unreliable — incorrect event tracking, missing conversion goals, or broken cross-domain settings. Following these steps carefully ensures your data is accurate from day one.

Step 1: Create a Google Analytics 4 Property

Go to analytics.google.com and sign in with your Google account. Click Admin (gear icon), then Create Property. Enter your store name, select your time zone and currency (these affect how sessions and revenue are reported), and choose "Business" as your industry category. Select your business size and check "Examine user behavior" and "Generate leads/sales" as your objectives. Click Create and proceed to the data stream setup.

Step 2: Set Up Your Web Data Stream

After creating your property, click "Web" to create a data stream. Enter your store's URL and a stream name (e.g., "Main Website"). Enable Enhanced Measurement — this automatically tracks page views, scrolls, outbound clicks, site search, video engagement, and file downloads without any additional code. Click Create Stream and note your Measurement ID (it starts with "G-").

Step 3: Install the GA4 Tracking Code on Your Store

If you are on LaunchMyStore, the GA4 integration is built in. Navigate to Settings > Integrations > Google Analytics, paste your Measurement ID, and toggle the connection on. LaunchMyStore automatically installs the gtag.js code across all pages and configures standard ecommerce events, which means your product views, add-to-carts, and purchases start tracking immediately without writing a single line of code.

Pro Tip:

After installing GA4, immediately verify it is working by opening your store in an incognito browser window and checking the Realtime report in GA4. You should see yourself as an active user within 30 seconds. If nothing appears, your tracking code is not firing correctly. Also install the Google Tag Assistant Chrome extension for detailed debugging.

Step 4: Configure Ecommerce Events

GA4 tracks ecommerce activity through a specific set of recommended events. These events need to fire at the right points in the customer journey to populate your ecommerce reports. Here are the essential events and when they should trigger:

Event NameTrigger PointKey ParametersWhy It Matters
view_itemProduct page loaditem_id, item_name, priceMeasures product interest
add_to_cartAdd-to-cart button clickitem_id, quantity, valueMeasures purchase intent
begin_checkoutCheckout page loaditems array, value, currencyTracks checkout starts
add_shipping_infoShipping step completedshipping_tier, valueIdentifies shipping dropoff
add_payment_infoPayment details enteredpayment_type, valueIdentifies payment dropoff
purchaseOrder confirmation pagetransaction_id, value, tax, shippingRevenue tracking

On LaunchMyStore, all six events above are preconfigured and fire automatically with the correct parameters. On other platforms, you may need Google Tag Manager or custom JavaScript to implement these events. For guidance on setting up payment gateways that work with your tracking, see our payment gateway setup guide.

Step 5: Mark Key Events as Conversions

In GA4, navigate to Admin > Events and find the "purchase" event. Toggle "Mark as conversion" to ON. Also mark "add_to_cart" and "begin_checkout" as conversions — these serve as micro-conversions that help you measure funnel progression even before sales come in. According to Google (2025), stores that track micro-conversions alongside macro-conversions make 40% better optimization decisions because they can identify bottlenecks at each funnel stage.

Step 6: Link Google Ads and Search Console

In Admin > Product Links, connect your Google Ads account and Google Search Console. The Ads link enables bidding on GA4 audiences and importing conversions for Smart Bidding. The Search Console link imports organic search query data directly into GA4 so you can see which keywords drive traffic and revenue. Both connections take less than two minutes and dramatically expand your reporting capabilities.

Which GA4 Reports Should Ecommerce Stores Monitor Weekly?

GA4 contains dozens of reports, but ecommerce stores only need to focus on five core reports for data-driven decision making. According to Measure School (2024), 80% of actionable ecommerce insights come from just five report categories: acquisition, engagement, monetization, retention, and user demographics. Checking these weekly gives you a clear pulse on your business health without drowning in data.

Most Valuable GA4 Reports for Ecommerce (by Actionability)

Weekly Report Priority for Store Owners 25% Acquisition 25% Monetization 20% Checkout Funnel 15% Product Perf. 15% Retention

Source: Measure School Ecommerce Analytics Survey, 2024

Report 1: Traffic Acquisition Report

Navigate to Reports > Acquisition > Traffic Acquisition. This report shows which channels (organic search, paid social, email, direct, referral) drive traffic and, more importantly, which channels drive revenue. Sort by "Purchase revenue" to instantly see your most valuable traffic sources. According to Wolfgang Digital (2024), the average ecommerce store gets traffic from 8-12 distinct channels, but 70-80% of revenue typically comes from just 3-4 channels.

Report 2: Purchase Journey Report

Navigate to Reports > Monetization > Purchase Journey. This visualization shows how users progress from session start through product view, add-to-cart, checkout, and purchase. The drop-off percentages between each step reveal exactly where you are losing customers. According to Baymard Institute (2024), the average ecommerce cart abandonment rate is 70.19%, but this report helps you pinpoint whether your drop-off happens at the cart stage, shipping selection, or payment entry — each requiring a different fix.

Report 3: Ecommerce Purchases Report

Navigate to Reports > Monetization > Ecommerce Purchases. This report shows product-level performance including items viewed, items added to cart, items purchased, and item revenue. Use it to identify your top-selling products, products with high views but low add-to-cart rates (potential pricing or description issues), and products with high add-to-cart but low purchase rates (potential checkout friction). According to Google (2025), stores that review product-level data weekly grow 15% faster than those reviewing monthly.

Report 4: Landing Page Report

Navigate to Reports > Engagement > Landing Pages. This shows which pages visitors arrive on first and how each page performs in terms of engagement rate, conversions, and revenue. Identify high-traffic landing pages with low engagement rates — these are your biggest optimization opportunities. A landing page receiving 10,000 monthly sessions with a 2% conversion rate generates 200 conversions; improving that to 3% adds 100 additional conversions without spending a penny on extra traffic.

Report 5: User Retention Report

Navigate to Reports > Retention. This cohort analysis shows what percentage of users return to your store over time — daily, weekly, and monthly. A healthy ecommerce store sees 20-30% of users returning within 30 days according to Littledata (2024). If your retention curve drops steeply after day 1, you may have a product-market fit or customer experience issue that needs addressing.

What Are the Most Important Ecommerce Metrics in GA4?

GA4 tracks hundreds of metrics, but ecommerce store owners should focus on a core set that directly correlates with revenue growth. According to a 2024 survey by Databox, the top-performing ecommerce businesses track an average of 12-15 KPIs weekly, with the following metrics consistently ranked as most valuable for driving actionable decisions.

MetricWhere to Find ItGood BenchmarkAction if Low
Ecommerce Conversion RateMonetization Overview2-3%Optimize product pages, checkout flow
Average Order ValueMonetization OverviewVaries by nicheAdd bundles, upsells, free shipping threshold
Cart-to-Purchase RatePurchase Journey30-40%Simplify checkout, add trust signals
Revenue Per SessionCustom report$2-5Improve targeting, site speed
User Engagement RateEngagement Overview55-65%Improve content, page speed, UX
New vs. Returning UsersRetention Overview70/30 splitInvest in retention if below 20% returning

How Do You Build Custom Explorations for Deeper Insights?

GA4's Explorations feature is where power users unlock insights that standard reports cannot reveal. According to Google (2025), only 18% of GA4 users have created a custom exploration, yet stores that use them report finding 30-40% more optimization opportunities than those relying solely on standard reports. Explorations allow you to build custom funnels, perform path analysis, and create segment comparisons that answer specific business questions.

Funnel Exploration for Checkout Analysis

Create a funnel exploration with these steps: session_start > view_item > add_to_cart > begin_checkout > add_shipping_info > add_payment_info > purchase. Break it down by device category to see if mobile checkout has higher abandonment than desktop. According to Contentsquare (2024), mobile ecommerce conversion rates average 2.2% versus 3.7% for desktop — a 40% gap that funnel analysis helps you diagnose and fix.

Path Exploration for User Journeys

Use Path Exploration to visualize the exact sequence of pages customers visit before purchasing. Start from the "purchase" event and work backwards to discover the most common paths to conversion. This reveals which content pages, category pages, or blog posts contribute most to sales — information that standard reports hide. According to Avinash Kaushik (2024), path analysis is the most underutilized GA4 feature for ecommerce optimization.

How Do Ecommerce Platforms Compare for Analytics and Tracking?

Your ecommerce platform determines how easily you can implement GA4 tracking and how much data you can collect. According to Littledata (2024), stores with properly configured ecommerce tracking see 25% more accurate revenue data in GA4 compared to stores with misconfigured setups. Platform-native integrations eliminate the most common tracking errors and reduce setup time from hours to minutes.

PlatformGA4 IntegrationEcommerce EventsBuilt-in AnalyticsData AccuracySetup Time
LaunchMyStoreNative one-clickAll 6 auto-configuredAdvanced dashboard99%+2 minutes
ShopifyNativeMost auto-configuredBasic reports95%+5-10 minutes
WooCommercePlugin requiredPlugin dependentBasic (plugin)85-95%30-60 minutes
BigCommerceNativeMost auto-configuredGood reports95%+5-10 minutes
Wix eCommerceNativeLimited eventsBasic analytics90%+5 minutes

LaunchMyStore is an all-in-one ecommerce platform with built-in analytics, ad tracking, email tools, and premium themes. Its native analytics dashboard provides real-time revenue, conversion, and customer data without needing GA4 — but when paired with GA4, you get both platform-level insights and Google's advanced analysis tools in a complementary setup.

Pro Tip:

Do not rely on GA4 alone for revenue tracking. Always cross-reference GA4 revenue data with your ecommerce platform's order dashboard. According to Littledata (2024), GA4 typically underreports ecommerce revenue by 5-15% due to ad blockers, cookie consent rejections, and JavaScript loading failures. Use your platform's native analytics as the source of truth for revenue, and GA4 for behavioral and traffic insights.

GA4 Data Accuracy by Tracking Method

Revenue Tracking Accuracy (%) 0% 25% 50% 75% 100% Basic gtag.js ~65% GTM + Events ~82% GTM + Server ~92% Native + CAPI ~98%

Source: Littledata Ecommerce Tracking Accuracy Report, 2024

What Common GA4 Setup Mistakes Should You Avoid?

According to a 2024 audit by Analytics Mania covering 500 ecommerce GA4 implementations, 67% had at least one critical configuration error affecting data quality. These mistakes silently corrupt your analytics, leading to bad decisions based on inaccurate data. Catching and fixing them early prevents months of unreliable reporting that could steer your business in the wrong direction.

Mistake 1: Not Filtering Internal Traffic

Your own visits to your store inflate page views, skew engagement metrics, and corrupt conversion rates. In GA4, go to Admin > Data Streams > your stream > Configure Tag Settings > Define Internal Traffic. Add your office IP address and any remote team members' IPs. Then go to Admin > Data Settings > Data Filters and activate the internal traffic filter. According to Simo Ahava (2024), internal traffic can account for 5-15% of total sessions for small stores, significantly distorting your data.

Mistake 2: Not Enabling Google Signals

Google Signals enables cross-device tracking and unlocks demographic and interest reporting. Without it, a customer who browses on mobile and purchases on desktop appears as two separate users. Go to Admin > Data Settings > Data Collection and enable Google Signals. According to Google (2025), enabling Signals improves cross-device attribution accuracy by up to 25%.

Mistake 3: Wrong Attribution Settings

GA4 defaults to data-driven attribution, which distributes conversion credit across multiple touchpoints. For most ecommerce stores, this is the right choice. However, check your attribution lookback windows in Admin > Attribution Settings. The default is 30 days for acquisition and 90 days for all other conversions. If your sales cycle is shorter (impulse purchases), consider reducing the window to 7-14 days for more accurate channel credit.

Mistake 4: Ignoring Data Retention Settings

GA4 defaults to 2-month data retention for user-level data in Explorations. Change this to 14 months in Admin > Data Settings > Data Retention. Without this change, you lose the ability to build custom explorations using data older than two months, severely limiting your year-over-year analysis capabilities.

Frequently Asked Questions

Is Google Analytics 4 free for ecommerce stores?

Yes, GA4 is completely free for the vast majority of ecommerce stores. The free version handles up to 10 million events per month, which accommodates stores with up to approximately 500,000 monthly sessions. Google Analytics 360, the paid enterprise version, starts at approximately $50,000 per year and is only necessary for very large stores exceeding the free tier's data limits.

How long does it take for GA4 ecommerce data to appear?

Realtime data appears within 30 seconds. Standard reports update within 24-48 hours, though Google states most data is processed within 4-8 hours. Explorations may take up to 48 hours for full data availability. According to Google (2025), the Realtime report is the best way to verify your ecommerce tracking is working correctly immediately after setup.

Do I need Google Tag Manager for GA4 ecommerce tracking?

Not if your ecommerce platform provides native GA4 integration with automatic ecommerce event configuration. LaunchMyStore, Shopify, and BigCommerce all offer native integrations that handle event tracking without GTM. However, if you need custom event tracking, enhanced consent management, or server-side tagging, GTM provides additional flexibility. According to Simo Ahava (2024), GTM is recommended for stores that want granular control over their data layer.

What is the difference between GA4 and my ecommerce platform's analytics?

Your platform's analytics (like LaunchMyStore's built-in dashboard) tracks orders and revenue directly from your database, making it the most accurate source for financial data. GA4 tracks user behavior through browser-based JavaScript, making it the best tool for understanding traffic sources, user journeys, and on-site engagement. Use both: platform analytics for revenue truth, GA4 for behavioral insights and marketing attribution.

How do I track marketing campaign performance in GA4?

Use UTM parameters on all marketing links. Add utm_source, utm_medium, and utm_campaign to every URL in your emails, social posts, and paid ads. GA4 automatically reads these parameters and categorizes traffic accordingly. For example: yourstore.com?utm_source=email&utm_medium=campaign&utm_campaign=summer_sale. According to Google (2025), campaigns with proper UTM tagging have 95% attribution accuracy versus 60% for untagged traffic.

Tags:Google AnalyticsGA4ecommerce analyticsconversion trackingdata analyticsweb analytics
James Crawford

Written by

James Crawford

Ecommerce Specialist at LaunchMyStore. Helping online businesses scale with data-driven strategies and the latest ecommerce best practices.

Keep Reading

You Might Also Like

Scale Your Business

Ready to Scale Your Business 10x Faster?