Splitlab home

Book a Demo

Splitlab home

Book a Demo

Splitlab home

Search for articles…

Track WooCommerce and SamCart orders

Track WooCommerce and SamCart orders

WooCommerce orders are reported from your store’s server through the Splitlab WordPress plugin. SamCart orders arrive through a SamCart webhook. Either way, Splitlab credits each order to the variant the buyer saw.

1. WooCommerce: create an API key

You’ll need the Splitlab WordPress plugin installed with your project key saved. Classic checkout, block checkout and HPOS are all supported.

  1. In Splitlab, open Integrations → WooCommerce and click Create API key, or go to Workspace settings → API keys and click Create key.

  2. Name the key and set Expires after to Never. When a key expires, your store silently stops reporting revenue.

  3. Copy the key. It’s shown only once.

2. WooCommerce: add the key to WordPress

In WordPress, go to Settings → Splitlab, paste the key into Server API key and click Save Changes.

Place a test order through your storefront and mark it Processing or Completed. A Splitlab note is added to the order, saying whether the revenue was attributed to a test variant or recorded for the project. A note saying the key was rejected means the key is wrong, revoked, expired or from another workspace.

Only the order total, currency, order key and Splitlab visitor ID are sent, never customer names, emails or addresses. Refunds aren’t reported, orders aren’t converted between currencies, and orders paid before you added the key aren’t sent. Full guide: WooCommerce.

3. SamCart: check it’s available

SamCart is being rolled out gradually. If you don’t see it under Integrations, contact us to ask about switching it on.

4. SamCart: create the Notify URL

  1. In Splitlab, open Integrations → SamCart and click Create.

  2. Name the integration and copy the Notify URL. It’s shown once and contains a secret token, so treat it like a password.

5. SamCart: add the webhook

  1. In SamCart, open the App Marketplace, find Webhooks and add a Global rule.

  2. Paste the Notify URL and choose Order completed, Upsell purchased, Product refunded and Product partially refunded. Use Order completed rather than Product purchased.

  3. Go to Marketplace Settings → Tracking & Pixels, click Add Parameter, add mvt_visitor_id and save.

With the snippet on your landing pages, the engine adds the visitor ID to every link pointing to samcart.com or a samcart.com subdomain, so you don’t need to change your links. Links to a custom checkout domain aren’t stamped. In that case Splitlab falls back to matching by the buyer’s email where it can.

Place a test order through a tested page. The integration shows as Connected once the first notification arrives, and View events lists what happened to each one. Subscription renewals aren’t counted toward tests. Full guide: SamCart.

6. Still stuck?

Orders not reaching Splitlab? Get in touch through our contact page or email team@splitlab.io and tell us which page or integration you’re working on.

Still stuck?

Email team@splitlab.io or send us a message.

Contact us


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.


Start optimizing for revenue today not just conversion rates.

Run experiments, track revenue per variation, and scale what actually makes you money.

We’ll increase your conversion rate by 30% or you don’t pay. Terms apply.