WooCommerce · Guide
How to Track WooCommerce Sales in GA4
Short answer
Install the free Google Analytics for WooCommerce extension, add your GA4 Measurement ID under WooCommerce, Settings, Integration, and tick the purchase and add-to-cart events. Place a test order and watch the purchase event arrive in GA4 Realtime, then mark purchase as a key event. Find your sales in Reports, Monetization, Ecommerce purchases.
Key takeaways
- The free Google Analytics for WooCommerce extension sends view, cart, checkout, and purchase events to GA4.
- Your Measurement ID starts with G- and lives under Admin, Data collection, Data Streams.
- A purchase event needs transaction_id, value, currency, and items to count revenue correctly.
- GA4 marks purchase as a key event by default; a standard property can mark up to 30 key events.
- Test while logged out, watch Tag Assistant, and wait 24 hours for standard reports.
What does GA4 track for a WooCommerce store?
GA4 records your store as a stream of events, and a sale is one event among them.
Each step a shopper takes sends an event with a fixed name: view_item when a product page loads, add_to_cart when a product goes into the cart, begin_checkout when checkout starts, and purchase when the order completes.
Google's ecommerce docs list the full set, including view_item_list, remove_from_cart, add_shipping_info, add_payment_info, and refund.
Ecommerce events are not collected on their own. Google states this plainly: the events need extra context, such as which product and at what price, so your store platform has to send them.
Only the purchase event counts money. The rest build the funnel that shows where shoppers drop off before they buy, which is why the purchase event deserves the most care. A missing or doubled purchase event matters more than any other tracking gap.
How do you create a GA4 property and find your Measurement ID?
Create a GA4 property first, then copy its Measurement ID for WooCommerce.
- Sign in to Google Analytics and click Admin at the bottom of the left-hand menu.
- Create a property if you do not have one, or pick the property for your store.
- In the Data collection and modification column, click Data Streams.
- Select the data stream for your website.
- Copy the Measurement ID, which begins with
G-, from the top right of the page.
Universal Analytics stopped processing data in 2023, so GA4 is the only version you can set up today. If you still see old Universal Analytics code on your site, remove it before you connect GA4, or your sales will be counted twice.
How do you connect WooCommerce to GA4?
Use the free official extension, Google Analytics for WooCommerce, and paste in your Measurement ID.
- Go to Plugins > Add New and search for “Google Analytics for WooCommerce”.
- Install and activate the extension by WooCommerce.
- Go to WooCommerce > Settings > Integration > Google Analytics.
- Paste your Measurement ID, beginning with
G-, into the field. - Tick the tracking options you need and click Save changes.
WooCommerce's setup guide notes it can take up to 48 hours for the connection to start working. Standard reports take up to 24 hours to show new data, so do not judge the setup on the first hour.
Use one tracking source only. If your theme, Site Kit, or another plugin already loads GA4, turn that off first, or the same sale will be counted twice.
Which events should you turn on?
Turn on the events that match the questions you want to answer about your store.
| Event | What it records | Turn it on when |
|---|---|---|
| view_item | A product page is viewed | You want to know which products get seen |
| add_to_cart | A product goes into the cart | You want the add-to-cart rate |
| begin_checkout | Checkout starts | You want the checkout start rate |
| add_shipping_info | Shipping details are given | You want to see shipping drop-off |
| add_payment_info | Payment details are given | You want to see payment drop-off |
| purchase | An order completes | Always, this is the sale |
| refund | An order is refunded | You want net revenue, not gross |
Purchase Transactions is the key toggle. It needs a payment gateway that sends the shopper back to the thank-you page after payment. WooCommerce names WooPayments, Stripe, PayPal Braintree, PayPal Payments, and Square as gateways that do this.
Also tick Add to Cart Events, Product Detail Views, and Checkout Process Initiated for a basic funnel. The extension can also track product impressions and clicks from listing pages, 404 errors, and Display Advertising, if you need them.
If you pay with WooPayments, the redirect back to your store happens by default.
Our comparison of WooCommerce Payments vs Stripe covers the gateway choice in more depth.
How do you mark a purchase as a key event?
A key event is an event you have marked as important to your business, and GA4 counts it apart from the rest.
GA4 marks purchase as a key event by default, so most stores need no extra step. Google's key events help confirms this, and explains that any event you collect can become a key event.
To check, open Admin > Data display > Events in GA4 and look for the star next to purchase. To mark another event, such as generate_lead for a quote form, find it in the same list and click the star.
A standard property can mark up to 30 key events, and Analytics 360 allows 50. Marking an event does not change historic data, and Google says to allow up to 24 hours before it shows in standard reports.
The word “conversion” now means something narrower. Google renamed conversions to key events in GA4, and a conversion is now an action you use for Google Ads bidding, created from a key event.
If you run Google Ads, you can turn a key event into a conversion for bidding. Link GA4 to Google Ads first, then create the conversion from the key event. The conversion appears in the Advertising section of Analytics, not in the standard reports.
Where do you find your sales in GA4?
Open the Monetization reports, which are built for stores.
Go to Reports > Monetization > Overview for total revenue, transactions, and average order value. Then open Reports > Monetization > Ecommerce purchases to see items viewed, added to cart, and purchased by product.
To see where sales came from, open Reports > Acquisition > Traffic acquisition. Change the Conversions drop-down to Purchase to see revenue by channel, such as organic search, paid search, or social.
If you want GA4 without Google's data collection, read our comparison of Google Analytics vs privacy-friendly analytics for WordPress.
For a different kind of traffic question, our guide to tracking ChatGPT traffic in Google Analytics uses the same reports.
How do you check that tracking works?
Place a test order and watch the events arrive in real time.
- Log out of WordPress first. Page views are not tracked for logged-in admin users, so a test order placed while logged in will not show.
- Open Tag Assistant and enter your website URL, then click Connect.
- Grant consent on the cookie banner when it appears.
- In Tag Assistant, click your Measurement ID and open the Hits Sent tab.
- On your store, add a product to the cart, start checkout, and place a test order.
- Watch for
add_to_cart,begin_checkout, and exactly onepurchaseevent in the Hits Sent tab.
Then open Reports > Realtime in GA4 and confirm the purchase appears there within a few minutes. Standard reports can take up to 24 hours, so Realtime is the place to check on day one.
A purchase event must carry four things to count revenue correctly.
Google's events reference requires transaction_id (your order number, unique per order, which lets GA4 drop duplicates), value (the sum of price times quantity, without shipping or tax), currency (the three-letter ISO code), and items (up to 200 entries, each with an item_id or item_name).
What mistakes should you avoid?
Most broken GA4 setups come from one of these errors.
- Running two tracking sources at once, which double-counts revenue. Pick one: the official extension, Tag Manager, or Site Kit.
- Testing while logged in as admin, which sends no page views and looks like a broken setup.
- Using a gateway that never returns shoppers to the thank-you page, so the purchase event never fires.
- Reading standard reports an hour after setup and concluding nothing works. Wait 24 hours.
- Marking every event as a key event, which buries the sales that matter under noise. Keep the list short.
- Ignoring consent. Visitors in the EEA, the UK, and Switzerland must grant cookie consent before tracking starts, so use a consent tool that works with the WP Consent API.
- Forgetting refunds. The free extension does not send refund events, so GA4 revenue stays gross unless you add a tool that sends them. The paid Google Analytics Pro extension adds refund tracking, along with coupon usage and product reviews, and is listed at $79 on WooCommerce as of November 2026.
Fix the purchase event first, then the funnel. A store that counts every sale once, with the right order number and value, can trust every report that follows.
Frequently asked questions
Is the free Google Analytics for WooCommerce extension enough?
No. The free official extension covers the core events: views, add-to-cart, checkout start, and purchase. It does not send refund events, and it cannot rename events or track coupon use in detail. For those, the paid Google Analytics Pro extension, or a Tag Manager setup with a data layer, is the usual next step.
Why is GA4 not showing my WooCommerce sales?
The usual causes are a duplicate tracking source, a test order placed while logged in as admin, or a gateway that never returns shoppers to the thank-you page. Check Tag Assistant first: if no purchase event appears in the Hits Sent tab, the problem is on your site. If it appears there but not in GA4, wait 24 hours for standard reports.
Does GA4 double-count WooCommerce orders?
Yes, with care. The purchase event carries transaction_id, which is your order number, and GA4 uses it to drop duplicate events for the same purchase. Duplicates still happen when two tracking sources run at once, or when a shopper refreshes the thank-you page and the event fires again. Run one tracking source to keep revenue clean.
How long does GA4 take to show WooCommerce sales?
GA4 shows the data after a delay, usually up to 24 hours for standard reports. Realtime reports update within a few minutes of an event. If the connection is new, WooCommerce notes it can take up to 48 hours before data starts flowing, so wait a day before you change anything.
Do I need cookie consent for GA4 on WooCommerce?
Yes. GA4's consent mode means visitors in the EEA, the UK, and Switzerland must grant cookie consent before analytics tracking activates. WooCommerce recommends a Google-recommended consent platform that works with the WP Consent API, and the consent state must update after the visitor grants consent.
Sources
- Google Analytics for WooCommerce WooCommerce
- Measure ecommerce Google for Developers
- Conversions vs. key events in Google Analytics Google Analytics Help
- Recommended events Google for Developers
- Tag Assistant Google
- WooCommerce Google Analytics Pro WooCommerce
- [UA→GA4] Migration reference Google Analytics Help
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
