Search for articles…
Connect ClickFunnels 2.0 or Classic
Connect ClickFunnels so its contacts and sales count toward your A/B tests. ClickFunnels sends each event to a Splitlab webhook as it happens, and Splitlab credits the money to the variant the buyer saw. There’s no campaign to pick: Splitlab finds the variant from the visitor.
1. Before you start
The Splitlab snippet on your funnel. See Install Splitlab on ClickFunnels.
The hidden mvt_visitor_id field on your funnel’s forms. Without it, sales arrive but show as Unattributed.
A Splitlab role that can manage integrations in the workspace.
2. Create the webhook URL in Splitlab
In Splitlab, select the workspace and open Integrations, then ClickFunnels 2.0 or ClickFunnels Classic.
Click Create to open the connect wizard.
Give the connection a name you’ll recognise.
Click Create webhook URL and copy it. Keep the wizard open.
3. ClickFunnels 2.0: add the endpoint
In ClickFunnels, open Workspace Settings → Webhooks and click Add new endpoint.
Paste the Splitlab URL, choose 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.
Back in the wizard, click I’ve added the URL and tick I’ve selected these events in ClickFunnels.
Subscribe to the required events at least: order.completed, orders/invoice.paid, contact.created and contact.updated. order.created and order.updated alone record no revenue, because they fire before payment settles. Add the recommended upsell, subscription and refund events too.
Webhook secret (recommended). In ClickFunnels, click the endpoint’s name and copy its Webhook Secret, then paste it into the wizard’s Webhook secret step. Splitlab then rejects any delivery that isn’t signed with it. Treat it like a password.
API token (optional). A read-only ClickFunnels API token lets Splitlab read your product catalogue and fill in order details. Create one under Team Settings → Developer Portal → Add new platform application, choosing Read only, and paste it into the API token step.
4. ClickFunnels Classic: add a funnel webhook
Open the funnel, go to Settings and click Manage Your Funnel Webhooks.
Click New Webhook and paste the Splitlab URL.
Select purchase_created, purchase_updated, purchase_destroyed, contact_created, contact_updated and contact_destroyed, then click Create Funnel Webhook.
Repeat for every funnel you want tracked. They can all use the same URL.
Classic doesn’t sign webhooks, so there’s no secret. Keep the URL private, because it identifies your workspace.
5. Check it works
Open the live funnel in a private window and submit the form with a new email.
In Splitlab, use View events on the integration. A contact delivery should appear.
Make a test purchase. A paid delivery appears and the lead shows the revenue as Attributed.
Refunds are taken off the variant that earned the sale. Full guides: ClickFunnels 2.0 and ClickFunnels Classic.
6. Still stuck?
No deliveries showing under View events? Get in touch through our contact page or email team@splitlab.io and tell us which page or integration you’re working on.
Related articles
Still stuck?
Email team@splitlab.io or send us a message.
Contact us