Running a WooCommerce store without Google Analytics 4 properly configured is like driving without a dashboard. You can keep moving but you have no idea how fast you’re going, what’s breaking down, or whether you’re actually heading in the right direction.
Basic page view tracking is not enough. If your GA4 setup doesn’t capture add-to-cart events, checkout steps, and completed purchases with accurate revenue data, you are making every product, marketing, and pricing decision based on incomplete information.
This guide walks through the complete GA4 setup for WooCommerce — from creating your property to verifying that purchase events are firing correctly with accurate revenue data. Budget two to three hours for a clean first-time setup.
Table of Contents
What You Need Before Starting
Before touching any plugin or settings, confirm you have admin access to all three of the following:
- Your Google Analytics account — the one you want to track your store in
- Your WordPress admin panel — to install and configure plugins
- Your WooCommerce store live and processing orders — or a test environment that mirrors production
Also confirm your WooCommerce currency settings match the currency you plan to report in GA4. A mismatch between WooCommerce currency and GA4 property currency causes revenue to report as zero or incorrectly — one of the most common and frustrating tracking errors on WooCommerce stores.
Step 1 — Create a GA4 Property
If you already have a GA4 property connected to your store, skip to Step 2. If you are starting fresh:
Go to analytics.google.com and sign in with your Google account.
Click the gear icon in the bottom left — this opens the Admin panel.
Under the Property column, click Create Property.
Fill in:
- Property name — use your store name or domain. Example: “YourStore.com — GA4”
- Reporting time zone — set to your primary market. If you’re targeting the UK, set to London. If US, set to your primary state or Eastern Time
- Currency — must match your WooCommerce currency exactly. If WooCommerce is set to GBP, GA4 must also be GBP
Click Next, fill in your business details, and click Create.
After creating the property, you will be prompted to set up a data stream. Select Web, enter your store URL, and give the stream a name. Click Create stream.
On the next screen you will see your Measurement ID — it starts with G- followed by a string of numbers and letters. Copy this. You will need it in the next step.
Step 2 — Choose Your Integration Method
There are three ways to connect GA4 to WooCommerce. Each has different trade-offs:
Option A — Official Google Analytics for WooCommerce Plugin
This is the WooCommerce team’s official plugin, maintained by Automattic. It connects your Measurement ID directly to WooCommerce and handles the standard ecommerce events out of the box — page views, add-to-cart, begin checkout, and purchase.
Best for: most WooCommerce stores that don’t need highly customised tracking.
Option B — Google Tag Manager (GTM4WP)
Install Google Tag Manager on your WordPress site using the GTM4WP plugin, then configure GA4 tags within GTM. This approach gives you significantly more control — you can fire custom events, exclude internal traffic precisely, and manage all tracking from one GTM container without touching WordPress code every time something changes.
Best for: stores with more complex tracking needs, or where a developer is managing the analytics setup.
Option C — Google Site Kit
If you’ve already installed Google Site Kit (the plugin that connects Google Search Console and GA4 to your WordPress dashboard), it inserts the GA4 tag automatically. However — and this is important — Site Kit handles basic page view tracking only. It does not configure WooCommerce ecommerce events. You still need the official WooCommerce plugin or GTM to track purchases properly.
Recommendation for most WooCommerce store owners: use the official Google Analytics for WooCommerce plugin for the simplest, most reliable setup. If you already have GTM on your site, the GTM route gives you more long-term flexibility.
This guide covers the official plugin method — the most straightforward approach for the majority of stores.
Step 3 — Install and Configure the Official Plugin
Go to your WordPress dashboard → Plugins → Add New.
Search for “Google Analytics for WooCommerce” — the official plugin by WooCommerce. It will have the WooCommerce logo and over 200,000 active installs.
Click Install Now → Activate.
After activation, go to WooCommerce → Settings → Integration tab. You will see the Google Analytics settings panel.
Configure the following:
Google Analytics Tracking ID
Paste your Measurement ID (the G-XXXXXXXX string from Step 1) into this field.
Use Global Site Tag
Enable this. It inserts the GA4 tracking snippet directly into your site’s <head> — required for GA4 to function.
Track purchases
Enable this. Without it, completed orders are not sent to GA4 as purchase events — which means zero revenue data in your reports.
Track add to cart events
Enable this. Tracks when visitors add products to their cart, giving you funnel data above the checkout level.
Track remove from cart
Enable this. Shows you which products customers add and then decide against — useful product insight.
Display Advertising support / Remarketing
Enable if you plan to run Google Ads remarketing campaigns targeting your WooCommerce visitors. Adds the remarketing cookie layer on top of the standard GA4 tag.
Save your settings.
Step 4 — Enable Enhanced Measurement in GA4
Go back to your GA4 property. Navigate to Admin → Data Streams → your web stream.
Under Enhanced Measurement, make sure the toggle is On. Click the gear icon next to the toggle and confirm the following events are enabled:
- Page views
- Scrolls
- Outbound clicks
- Site search
- Video engagement
- File downloads
Enhanced Measurement handles these events automatically without any additional code. The WooCommerce plugin handles the ecommerce-specific events (purchase, add-to-cart, begin-checkout) separately — these two layers work together to give you complete tracking coverage.
Step 5 — Mark Purchase Events as Conversions
By default, GA4 tracks events but doesn’t automatically treat purchase events as conversions in your reports. You need to manually mark the purchase event as a conversion.
In GA4, go to Admin → Events.
Find the event named purchase in your event list. If you don’t see it yet, place a test order first (Step 7 below) to trigger the event, then return here.
Click the toggle in the Mark as conversion column next to the purchase event.
Also consider marking add_to_cart and begin_checkout as conversions if you want full funnel conversion visibility in your reports.
Step 6 — Connect GA4 to Google Search Console
This is an optional but highly recommended step that most guides skip.
Connecting GA4 to your Google Search Console property lets you see organic search data — including the keywords driving traffic — directly inside GA4’s reports. This is particularly useful for WooCommerce stores running content alongside their shop.
In GA4, go to Admin → Property Settings → Search Console Links.
Click Link → select your Search Console property → confirm the link.
Once connected, your GA4 reports will include a Search Console section showing organic traffic, top queries, and landing page performance.
Step 7 — Verify Your Setup With a Test Order
Never assume your tracking is working — always verify it before relying on the data.
Method 1 — GA4 Realtime Report
Go to your GA4 property → Reports → Realtime.
On your WooCommerce store, in a separate browser tab or incognito window: view a product, add it to cart, proceed through checkout, and complete a test order (use Stripe’s test card 4242 4242 4242 4242 or temporarily set up the “Cheque payment” gateway for testing).
In the Realtime report, you should see events appearing within seconds:
page_view— firing on each pageview_item— firing on the product pageadd_to_cart— firing when product added to cartbegin_checkout— firing when checkout page loadedpurchase— firing on the order confirmation page
If purchase fires but revenue shows as $0 or is missing — go back and check your currency settings match between WooCommerce and GA4.
Method 2 — GA4 Debug View
For more detailed event verification, install the Google Analytics Debugger Chrome extension. Activate it, then go to GA4 → Admin → DebugView.
Your browser session now appears as a debug device in GA4. Every event fires in near-real-time with full parameter details — you can see exactly what data is being sent with each event, including product names, prices, quantities, and transaction IDs.
This is the most reliable way to confirm your ecommerce tracking is complete and accurate.
Step 8 — Set Up the Reports You’ll Actually Use
GA4’s default home screen is useful but not optimised for ecommerce decision-making. Here are the reports worth bookmarking:
Monetisation — Ecommerce Purchases
Found under Reports → Monetisation → Ecommerce purchases. Shows revenue by product, transaction count, and average order value. This is your primary revenue report — check it weekly.
Acquisition — Traffic Acquisition
Shows which channels (organic search, paid, direct, social) are driving sessions to your store. Cross-reference with your Monetisation report to see which channels are driving revenue, not just traffic.
Engagement — Landing Pages
Shows which pages visitors first land on, with session counts and engagement rates. For WooCommerce stores running blog content alongside the shop, this tells you which posts are driving the most entry traffic.
Exploration — Funnel Exploration
Create a custom funnel exploration to visualise drop-off at each stage: product view → add to cart → begin checkout → purchase. This is where you identify exactly where potential customers are abandoning your store.
To create it: Explore → Blank exploration → Select “Funnel exploration” as the technique → Add your funnel steps using the events: view_item, add_to_cart, begin_checkout, purchase.
Common WooCommerce GA4 Problems and Fixes
Purchase event fires but revenue is zero
Currency mismatch between WooCommerce and GA4 property settings. Go to GA4 Admin → Property Settings → confirm currency matches WooCommerce Settings → General → Currency.
Duplicate purchase events — revenue inflated
Usually caused by two tracking implementations firing simultaneously. Check whether you have both Site Kit and the official WooCommerce plugin active — if both are inserting the GA4 tag, you get duplicate events. Remove the GA4 connection from Site Kit and use only the WooCommerce plugin for ecommerce tracking.
Add to cart events not tracking
AJAX add-to-cart (where the cart updates without a page reload) can miss events with some plugin configurations. In the WooCommerce GA4 plugin settings, check the “Track add to cart events” option and confirm your theme isn’t overriding the standard WooCommerce add-to-cart behaviour.
GA4 showing traffic but no ecommerce data
The basic GA4 tag is firing (page views tracking) but ecommerce events are not. This means the GA4 tag was installed via Site Kit or a manual snippet, but the WooCommerce ecommerce event layer was never added. Install the official Google Analytics for WooCommerce plugin and configure it as described in Step 3.
Revenue in GA4 doesn’t match WooCommerce orders
A small variance (5–10%) is normal — caused by ad blockers, consent refusals, and attribution timing differences. Variances above 15–20% indicate missing purchase events. Use DebugView to verify the purchase event is firing on every test order completion.
What to Track Beyond the Basics
Once your core ecommerce tracking is verified and accurate, consider these additional tracking setups that give WooCommerce stores deeper insight:
Internal site search tracking — if your store has a search bar, tracking what visitors search for reveals product demand and catalogue gaps. Enable under GA4 Enhanced Measurement settings.
Scroll depth on product pages — understanding how far visitors scroll on product pages tells you whether they are reading your descriptions or bouncing after seeing the price. Enabled automatically via Enhanced Measurement.
Checkout field drop-off — identifying which checkout fields cause abandonment requires GTM configuration beyond the basic plugin setup, but it is worth implementing for stores with meaningful checkout traffic.
Final Thoughts
Accurate GA4 ecommerce tracking is not optional if you want to grow a WooCommerce store intelligently. Every significant decision — which products to promote, which marketing channels to invest in, where checkout friction exists — should be made with verified data behind it.
The setup takes a few hours. The payoff is every business decision you make from that point forward being grounded in real numbers rather than guesswork.
Related reads: