
ClickFunnels 2.0
Credit every ClickFunnels 2.0 order, upsell and subscription payment to the test variant the buyer saw, with refunds reversed.
Connect ClickFunnels 2.0 so its contacts and sales count toward your A/B tests. ClickFunnels sends each event to a Splitlab webhook the moment it happens, and Splitlab credits the money to the variant the buyer saw. The webhook belongs to one Splitlab workspace, and there is no campaign to pick: Splitlab finds the variant from the visitor.
What Splitlab tracks
Completed orders and paid invoices, credited to the buyer's variant
One-time offers such as upsells
Subscription payments, including the first payment
Refunds and voided invoices, which reverse the revenue
New and updated contacts, linked to the visitor as leads
How it works
The Splitlab snippet assigns each visitor to a variant and fills a hidden
mvt_visitor_idfield on your ClickFunnels form, so the contact carries the visitor ID.When an order is paid, refunded or voided, ClickFunnels sends the event to your Splitlab webhook, signed with the endpoint's webhook secret.
Splitlab credits the sale to the variant that visitor saw, so your report compares revenue per visitor across variants.
Set it up
Install the Splitlab snippet on the funnel. On each form that creates the contact, add an INPUT with Input Type set to Custom Type, Custom Type set to
mvt_visitor_id, Not Required, and hidden under Visibility. Without it, sales still arrive but show as Unattributed.In Splitlab, select the workspace, open Integrations → ClickFunnels 2.0 and click Create. Give the connection a name, click Create webhook URL, and copy the URL. Keep the wizard open.
In ClickFunnels, open Workspace Settings, then Webhooks, and click Add new endpoint. Enter a Name, paste the Splitlab URL, select the Event types the wizard lists, and set API Version to
V2.Under Endpoint scopes → Funnels, select the funnel your test runs on, then click Create endpoint.
Click the new endpoint's name and copy its Webhook Secret. Back in the Splitlab wizard, click I've added the URL, tick I've selected these events in ClickFunnels, and paste the secret into the Webhook secret step.
Optional: add a read-only API token so Splitlab can read your product catalog and fill in order details the webhook leaves out. In ClickFunnels, open Team Settings → Developer Portal, click Add new platform application, select Read only, click Create platform application, and paste the API access token into the wizard's API token step.
Submit the live form in a private window with a new email. A
contact.createddelivery appears under ⋮ → View events. Make a test purchase and anorders/invoice.paiddelivery appears, with the revenue shown as Attributed.



Good to know
Subscribe to the required events,
order.completed,orders/invoice.paid,contact.createdandcontact.updated.order.createdandorder.updatedalone record no revenue, because they fire before payment settles.The webhook secret is optional, but without it Splitlab accepts unsigned deliveries. You can add it later with ⋮ → Edit Integration.
Revenue counts only in the Splitlab workspace that created the webhook.
Start testing with Splitlab, or book a demo and we will walk you through the setup.