
There are three reliable ways to connect WooCommerce to Google Analytics 4: the official Google Analytics for WooCommerce plugin, Google Tag Manager via GTM4WP, or FunnelKit's built-in pixel tracking.
The right one depends on whether you just need basic eCommerce data or you're tracking upsells, order bumps, and multi-step checkouts.
In this guide, we'll walk you through all three, set up GA4 event tracking correctly, cover Consent Mode v2, and fix the duplicate-event errors that wreck most setups.
Table of Contents
- 1 Methods to Set Up WooCommerce GA4 Integration
- 2 Prerequisites for WooCommerce Google Analytics Setup
- 3 Which WooCommerce Events GA4 Can Track?
- 4 Method 1: Set Up GA4 With the Official Google Analytics for WooCommerce Plugin
- 5 Method 2: Set Up GA4 With FunnelKit (Best for Funnels, Upsells, and Order Bumps)
- 6 Method 3: Set Up GA4 With Google Tag Manager (GTM4WP)
- 7 How to Test Whether Events Are Capturing in Google Analytics?
- 8 GA4 Consent Mode v2 & GDPR for WooCommerce
- 9 Troubleshooting WooCommerce GA4 Tracking
- 10 Frequently Asked Questions (FAQs) on WooCommerce Google Analytics Integration
- 11 Set Up Your WooCommerce Google Analytics Integration the Right Way!
Methods to Set Up WooCommerce GA4 Integration
Here are the four most common options to compare.
| Method | Best For | GA4 eCommerce Events | Funnel / Upsell Tracking | Coding Needed | Cost |
|---|---|---|---|---|---|
| Google Analytics for WooCommerce (official) | Basic, free, official setup | Yes (standard set) | No | No | Free |
| FunnelKit Funnel Builder | Stores running upsells, order bumps, and multi-step checkouts | Yes | Yes (order bumps, upsells, funnel steps) | No | Free (Lite) / Pro |
| GTM4WP + Google Tag Manager | Granular control, developers, multi-tag setups | Yes (configurable) | Via data layer | Yes | Free |
If you want the official option, use Method 1. If your revenue comes from order bumps and one-click upsells that most setups can't see, use Method 2. If you need fine-grained tag control or run multiple marketing pixels, use Method 3.
Prerequisites for WooCommerce Google Analytics Setup
Before you connect anything, you need three things in place:
- A GA4 property and Measurement ID. If you're still on a Universal Analytics property, it stopped collecting data on July 1, 2023, and won't work. You need GA4. If you do not have one yet, we show you how to create it in Method 1.
- WordPress admin access to install plugins and modify settings
- WooCommerce is installed and activated with at least one published product, so you can fire a real test event.
Which WooCommerce Events GA4 Can Track?
GA4 measures customer actions as events. For an eCommerce store, the events that matter most are:
- Page view: When a user lands on any page of your WooCommerce store
- View item: The user views an item on your store’s product page
- Add to cart: Track when customers add a product to their cart
- Begin Checkout: When the user starts the checkout process
- Add shipping info: Triggered when shipping details are entered
- Add payment info: When a user adds the payment information during checkout
- Purchase: User successfully makes a purchase (usually denoted by when a user goes from checkout to the thank you page)
These events power GA4's eCommerce and funnel reports.
A funnel-focused plugin can add more, such as order bump conversions, upsell acceptances, opt-in leads, and custom funnel steps, which we cover in Method 2.
For the complete list of events, see Google's GA4 eCommerce events reference.
Method 1: Set Up GA4 With the Official Google Analytics for WooCommerce Plugin
The simplest free option is the official plugin, now called Google Analytics for WooCommerce (formerly named WooCommerce Google Analytics Integration).
It is built and maintained by WooCommerce. It adds standard GA4 eCommerce tracking, and it is a solid starting point for stores that do not run advanced funnels.
You can install it for free from the WordPress plugin directory. It covers the standard eCommerce events, but it does not track funnel-specific actions like order bumps or one-click upsells.
Step 1: Create a GA4 property and copy your Measurement ID
Log in to your Google Analytics account and open Admin.

Create a new GA4 property from your admin dashboard:

Enter the name of your Google Analytics 4 property, set the reporting zones, and specify your online store's currency.

Next, select the information about your business, including its industry and size.

Choose your business objectives in the next step to create your Google Analytics 4 property.

Clicking on ‘Create’ will create a new GA4 property. All you need to do is configure it for your WooCommerce store.
Next, set up the platform for data collection by selecting “Web” for your WooCommerce store.

