Search for articles…
Install Splitlab on ClickFunnels
On ClickFunnels you add Splitlab through the funnel’s Head Tracking Code setting. No code editing is needed, and the same steps apply to ClickFunnels 2.0 and Classic.
1. Copy your snippet
In Splitlab, open Websites and select your website.
In the Install Smart Code panel, open the ClickFunnels tab.
Click Copy. The snippet already contains your project key.
2. Paste it into the funnel’s head tracking code
Log in to ClickFunnels and open the funnel you want to test.
Go to Settings → Tracking Code in the funnel editor.
Paste the snippet into the Head Tracking Code section.
Save your funnel settings.
The head tracking code loads on every step of the funnel, so you only need to add it once per funnel.
3. Check it on the live funnel
ClickFunnels only adds head tracking code to your published funnel pages, not the editor preview. Check the install against the live funnel URL, following Check that the snippet is installed.
4. Add the hidden mvt_visitor_id field to your forms
This step is what lets Splitlab credit an order to the variant the buyer saw. Without it, orders still reach Splitlab but show as Unattributed.
On each form that creates the contact (usually the opt-in or order form on the first step):
Add a new Form → Input element inside the form.
Set Input Type to Custom Type.
Set Custom Type to mvt_visitor_id, exactly, in lower case with underscores.
Set Required to Not Required, so it can never block the form.
Under Visibility, click the eye icon to hide the field on every device.
Save the page.
The snippet fills the field in automatically. A contact keeps the value it was created with, so later steps and upsells inherit it. Step-by-step guides: ClickFunnels 2.0 forms and ClickFunnels Classic forms.
5. Test the field
Open the live funnel in a private window and submit the form with a test email.
In ClickFunnels, open the new contact. Its mvt_visitor_id attribute should have a value.
If it’s empty, check the spelling of the custom type, that the snippet is installed on that step, and that cookie consent, if you use it, was accepted before the form was sent.
6. Connect ClickFunnels for revenue
To send contacts, sales and refunds to Splitlab, follow Connect ClickFunnels 2.0 or Classic.
7. Still stuck?
Funnel still not showing your variants? 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