WooCommerce server-side tracking that covers the whole shop: GA4 e-commerce events in the browser and a copy of every paid order sent from your own server. 3 articles
Tracking a WooCommerce shop usually takes two pieces: a snippet in the theme and a separate plugin for the data layer. The Measurebase WordPress plugin replaces both. It pushes the standard GA4 e-commerce events, from view_item to purchase, in the classic templates and in the block cart and checkout.
The part that matters most for revenue runs on your server. When an order is paid, the plugin also sends the purchase from your web server to your tagging subdomain, with the order ID for deduplication. That catches the orders the browser never reported: an ad blocker, a closed tab, a payment page that never returned.
Start with installing Measurebase on a WooCommerce shop, which runs from plugin upload to a test order. The plugin overview lists everything it does, and WP Rocket and server-side tracking covers caching.
Start here: Installing Measurebase on a WooCommerce shop
Plugin, connection, web container ID, WooCommerce data layer and server-side purchase backup, matching GTM template, your own domain, test.
Connect once and the plugin installs your tags, pushes the full GA4 ecommerce and lead-form dataLayer, and backs every purchase up server-side with retries.
Speed up WordPress without losing page views or shop events: what the plugin handles for you, clearing the cache and the checks.
view_item, view_item_list with list positions, add_to_cart, remove_from_cart, view_cart, begin_checkout, add_shipping_info, add_payment_info and purchase, in the classic templates and the block cart and checkout. Events carry the mb_ prefix by default so they never collide with another plugin's pushes. The purchase keeps its plain name unless you choose to prefix it too, with a setting on the plugin's Tracking tab.
The backup carries the order ID as mb_event_id, the same ID as the browser purchase, so the two are deduplicated. It goes out through a retry queue with backoff, and refunds follow the same way. The GTM import you download from the dashboard is wired for this deduplication.
Yes, with Profit Tracking switched on for your domain. Tick Send cost prices to Measurebase daily in the plugin's WooCommerce tab, and the tagging server adds the profit of every purchase to the event. Step 4 of the WooCommerce install guide shows where.