How to Test Google Analytics Ecommerce

Cody Schneider7 min read

You’ve gone through the effort of setting up Google Analytics 4 ecommerce tracking, but a nagging thought remains: is it actually working correctly? Relying on flawed ecommerce data is like trying to navigate with a broken compass - it will lead you to make the wrong decisions about your marketing budget, product strategy, and overall business health. This guide will walk you through exactly how to test your GA4 ecommerce setup to make sure every product view, add-to-cart, and purchase is captured accurately.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why You Absolutely Need to Test Your Ecommerce Tracking

Skipping the testing phase is a recipe for disaster. When your ecommerce tracking is broken, you open yourself up to a number of critical blind spots that can seriously impact your bottom line. Without accurate data, you can't trust your reports to answer even basic questions.

Common problems that arise from untested setups include:

  • Inaccurate Revenue Reporting: The most obvious issue. If purchase events aren't firing correctly, your revenue numbers will be completely off, making it impossible to calculate marketing ROI or measure P&L.
  • Broken Funnel Analysis: You won't be able to see where customers are dropping off. Is the problem on the product page? During checkout? Without tracking events like view_item and begin_checkout, your entire customer journey is a black box.
  • Misattributed Sales: If transaction IDs are duplicated or missing, you could accidentally give credit to the wrong marketing channel, leading you to invest more money in campaigns that aren't actually working.
  • Skewed Conversion Rates: One of the most important metrics for an online store will be unreliable. You won’t have a true sense of how effectively your site turns visitors into customers.

Taking 30 minutes to an hour to thoroughly test your tracking can save you weeks of headaches and prevent you from making costly business decisions based on bad data.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Your GA4 Ecommerce Testing Toolkit

Before you get started, make sure you have a few simple tools ready to go. This whole process is much easier with the right setup in place.

  • Google Analytics 4 Access: Specifically, you'll need to use the "DebugView" section, which you can find under Admin > Data display > DebugView. This is where you will see your test events show up in real-time.
  • Google Tag Manager (if applicable): If you’ve implemented GA4 through Google Tag Manager (GTM), you will live inside its "Preview Mode." This is the best way to see exactly which tags are firing on your site as you take action.
  • Your Ecommerce Store: You will need to perform actions on your live site like a real customer would.
  • A 100% Off Discount Code: A crucial element for testing your full sales funnel is being able to finalize a transaction. Create a 100% off coupon code specific for testing in your ecommerce platform (Shopify, WooCommerce, BigCommerce). This way you can finish the transaction without spending real money.
  • Google Analytics Debugger Extension: This is a free Chrome extension that forces your browser session into debug mode for GA4. GTM's Preview mode also enables that. It's great for troubleshooting directly on the site without GTM Preview mode being activated.

Step-by-Step Guide to Testing Your GA4 Ecommerce Setup

With your tools in hand, you're ready to follow the customer journey from start to finish. The goal is to perform each action on your site and then verify that the correct events with correctly formatted event data show up in GA's DebugView in real time. Let’s walk through all the ecommerce events for a transaction, starting with enabling Debug Mode for your browser session.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 1: Enable Debug Mode

There are two ways that your activity in the browser can show up live inside the GA4 DebugView's activity stream. I'll describe both methods below.

Method 1: Using GTM Preview Mode (Recommended)

If you're using Google Tag Manager, this is the best and most thorough method to test your GTM tag configuration that should send GA4 tags with event data.

  1. Navigate to your GTM workspace and click the "Preview" button in the top-right corner.
  2. Enter your website's URL and click "Connect." A new tab with your website will open with a "Tag Assistant Connected" badge visible.
  3. Your entire session is now in debug mode. Go to your GA4 property, navigate to Admin > DebugView, and watch for activity to appear once you interact with tagged GA4 elements, like a CTA or a form fill.

Method 2: Using the GA Debugger Chrome Extension

If you’re not using GTM Preview Mode, this Chrome extension is the most effective way to turn debug mode on for a specified browser session.

  1. Install the extension from the Chrome Web Store.
  2. Once installed, navigate to the extension's icon. Click on it. An "On" icon in the debugger extension should appear letting you know it's active on your site.
  3. Reload your store’s webpage. Just like with GTM, this will enable debug mode for your session with your GA browser cookies.
  4. Head on over to Admin > DebugView inside your Google Analytics 4 property. There should be activity inside this GA reporting interface after completing an action on your newly loaded webpage on this browser session!
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 2: Follow the User Path on Your Site’s Customer Journey

Here's our full checklist of the events you’ll want to review to ensure your online store is tracking correctly inside GA4. We will test each critical ecommerce event using our GA property in debug view.

This should accurately describe a typical customer's journey on your website:

  1. Item View → Add Item to Cart → Look at your Cart → Choose to Check Out → Complete your Purchase.

Be sure for every step to also look at the custom parameters being sent to GA from each event to verify a healthy and complete data collection. This metadata will provide key information about user actions on the webpage.

Check all the event parameters, especially inside your items (event items array).

Testing the view_item Event

  • What it Does and How to Trigger: This event signifies that a customer looked over a particular product in your online store with the intent of making a transaction, regardless of the outcome. Simply go to the product's detail page on your store with your browser in GA's debug mode activated.
  • How to Verify it: Watch the timeline in GA DebugView. You'll be able to see the blue tag for view_item fire. Then click on this event to inspect item parameters.

Look for:

  • items: This is critical, make certain it's formatted as a proper items array object with all nested parameters correctly populated.
  • currency: Does this match your set currency?
  • product_id and product_name: Do these match the product page?

Testing the add_to_cart Event

  • What it Does and How to Trigger: This marks the moment a customer added an item to their shopping cart from the product view page. Click the "add to cart" button on the product page to see this tag or add_to_cart event appear in DebugView. Click it to see its parameters array which will include quantity fields and more.
  • How to Verify it: Look for:
  • items: Is this the same 'items' array you saw before? If an item is added, make sure its attributes are correct.
  • currency: Does the currency still match the store's settings?

Final Thoughts

Testing your Google Analytics ecommerce tracking is critical to ensuring you have reliable data to make informed business decisions. This process may seem daunting initially, but it's essential for gaining a comprehensive view of your customer data. By taking these steps, you'll ensure that your analytics setup is as accurate as possible, preventing costly errors and helping your business succeed.

Related Articles