Full Answer
Tracking WooCommerce conversions in GA4 requires connecting your store's e-commerce events to Google's analytics collection — and the method you choose determines how much of your actual revenue GA4 can see.
The standard approach uses GA4's gtag.js snippet, which fires JavaScript events in the visitor's browser when they complete actions like viewing products, adding to cart, and purchasing. This works but has a structural weakness: any visitor using an ad blocker, privacy-focused browser, or strict cookie settings may never execute the tracking script, and those purchases vanish from your GA4 reports.
The GA4 Measurement Protocol offers a server-side alternative. Instead of relying on browser JavaScript, your WordPress server sends event data directly to GA4's collection API endpoint. The event payload includes the same information — event name, transaction ID, revenue, item details — but the transmission happens from your infrastructure, not the visitor's browser.
For WooCommerce, the implementation works through WordPress action hooks. When a customer completes checkout, WooCommerce fires the woocommerce_payment_complete hook. A tracking plugin listens for this hook, packages the order data into GA4's event format, and transmits it via the Measurement Protocol.
The practical difference in data completeness is significant. Server-side purchase events capture 100% of completed orders because the transmission does not depend on the buyer's browser environment. Setup requires your Measurement ID and an API Secret — enter both in your plugin settings, map the events, and verify delivery using GA4's DebugView.