Share X in ✉

How to Set Up Google Analytics for WooCommerce Store

Last updated
Read time
7 min
Category
How to Set Up Google Analytics for WooCommerce Store
Google Analytics WooCommerce Setup Guide

Setting up Google Analytics for your WooCommerce store means installing the official Google Analytics for WooCommerce plugin, connecting it to a Google Analytics 4 (GA4) property using your Measurement ID, and confirming that ecommerce events like purchases and add-to-cart actions are being tracked.

Universal Analytics was fully retired in 2023, so GA4 is the only version you’ll be setting up. This guide walks through installing the plugin, connecting your store, verifying conversion tracking, and tracking product feed campaigns through UTM parameters.

How to Connect WooCommerce to Google Analytics

You can log in to Google Analytics using your existing Gmail address; no separate registration is required.

Google Analytics WooCommerce

Step 1: Install the Google Analytics for WooCommerce Plugin

Go to Plugins >> Add New in your WordPress dashboard and search for “Google Analytics for WooCommerce.” Install the version maintained by the official WooCommerce developers, not a generic Google Analytics plugin built for all site types.

How to Set Up Google Analytics for WooCommerce Store – popular plugins

Google Analytics WooCommerce plugin

After activating it, go to WooCommerce >> Settings >> Integration to find the plugin’s settings.

Google Analytics WooCommerce integration

Step 2: Create Your GA4 Property and Get Your Measurement ID

  1. Go to the Google Analytics website and log in with your Google account.
  2. From the dashboard, click Admin at the bottom of the sidebar.
  3. Click Create, then Account, and name your account with your preferred data-sharing settings.
  4. Create a property. A property is the container that holds all the tracking data for one website or app.
  5. Select your industry category, business size, and business goals, then click Create and accept the terms.
  6. Select Web as your platform, enter your WooCommerce site URL, and click Create Stream.
  7. Copy the Measurement ID shown on this screen. This is the same value the WooCommerce plugin refers to as your Google Analytics Tracking ID.

Google Analytics login

GA dashboard

GA4 admin

Google Analytics create account

Google Analytics WooCommerce account creation

Creating GA property

Business details GA

Google Analytics WooCommerce Business goals

GA terms

Select platform

Input website link

track code

Step 3: Connect Your Measurement ID to WooCommerce

Go back to WooCommerce >> Settings >> Integration and paste your Measurement ID into the Google Analytics Tracking ID field. Check Use Global Site Tag and Enable Standard Tracking so you don’t have to configure tracking separately for blog visits, search traffic, and other site behavior. Depending on your plugin version, you may also see options for display advertising support, 404 tracking, and accepting incoming linker parameters for cross-domain tracking. These are optional additions, not requirements for basic setup.

Google Analytics WooCommerce connection

Step 4: Verify Tracking Is Working

Save your settings, then open GA4 and check the Realtime report while browsing your own store in an incognito window. You should see your visit appear within a few minutes. Full historical data can take up to 24 hours to populate in standard reports.

How Ecommerce and Conversion Tracking Works in GA4

Once connected, the plugin automatically sends GA4 the core ecommerce events: view_item when a product page loads, add_to_cart when a product is added, begin_checkout when checkout starts, and purchase when an order completes. These events populate GA4’s Monetization reports, where you can see revenue, transactions, and purchase conversion rate without any extra configuration.

To view conversions specifically: in GA4, go to Reports >> Monetization >> Ecommerce purchases. This shows item views, add-to-carts, and completed purchases by product, so you can see where customers drop off between browsing and buying.

If you need deeper behavior tracking, such as checkout step abandonment, dynamic remarketing audiences, or renamed custom events, that level of detail typically requires a premium analytics plugin built specifically for enhanced ecommerce, since the free official plugin covers the core events only.

Tracking Product Feed Campaigns with CTX Feed

If you’re running product feed marketing, meaning listing your WooCommerce products on channels like Google Shopping, Amazon, Facebook, and other marketplaces or price comparison sites, GA4 can also track how those campaigns perform, provided your feed URLs carry UTM parameters.

CTX Feed generates feed files for over 130 channels using built-in templates, so you don’t need to manually build attribute lists for each one. It also supports automatic feed updates so listed prices and stock stay current without manual re-uploads.

Create a feed

Templates

Google Shopping attributes

To track a campaign’s performance, open the Filters tab in CTX Feed and scroll to Campaign URL Builder, where you can set UTM parameters before generating the feed.

URL builder

Google Analytics WooCommerce custom URLs

Adding UTM Parameters to Product URLs

UTM parameters are tags added to a URL that tell Google Analytics where a visitor came from and what campaign brought them there. If you’re promoting the same product on Google, Facebook, Instagram, and email at once, UTM parameters are how you tell which channel is actually driving traffic and sales.