Next, enter your WooCommerce store URL and your stream name.
Make sure to enable the enhanced measurement option there. It allows you to measure interactions and content on your website in addition to usual page views.

Clicking on ‘Create & continue’ will successfully create your data stream.
Simply close the next Tag window, and you’ll be able to see your Google Analytics 4 Measurement ID:

After the stream is created, copy the Measurement ID, which starts with G-.
Step 2: Install and activate the plugin
In your WordPress dashboard, go to Plugins, choose 'Add New', and search for Google Analytics for WooCommerce.

Install and activate it. The settings then appear under WooCommerce in the Integration tab.
Step 3: Enter your Measurement ID and enable eCommerce event tracking
Open the integration settings and paste your G- Measurement ID into the Google Analytics field.

Turn on the ecommerce tracking options so the plugin sends add-to-cart, begin-checkout, and purchase events to GA4.

If you run another analytics plugin or Site Kit, disable its ecommerce tracking now. Two tools sending the same purchase event is the most common cause of duplicate revenue in GA4.
Save your settings, then place a test order from a product page through to the thank-you page.
Open GA4 Realtime or DebugView and confirm the events appear. Run the test on both desktop and mobile, since tracking can behave differently on each.
Method 2: Set Up GA4 With FunnelKit (Best for Funnels, Upsells, and Order Bumps)
If your store runs sales funnels, the official plugin will miss your most profitable events.
To track standard ecommerce events and funnel actions from one place, we use FunnelKit Funnel Builder.
Its built-in pixel tracking sends GA4 events for page views, add to cart, and purchases, plus funnel-specific events like order bump conversions, one-click upsell acceptances, opt-in leads, and individual funnel steps.
FunnelKit offers a free Lite version on WordPress.org that includes GA4 integration, so you do not need a separate analytics plugin.
The Pro plan starts at $99.50/year and adds optimized checkouts, order bumps, and one-click upsells whose performance you can then measure directly in GA4.
Follow the step-by-step instructions below to connect GA4:
Step 1: Add the GA4 ID to FunnelKit pixel tracking
Navigate to FunnelKit ⇨ Settings ⇨ Pixel Tracking section within FunnelKit Funnel Builder.
Under Google Analytics, paste the Analytics ID.

If you have multiple GA4 properties, click Add Another Account and enter each Analytics ID using the same process. You can add as many as you need.

That’s it! You have successfully connected Google Analytics to your WooCommerce store.
You don’t need to enable any extra E-Commerce tracking settings; FunnelKit takes care of everything. Then, move on to the next step.
Step 2: Enable the different events you want to track
Here, you can enable the events you want to track with FunnelKit.
Here, enable the events you want to track on your website with FunnelKit.
Site-wide events
- Page View
- Add to Cart
- View Item
Sales page events
- Page View
Optin page events
- Page View
- Lead
Order Bump events
- Add to Cart
- Order Bump Conversion
Checkout page events
- Page View
- Add to Cart
- Begin Checkout Event
- Add Payment Info Event
Purchase events
- Page View
- Purchase
Track Steps
- Enable custom tracks
Enable custom funnel steps

Advanced
- Enable sending the parent product ID if your catalog doesn’t include variants.
- Add a prefix or suffix to the content_id (optional).
- Check to exclude shipping and/or taxes from the total.

Once done, click on the 'Save Changes' button to lock in all the changes made.
This completes your WooCommerce Google Analytics integration using FunnelKit for free.
Method 3: Set Up GA4 With Google Tag Manager (GTM4WP)
For technical users who want granular control, Google Tag Manager (GTM), combined with the GTM4WP plugin, is the most flexible option.
GTM4WP pushes WooCommerce data, such as cart contents and order details, into the data layer. GTM then reads that data layer and sends the events to GA4.
Choose this route if you already run GTM for other tags or if you need custom event logic.
This method does take longer to configure than a plugin, and you manage tags in two places.
A common question from store owners is whether they still need the official WooCommerce GA plugin when using GTM4WP.
In most cases, you do not, because GTM4WP and your GA4 tag inside Google Tag Manager replace it. Running both will usually duplicate your tracking.
Step 1: Create a GTM container
Set up a free Google Tag Manager account and container for your store.

Copy the container ID, which starts with GTM-.

Step 2: Install GTM4WP and paste the GTM ID
Install and activate the GTM4WP plugin, then paste your Google Tag Manager Container ID into its settings so the container loads on your site.

