
WooCommerce
Credit paid WooCommerce orders to the test variant the shopper saw, reported from your store's server so ad blockers cannot drop them.
Connect WooCommerce so paid orders count toward your A/B tests. When an order is paid, the Splitlab WordPress plugin sends it from your store's server to Splitlab, and Splitlab credits the revenue to the variant that shopper saw. Because the report comes from your server rather than the shopper's browser, ad blockers and closed tabs do not lose revenue. Classic checkout, block checkout and HPOS are all supported.
What Splitlab tracks
Orders that reach Processing or Completed, including bank transfer and cash on delivery orders
The order total, including tax and shipping, in the order's currency
Each order once: repeat reports of the same order are ignored
How it works
At checkout, the plugin copies the shopper's Splitlab visitor ID from the Splitlab cookie onto the order.
When the order becomes Processing or Completed, a background job sends it to Splitlab's server-side revenue API and writes an order note.
Splitlab credits the revenue to the variant that shopper saw, so your report compares revenue per visitor across variants.
Set it up
Install and activate the Splitlab WordPress plugin and save your project key.
In Splitlab, select the workspace and open Workspace settings → API keys (or Integrations → WooCommerce → Create API key). Click Create key, name it, set Expires after to Never, and copy the key. It starts with
sl_live_and is shown once.In WordPress, go to Settings → Splitlab, paste the key into Server API key, and click Save Changes. There is no campaign to choose.
Place a test order through your storefront and mark it Processing or Completed. Within a minute the order shows a Splitlab note saying whether the revenue was attributed to a test variant.
Good to know
Refunds are not reported. A refunded order still counts in Splitlab.
Orders are reported in their own currency and are not converted.
Orders paid before you added the key are not sent retroactively.
No customer name, email, address or line items are sent.
If your project requires cookie consent, orders from shoppers who did not consent have no visitor ID and are not reported. Orders created in the WordPress admin are not reported either.
If the key expires, your store stops reporting revenue. Choose Never for the expiry.
Start testing with Splitlab, or book a demo and we will walk you through the setup.