Pasting a basic GA4 tracking snippet into your site gives you pageviews and session data. For a WooCommerce store, that is not enough. You need enhanced eCommerce event tracking to understand which products people view, where they drop off in the checkout funnel, and which revenue actually came through. Here is how to set it up correctly.
GA4 out of the box tracks pageviews, sessions, and some basic engagement events. What it does not do automatically is track eCommerce-specific interactions: product list impressions, individual product views, add-to-cart events, checkout initiation, and completed purchases with revenue and product data attached.
These eCommerce events require your site to push structured data into GA4's data layer at the right moments, when a product is viewed, when a user clicks "Add to Cart", when they reach the checkout, and when an order confirmation page loads. Standard GA4 setup does none of this. Without it, you have no purchase data, no conversion rate, and no ability to see which products or traffic sources are actually generating revenue.
Universal Analytics (the previous version of Google Analytics) was deprecated in July 2023. If you are still referencing UA- tracking IDs anywhere in your setup, they are no longer collecting data. GA4 is the only current option.
Log into analytics.google.com and go to Admin > Create > Property. Enter your property name (your store name), select your reporting time zone and currency, then follow the setup flow. Choose "Web" as the platform and enter your store's URL. GA4 will generate a Measurement ID in the format G-XXXXXXXXXX, you will need this for your WooCommerce integration.
In the GA4 property setup, make sure to enable Google Signals if you want cross-device reporting, and configure your data retention period under Admin > Data Settings > Data Retention, the default is two months, which is inadequate for meaningful year-over-year analysis. Set it to the maximum of 14 months.
Also set up a Google Ads link if you run Google Ads, and a Search Console link (covered further below) during the property setup. These connections make GA4 significantly more useful for store analysis.
There are three main ways to get GA4 eCommerce tracking working on WooCommerce: the WooCommerce Google Analytics plugin (free, from WooCommerce.com), Google Site Kit (free, from Google), or a manual implementation via Google Tag Manager (GTM).
The WooCommerce Google Analytics plugin is the recommended option for most stores. It is maintained by WooCommerce/Automattic, supports GA4 enhanced eCommerce events natively, and requires no custom code or GTM knowledge. Install it, connect your GA4 property, and you get full funnel tracking out of the box.
Google Site Kit is a general-purpose Google tools integration plugin for WordPress. It can connect GA4 but its eCommerce event support is limited compared to the dedicated WooCommerce plugin. It is better suited to content sites than stores.
GTM gives you the most control and is the right choice if you have a developer on hand, need custom event configurations, or are running a complex store with non-standard checkout flows. But for the majority of WooCommerce setups, the dedicated plugin gets you 95% of the value with a fraction of the complexity.
Install WooCommerce Google Analytics Integration from the WordPress plugin repository (search "WooCommerce Google Analytics", it is published by WooCommerce). Activate it, then go to WooCommerce > Settings > Integration > Google Analytics.
Paste your GA4 Measurement ID (the G-XXXXXXXXXX value) into the "GA4 Measurement ID" field. Then enable the following options: "Track 404 errors", "Enable Enhanced eCommerce", and "Purchase transactions". Save changes.
The "Enable Enhanced eCommerce" toggle is the critical one. With it enabled, the plugin fires GA4 eCommerce events at each stage of the funnel: view_item on product pages, add_to_cart when items are added, begin_checkout when the checkout page loads, and purchase with full order data on the thank-you page. These are the standard GA4 eCommerce events that populate the revenue reports.
If your store uses a custom checkout flow (for example, a one-page checkout plugin or a headless storefront), test event firing carefully, non-standard checkout implementations sometimes prevent the thank-you page event from firing correctly, which would cause purchases to go untracked.
With enhanced eCommerce tracking active, GA4 collects a rich set of store-specific data. At the product level: product name, SKU, category, price, and quantity for every product impression (when a product appears in a list), product click, and product detail view. At the transaction level: order ID, revenue, tax, shipping, and coupon code for every completed purchase.
In GA4, this data surfaces in several places. The Monetisation > Ecommerce purchases report shows revenue and purchase count by item. The Monetisation > Purchase journey report shows a funnel from session start through to purchase, with drop-off rates at each step, this is your primary conversion optimisation tool. The Monetisation > Checkout journey report breaks down abandonment at each checkout step specifically.
You can also build custom exploration reports to segment revenue by traffic source, device type, or landing page, which is where GA4 becomes genuinely useful for store marketing decisions.
Linking GA4 to Search Console brings organic search query data into GA4 reports, so you can see which search terms are driving traffic and, more importantly, which are driving purchases. Go to GA4 Admin > Property Settings > Product Links > Search Console Links and follow the linking flow. You'll need to be a verified owner in Search Console for the same property.
Once linked, the Acquisition > Search Console reports in GA4 show landing pages and queries alongside engagement and conversion data. This is particularly useful for identifying high-traffic product or category pages that are not converting, which points to either a keyword mismatch (informational intent vs transactional intent) or a page content or UX issue.
After setup, use GA4's DebugView to confirm events are firing correctly. In the GA4 property, go to Admin > DebugView. Install the Google Analytics Debugger Chrome extension, enable it, then browse your store, your device will appear in DebugView and you will see every GA4 event in real time as you navigate, add products to cart, and go through checkout.
Walk the full purchase funnel in DebugView: visit a product page (should fire view_item), add to cart (add_to_cart), view cart (view_cart), start checkout (begin_checkout), complete a test purchase (purchase with order data). If any of these events are missing or the purchase event lacks revenue data, investigate before launching to ensure your tracking is accurate from day one.
Also check the Real-Time report in GA4, it shows active users and recent events with a short delay. It is less granular than DebugView but useful for a quick sanity check and for confirming tracking continues to work after plugin updates.
HostBible's hosting is optimised for WooCommerce with LiteSpeed, SSD storage, and free SSL on every plan.
View Hosting Plans