Step 3: Turn on eCommerce in the data layer
In GTM4WP, open the Integration and WooCommerce options. Enable track ecommerce, add cart and order data to the data layer, and exclude tax from revenue so your numbers stay accurate.
Leave the other options off until you actually need them.

Hit 'Save Changes' when done.
Step 4: Create your GA4 tag in GTM
In Google Tag Manager, add a Google tag using your GA4 Measurement ID.
Then create GA4 event tags that fire on the data layer events GTM4WP provides, such as add_to_cart, begin_checkout, and purchase.

Once done, save and publish your changes.
This is how to set up Google Analytics in WooCommerce using Google Tag Manager.
How to Test Whether Events Are Capturing in Google Analytics?
Follow the steps below to test events in your WooCommerce store and verify whether they are captured in Google Analytics.
1. Add the domain to Google Tag Assistant
Go to Google Tag Assistant and add the domain.

Enter the URL of your website and click on the ‘Connect’ button.

It’ll open up your website in a new tab.
Now, navigate to the pages in your store, and the extension will show the events that were triggered in real-time.
Click on ‘Continue’ and start testing the WooCommerce Google Analytics integration.

2. Navigate to your website and check the triggered events
Let’s now navigate to our WooCommerce website from the previous tab opened in point 1.
Adding a product to the cart
These are the events that get captured under Google Analytics 4 - WooCommerce integration:

As you can see, it has started capturing the events for your GA4 property.
If you click on any of these blocks, you can see the detailed event getting captured:

If you click on any of these blocks, you can see the detailed event getting captured:

Initiating the Checkout process and making a purchase
Next, we will start the checkout process and make a test purchase via the payment gateway.
These are the WooCommerce GA4 eCommerce tracking events that got triggered in the whole shopping process:

Furthermore, you can also see the data in real-time from the Google Analytics dashboard.

Monitoring the events in DebugView
You can monitor all the events with the 'DebugView' option in Google Analytics.
This allows you to see all your data in a single timeline.
Go to Admin ⇨ DebugView inside your Google Analytics account.

It'll show all the events getting triggered on your website based on your user's activities in a timeline.