There are five parameter types:

  • utm_source: Where the visitor came from, such as Google, a newsletter, or a specific site.
  • utm_medium: The type of marketing, such as banner ad, email, or CPC.
  • utm_campaign: A name for the campaign, such as “Summer Sale” or “Holiday Promo.”
  • utm_term: The keyword that triggered an ad, for paid search campaigns.
  • utm_content: Differentiates similar links, such as two different buttons in the same email.

The first three, utm_source, utm_medium, and utm_campaign, are required. utm_term and utm_content are optional.

Example: 

If Tracking Isn’t Showing Up

Recent user reports on the plugin’s support forum describe tracking that stops completely after activation, particularly on sites running cookie consent plugins like Complianz. If this happens:

  • Confirm you’re checking as a logged-out visitor. The plugin intentionally excludes admin visits from tracking.
  • Check for duplicate Google Analytics code from a theme, another plugin, or a manually added script. Duplicate code causes conflicting or missing data.
  • If tracking stopped after adding a consent management plugin, test with consent tools temporarily disabled to isolate the conflict before assuming the GA4 property itself is broken.
  • Use GA4 Realtime reports or Google’s Tag Assistant browser extension to confirm whether the tag is firing at all.

Frequently Asked Questions

How do I add Google Analytics to WooCommerce?

Install the official Google Analytics for WooCommerce plugin, then go to WooCommerce >> Settings >> Integration and paste your GA4 Measurement ID into the Tracking ID field. No manual code editing is required for standard setup.

How do I add the Google Analytics tracking code to WooCommerce?

Create a GA4 property and data stream at analytics.google.com, copy the Measurement ID it generates, and paste it into the plugin’s Tracking ID field under WooCommerce >> Settings >> Integration. The plugin inserts the tracking code for you.

Can I connect WooCommerce to Google Analytics without a plugin?

Yes, by adding the GA4 tag manually through your theme’s header, through Google Tag Manager, or through Google’s Site Kit plugin. However, manual and theme-based methods make ecommerce event tracking (add-to-cart, purchase, and so on) harder to set up correctly, and a theme switch can silently remove the tracking code. The dedicated plugin is the more reliable option for most stores.

Does Google Analytics track WooCommerce conversions and enhanced ecommerce events?

Yes. The official plugin automatically sends view_item, add_to_cart, begin_checkout, and purchase events to GA4, which appear in the Monetization reports. This gives you conversion rate, revenue, and product-level performance without extra setup.

Is Google Analytics for WooCommerce free?

Yes. Both GA4 and the official WooCommerce integration plugin are free. Some premium analytics plugins add features like checkout-step abandonment tracking and dynamic remarketing, but core ecommerce tracking doesn’t require a paid tool.

Is WooCommerce Analytics the same as Google Analytics for WooCommerce?

No. WooCommerce Analytics is a built-in reporting feature inside WooCommerce covering basic sales and order data. Google Analytics for WooCommerce connects your store to GA4, Google’s separate tracking platform, which covers traffic sources, user behavior, and marketing campaign performance in more depth.

Can I export WooCommerce Google Analytics data to Looker Studio or BigQuery?

GA4 supports exporting data to both. BigQuery export is available at no extra cost on standard GA4 properties and is set up from the GA4 Admin panel under BigQuery Links. This is a more advanced setup step outside the scope of basic store tracking, and it’s worth confirming the current export options in your GA4 property before relying on it for reporting.

Why did my Google Analytics tracking stop working after installing the plugin?

This is most often caused by a conflict with a cookie consent plugin, duplicate tracking code from another source, or an outdated plugin version. Check the troubleshooting steps above, and confirm you’re running the latest version of both WooCommerce and the analytics plugin.

Key Takeaways

  • GA4 is the only current version of Google Analytics; Universal Analytics was fully retired in 2023.
  • The official Google Analytics for WooCommerce plugin connects your store using a Measurement ID entered under WooCommerce >> Settings >> Integration.
  • Core ecommerce events, view_item, add_to_cart, begin_checkout, and purchase, are tracked automatically and appear in GA4’s Monetization reports.
  • Always verify tracking with GA4 Realtime reports after setup, since conflicts with consent plugins and duplicate tracking code are common causes of missing data.
  • UTM parameters, addable through CTX Feed’s Campaign URL Builder, let you see which product feed channels are actually driving traffic and sales.
  • WooCommerce Analytics and Google Analytics for WooCommerce are different tools; the plugin in this guide connects to GA4 specifically.
[CTA] Stop reading. Start fixing.
Fix your product feed with CTX Feed Pro.

Free version on WordPress.org. Every Pro licence includes a 30-day money-back guarantee.

[0] Comments
Join the discussion
Leave a comment →

Leave a comment.

[NEWSLETTER] Field Notes, monthly

One email a month.
Zero fluff.

Channel-spec changes, plugin releases, the occasional deep dive on something we broke.