How to Set Up Ecommerce Tracking in Google Analytics 4: 2026 Complete Guide | Rafirit Station How to Set Up Ecommerce Tracking in Google Analytics 4: 2026 Complete Guide
Google Analytics 4

How to Set Up Ecommerce Tracking in Google Analytics 4: 2026 Complete Guide

How to Set Up Ecommerce Tracking in Google Analytics 4: 2026 Complete Guide How to set up ecommerce tracking in Google Analytics 4 is essential for any online store. According to Shopify research, businesses that track ecommerce data are 2.5x…

Performance Marketing Expert
Rafirit Station
📅 May 27, 2026
11 min read
📈
📋 Table of Contents

    How to Set Up Ecommerce Tracking in Google Analytics 4: 2026 Complete Guide

    How to set up ecommerce tracking in Google Analytics 4 is essential for any online store. According to Shopify research, businesses that track ecommerce data are 2.5x more likely to increase revenue year-over-year. Yet most store owners only track basic metrics (sessions, bounce rate) and miss the data that actually matters: revenue per channel, product performance, and checkout abandonment.

    Without ecommerce tracking, you can’t answer basic questions: Which products sell best? Which traffic channels drive the highest revenue? Where do customers abandon checkout? You’re flying blind.

    GA4’s ecommerce tracking is more powerful than Universal Analytics — but it’s also more complex to set up. This guide will walk you through exactly how to do it for Shopify, WooCommerce, and custom stores.

    In this guide, I’ll show you exactly how to set up ecommerce tracking in Google Analytics 4 — no coding required for most platforms.


    External Resources (Bookmark These)


    Internal Rafirit Station Resources


    📊 Stop Guessing What Sells. Start Tracking Revenue.

    Book a 60-minute analytics consultation with Rafirit Station — we’ll set up GA4 ecommerce tracking on your store and build a revenue dashboard you can actually use.

    📊 Book Your Free Analytics Audit →

    GA4 Setup | Ecommerce Tracking | Revenue Reports | Checkout Funnels | Product Performance


    What Is GA4 Ecommerce Tracking? (The Basics)

    GA4 ecommerce tracking captures detailed data about purchases on your online store, including:

    • Transaction data: Revenue, tax, shipping, transaction ID
    • Product data: Product name, category, price, quantity, variant (size/color)
    • User data: Which user made the purchase (if logged in)
    • Checkout behavior: Steps completed (view cart → add info → payment → purchase)
    • Promotion data: Which coupons or promotions were used

    GA4 uses an event-based model instead of Universal Analytics’ hit-based model. The key ecommerce events are:

    add_to_cart</td;

    Add to cart click</td;

    When user adds item to cart</td;view_cart</td;

    Cart page view</td;

    When user views cart page</td;begin_checkout</td;

    Checkout start</td;

    When user begins checkout (enters shipping info)</td;add_shipping_info</td;

    Shipping info added</td;

    When user completes shipping step</td;add_payment_info</td;

    Payment info added</td;

    When user enters payment details</td;purchase</td;

    Completed purchase</td;

    When order is confirmed</td;

    Event Name What It Tracks When It Fires
    view_item</td; Product page view</td; When user views a product detail page</td;

    Rafirit Station sets up all ecommerce events for 50+ online stores.


    Method 1: Shopify GA4 Ecommerce Setup (Easiest — 10 Minutes)

    Shopify has built-in GA4 integration. No coding required.

    Step-by-step for Shopify:

    1. Log into your Shopify admin
    2. Go to Settings → Apps and sales channels
    3. Click Google & YouTube (install if not already)
    4. Click Connect Google Account → Sign in
    5. Select your property: Choose your GA4 property (not Universal Analytics)
    6. Enable “Track enhanced ecommerce” or “Ecommerce events” (wording varies)
    7. Click Save

    Verify it’s working:

      1. Go to GA4 → Reports → Monetization → Ecommerce purchases
      2. Make a test purchase on your store (use a test product or discount code to make it free)
      3. Wait 5-30 minutes → see if the purchase appears
      4. Also check GA4 → Configure → DebugView (see events in real-time)

    Pro tip: Shopify’s built-in integration sends all ecommerce events automatically — no custom code needed. This is the recommended method for Shopify stores.

    Troubleshooting: If purchases aren’t showing after 24 hours, check:

        • Is your GA4 property selected (not Universal Analytics)?
        • Did you enable “Enhanced Ecommerce” in the Google & YouTube app?
        • Do you have any ad-blockers or browser extensions blocking GA4?

    🛒 Not Seeing Ecommerce Data in GA4?

    Let Rafirit Station fix your GA4 ecommerce tracking — so you can finally see which products and channels drive revenue.

    📊 Book Your Free Analytics Audit →


    Method 2: WooCommerce GA4 Ecommerce Setup (15 Minutes)

    WooCommerce doesn’t have built-in GA4 ecommerce tracking. You’ll need a plugin.

    Recommended plugin: Site Kit by Google (Free)

        1. In WordPress admin → Plugins → Add New → Search “Site Kit by Google”
        2. Install and activate
        3. Follow setup wizard → Connect your Google account
        4. Select your GA4 property
        5. Enable “Enhanced Ecommerce” in Site Kit settings

    Alternative plugin: PixelYourSite (Free/Paid — More Features)

        1. Install “PixelYourSite” plugin (free version works)
        2. Go to PixelYourSite → General → Add your GA4 measurement ID
        3. Enable “Track Ecommerce” and “WooCommerce” events
        4. Save settings

    For developers: Manual GA4 ecommerce setup via GTM

    If you want full control, use Google Tag Manager (advanced). This requires developer knowledge or hiring an expert.

    // Example GA4 purchase event dataLayer push (WooCommerce)
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: "purchase",
      ecommerce: {
        transaction_id: "ORDER_12345",
        value: 125.00,
        tax: 15.00,
        shipping: 10.00,
        currency: "BDT",
        items: [{
          item_name: "Product Name",
          item_id: "SKU-123",
          price: 100.00,
          quantity: 1
        }]
      }
    });

    Method 3: Custom Website or Other Platforms (via GTM)

    For custom stores, BigCommerce, Magento, or other platforms, use Google Tag Manager.

    Step-by-step GTM ecommerce setup (2-3 hours for developer):

        1. Install GTM container on your website (paste code in header)
        2. Set up GA4 configuration tag (fires on all pages)
        3. Add dataLayer pushes to your site’s code:
          • On product page: `view_item` event with product data
          • On add to cart: `add_to_cart` event
          • On checkout steps: `begin_checkout`, `add_shipping_info`, `add_payment_info`
          • On order confirmation: `purchase` event with full transaction data
        4. Create GA4 event tags in GTM triggered by these dataLayer pushes
        5. Test using GA4 DebugView and GTM preview mode
        6. Publish container

    Pro tip: This requires a developer who understands JavaScript, dataLayer, and GA4. If you don’t have in-house technical resources, hire an expert or use a platform-specific plugin.


    How to Verify Ecommerce Tracking Is Working

    After setup, verify before assuming it’s working.

    Method 1: GA4 DebugView (Real-time — Best for testing)

        1. In GA4 → Configure → DebugView
        2. Enable debug mode on your site (install GA Debugger Chrome extension or add `?debug_mode=1` to URL)
        3. Go through checkout on your store (use test mode or low-priced product)
        4. Watch events appear in DebugView in real-time (0-10 second delay)
        5. Click on `purchase` event → Expand `items` array → See product data

    Method 2: GA4 Reports (After 24-48 hours)

        1. In GA4 → Reports → Monetization → Ecommerce purchases
        2. Set date range to last 7 days
        3. Look for: Total revenue, Transactions, Average order value
        4. Scroll to “Product performance” → See product names and revenue

    Method 3: Google Tag Assistant (Chrome Extension)

        1. Install Tag Assistant Chrome extension (free)
        2. Go to your store → complete a purchase
        3. Click Tag Assistant icon → See which GA4 tags fired
        4. Click on GA4 tag → Verify ecommerce parameters (items, value, transaction_id)

    What to Do If Ecommerce Data Is Missing

    Common issues and solutions:

    Products show as “(not set)”</td;

    `items` array missing product name</td;

    Fix dataLayer push to include `item_name`</td;Revenue shows $0 but transactions > 0</td;

    `value` parameter missing</td;

    Add `value: total_order_amount` to purchase event</td;Duplicate transactions counted</td;

    Purchase event firing multiple times</td;

    Ensure purchase event fires only once (check GTM triggers)</td;Checkout steps not showing in funnel</td;

    Events not firing (begin_checkout, add_shipping_info)</td;

    Verify each event fires at correct step using DebugView</td;

    Issue Likely Cause Solution
    No ecommerce data after 48 hours</td; GA4 code not installed correctly</td; Re-install GA4 tag or check GTM container</td;

    Essential Ecommerce Reports in GA4 (Once Tracking Works)

    Once ecommerce tracking is set up, use these reports to grow your business:

    1. Ecommerce purchases report

    Location: Reports → Monetization → Ecommerce purchases

    What it shows: Total revenue, transactions, average order value, revenue by product, revenue by category

    Use it for: Identifying best-selling products, seasonal trends, revenue by traffic source

    2. Checkout journey report

    Location: Reports → Monetization → Checkout journey

    What it shows: Drop-off between checkout steps (view cart → shipping → payment → purchase)

    Use it for: Finding where customers abandon checkout, optimizing that step

    3. Product performance report

    Location: Reports → Monetization → Product performance

    What it shows: Revenue, quantity sold, average price per product, product view to purchase rate

    Use it for: Prioritizing inventory, discontinuing low-performers, highlighting best-sellers

    4. Shopping behavior report

    Location: Reports → Monetization → Shopping behavior

    What it shows: Funnel metrics: sessions with product views → add to cart → begin checkout → purchase

    Use it for: Measuring overall conversion funnel health, benchmarking against industry averages

    5. Custom product performance by traffic source

    How to build: Explore → Free form → Rows: Item name, Columns: Session source/medium, Values: Item revenue, Quantity

    What it shows: Which channels drive revenue for which products

    Use it for: Allocating ad spend to products that perform best on specific channels


    Ecommerce Tracking Checklist

    For Shopify: Connected via Google & YouTube app (built-in)</td;

    ☐</td;For WooCommerce: Site Kit or PixelYourSite plugin installed and configured</td;

    ☐</td;For custom store: GTM container installed and dataLayer pushes implemented</td;

    ☐</td;Test purchase completed (use test mode or discount code)</td;

    ☐</td;DebugView shows purchase event with correct items and revenue</td;

    ☐</td;After 24 hours, Ecommerce purchases report shows transaction data</td;

    ☐</td;Checkout journey report shows steps with drop-off percentages</td;

    ☐</td;Product performance report shows revenue by product name</td;

    ☐</td;Real Example: How a Dhaka Ecommerce Store Recovered ৳4.2 Lakh in Lost Revenue Using GA4 Ecommerce DataClient: Dhaka-based fashion ecommerce store (Shopify). Monthly revenue: ৳8 lakh. GA4 installed but ecommerce tracking not set up — couldn’t see which products or channels drove revenue.Problem identified after fixing ecommerce tracking:

    • Checkout journey report revealed 68% drop-off at “add_shipping_info” step
    • Users were entering shipping address then abandoning
    • Investigation: Shipping cost was displayed AFTER address entry, not before
    • Product performance report showed 70% of revenue came from 3 products (rest underperformed)
    • Traffic source report showed Facebook drove 60% of visits but only 25% of revenue (poor ROAS)
    • Google Shopping drove 10% of visits but 45% of revenue (excellent ROAS)

    Actions taken based on data:

    • Added shipping cost calculator to product page (displayed before checkout)
    • Discontinued 12 low-performing products (focused inventory on top 3 best-sellers)
    • Shifted ৳60,000/month ad spend from Facebook → Google Shopping
    • Added abandoned checkout email sequence for users who dropped at shipping step

    Results after 60 days:

    • Checkout drop-off: 68% → 45% (-23%)
    • Total monthly revenue: ৳8 lakh → ৳12.2 lakh (+52%)
    • Recovered revenue attributed to fixes: ৳4.2 lakh/month
    • Inventory efficiency: 70% of revenue now from top 3 products (vs 45% before)
    • ROAS from Google Shopping: 3.2x → 5.8x (with same spend)

    Key takeaway: Ecommerce tracking isn’t just about seeing numbers — it’s about finding hidden profit. This client spent 2 hours fixing GA4 ecommerce tracking and found ৳4.2 lakh/month in optimization opportunities. See more analytics success stories.Frequently Asked QuestionsWhat’s the difference between GA4 ecommerce tracking and Universal Analytics?GA4 uses event-based tracking (each action is an event). Universal Analytics used hit-based tracking. GA4’s ecommerce parameters are different: `items` array instead of separate product fields. Data won’t auto-migrate — you must set up GA4 from scratch.Do I need Google Tag Manager for ecommerce tracking?For Shopify: No (built-in integration). For WooCommerce: No (plugins available). For custom stores: Yes (GTM is the standard method).Why can’t I see “Ecommerce purchases” report in GA4?Either (a) ecommerce tracking isn’t enabled in GA4 settings (Admin → Data streams → Enhanced measurement → toggle ecommerce on), or (b) no purchase events have been sent yet (make a test purchase and wait 24 hours).How do I track refunds in GA4?Implement the `refund` event with the original transaction ID and refund amount. Most ecommerce platforms (Shopify, WooCommerce) don’t send refunds automatically — you need custom code or a plugin.Can Rafirit Station set up GA4 ecommerce tracking for my store?Yes — Rafirit Station’s analytics team sets up GA4 ecommerce tracking for Shopify, WooCommerce, and custom stores — including event verification, custom reporting, and dashboard setup.The Bottom LineEcommerce tracking in GA4 is not optional. Without it, you can’t answer basic questions about revenue, products, and checkout behavior. The good news: Shopify and WooCommerce make it easy with built-in integrations or free plugins.Your next step (today):

    • Log into your GA4 property → Admin → Data streams → Your stream → Enhanced measurement → Ensure ecommerce is toggled ON (1 minute)
    • For Shopify: Settings → Google & YouTube → Connect GA4 (5 minutes)
    • For WooCommerce: Install Site Kit by Google → Connect GA4 (10 minutes)
    • Make a test purchase (use test mode or low-priced product)
    • Check GA4 DebugView → Verify purchase event with items appears (10 minutes)

    One hour of setup today saves thousands in wasted ad spend tomorrow.👉 Professional GA4 Ecommerce Setup →
    👉 Ecommerce Solutions →
    👉 See Analytics Results →
    👉 Data-Driven Ecommerce Marketing →
    👉 📊 Book Your Free Analytics Audit on Calendly →Want a free GA4 Ecommerce Tracking Checklist + DebugView Troubleshooting Guide? Drop “GA4 ECOMM” in the comments — I’ll send you a 30-point setup checklist and a step-by-step DebugView guide to verify every ecommerce event.

    Task Status
    GA4 property created and measurement ID noted</td; ☐</td; Ecommerce tracking enabled in GA4 (Admin → Data streams → Your stream → Enhanced measurement → Toggle ecommerce on)</td; ☐</td;
    📈
    Is your GA4 + Pixel tracking every conversion correctly?
    Full GA4 + GTM + CAPI setup
    Get Free Tracking Audit → 💬 Or WhatsApp us now

    💬 Leave a Comment

    Your email will not be published. Fields marked * are required.

    Ready to Apply This?

    Need Expert Help With Your
    Google Analytics 4?

    Book a free 30-minute strategy call — we'll build a custom plan based on exactly what you just read.