Since all the events were captured, it means they are successfully being fired to the Google Analytics ID.
The data and reports for a particular day will be generated after 24 to 48 hours. You can view and analyze these metrics from there as well.
This means that events are successfully getting tracked for the Google Analytics 4 property in your WooCommerce store.
This is how you can test and verify the Google Analytics 4 implementations and event firing/capture on your WooCommerce store.
GA4 Consent Mode v2 & GDPR for WooCommerce
Since March 2024, Google requires Consent Mode v2 for any site that serves EEA or UK visitors and uses Google Analytics or Google Ads.
Without it, you either collect data without proper consent (a GDPR problem) or lose conversion data because Google has no consent signal to work with.
Consent Mode v2 passes four signals to Google's tags, each set to granted or denied:
- analytics_storage: Analytics cookies (GA4)
- ad_storage: Advertising cookies
- ad_user_data: Whether user data can be sent for advertising (added in v2)
- ad_personalization: Whether data can be used for personalized ads (added in v2)
For EEA traffic, all four should default to denied and flip to granted only after the visitor opts in.
How to set it up on WooCommerce (no code):
- Install a Google-certified CMP that supports Consent Mode v2, such as Complianz, CookieYes, WPConsent, and WebToffee’s GDPR Cookie Consent, all of which qualify.
- Install the free WP Consent API plugin. This is the bridge: it lets your consent banner broadcast consent decisions to every compatible plugin (Site Kit, WooCommerce’s own attribution tracking, and others) so they all respect the same choice.
- In your CMP, set region-specific defaults (EEA/UK denied by default) and map each cookie category to the right consent signal.
- Confirm Consent Initialization fires before any Google tag; the default state must be set before tracking loads.
Verify it works. Install Google's Tag Assistant extension, load your site, interact with the banner, and watch the consent state update from denied to granted.
If you run a caching or optimization plugin (WP Rocket, LiteSpeed), exclude your CMP's scripts from JS delay/minification, which is a frequent cause of consent signals not firing.
Troubleshooting WooCommerce GA4 Tracking
Let's explore common GA4 tracking issues and how to fix them.
- Purchase events firing twice (doubled revenue)
This happens when two plugins are always sending purchases at once. For example, the official plugin and FunnelKit, or a theme Gtag snippet plus a plugin.
Pick one method to own the purchase event and disable purchase tracking everywhere else.
A missing or unstable transaction_id also causes GA4 to count the same order multiple times; make sure every purchase includes a stable, unique transaction_id.
- Events are not firing at all
Confirm that the Measurement ID is correct and has been pasted only once. Check that you're testing as a non-admin (log out or use incognito).
For funnel/upsell pages, a custom thank-you page that doesn't use standard WooCommerce hooks, a redirect to a 404 page, or a JavaScript console error on the offer page will silently block the purchase pixel.
Verify that the buyer actually reaches the real thank-you page.
- Revenue in GA4 doesn't match WooCommerce sales
GA4 and your store count differently. Ad blockers and Safari ITP drop browser events; refunds and partial refunds reconcile differently; attribution windows differ; and consent-denied traffic is modeled rather than measured.
Large gaps usually trace to duplicate events (inflated) or ad-blocked/consent-denied loss (deflated). Server-side tracking narrows the deflation gap.
- DebugView shows nothing
Debug mode isn't enabled on the stream, an ad blocker is active in your test browser, or a caching plugin is stripping the tracking script.
Disable the blocker, enable debug mode, and exclude tracking scripts from caching.
- Conflicts with Google Site Kit or a consent plugin
Running Site Kit and a dedicated GA plugin results in double-loading GA4. Choose one.
If a consent plugin blocks Google scripts before consent, make sure it routes through the WP Consent API so signals are shared rather than scripts being hard-blocked in a way that breaks measurement.
Frequently Asked Questions (FAQs) on WooCommerce Google Analytics Integration
WooCommerce doesn’t include Google Analytics by default. You have to connect it. You don’t strictly need it to run a store, but without it, you have no reliable view of which products sell, where buyers abandon checkout, or which traffic sources drive revenue. WooCommerce's own Analytics tab gives you sales numbers; GA4 adds behavioral and source/medium data on top. Most stores want both.
No, you don't need Google Tag Manager for WooCommerce GA4. A plugin (the official one or FunnelKit) sends GA4 events without GTM. Reach for GTM4WP only when you need custom triggers, manage multiple pixels through a single container, or plan to switch to server-side tracking.
Yes, you can track individual product performance, customer behavior, and other key metrics using Google Analytics.
Yes, it can. If you use other methods or plugins, we recommend disabling the "eCommerce tracking" feature in other plugins to prevent the 'Purchase' event from firing twice.
Yes, you can track subscriptions by capturing the initial purchase value of subscription products. You get the purchase events of product ID, subscription item, value, and other recurring data to track your subscriptions.
Set Up Your WooCommerce Google Analytics Integration the Right Way!
For WooCommerce store owners, it’s crucial to closely monitor user behavior and eCommerce conversions.
And you can do that with Google Analytics.
Google Analytics will tell you about your store’s performance - sales, user activities, abandonment, and almost anything else you want to know.
But first, you need to integrate it with your store.
Connecting WooCommerce to GA4 is about choosing the method that best fits your store, then verifying that every event actually fires.
Use the official plugin for a simple store, FunnelKit, when upsells and order bumps drive your revenue, or GTM4WP when you need granular tag control.
Whichever you pick, run only one GA tracking method, set up Consent Mode v2 if you have EEA or UK traffic, and confirm your purchase event in DebugView before you trust a single number.
If your store runs funnels, opt-ins, or one-click upsells, FunnelKit Funnel Builder tracks those funnel events out of the box in its free version, which is the data a standard GA setup never sees.
Here are some additional resources for you:
- Set Up WooCommerce Facebook Pixel
- Add TikTok Pixel to WooCommerce
- Add Snapchat Pixel to WooCommerce
- Set Up Google Ads Conversion Tracking In WooCommerce
- Enable Pinterest Conversion Tracking In WooCommerce

Editorial Team
July 7, 2026Are you looking for WooCommerce checkout optimization hacks to streamline your users' shopping experience? 7 out of 10 shoppers who reach a WooCommerce checkout leave without paying; according to Baymard...

Editorial Team
July 6, 2026A WooCommerce order form lets customers select multiple products, set quantities, and choose variations from a single page instead of visiting individual product pages. There are two ways to add...

Editorial Team
July 6, 2026The Bricks WooCommerce builder is built directly into the Bricks theme. Activate the free WooCommerce plugin, and Bricks unlocks more than 30 store-specific elements plus visual templates for every part...






