Search for articles…
Connect HighLevel
Connect HighLevel so the revenue it records counts toward your A/B tests. When an invoice is paid, Splitlab credits the money to the variant that visitor saw. You set this up once per Splitlab workspace, and each workspace connects separately.
1. Before you start
A HighLevel sub-account. Splitlab connects to a sub-account, not the agency account.
The Splitlab snippet in the Head tracking code of the funnels or websites you’re testing.
A Splitlab role that can manage integrations in the workspace.
2. Add the mvt_visitor_id contact field
In HighLevel, switch to your sub-account and go to Settings → Custom Fields, Contact tab, then click Create field.
Choose Single line and name it exactly mvt_visitor_id.
Check the key reads contact.mvt_visitor_id, then click Create custom field.
3. Put the field on your form
Go to Sites → Forms → Builder and open your form.
In Add Object Fields, under Contact, add mvt_visitor_id to the form.
Click the field, set Query Key to mvt_visitor_id, tick Hidden and leave Hidden value empty.
Click Save.
The snippet fills the field in, so every contact the form creates carries the visitor’s ID. See HighLevel forms.
4. Connect HighLevel to your workspace
In Splitlab, select the workspace and open Integrations → HighLevel.
Click Connect HighLevel. HighLevel opens in a new tab.
Choose your sub-account and approve the read-only permissions.
5. Create a revenue webhook
On the same page, under Revenue webhooks, click Create and name it. Splitlab shows the Webhook URL, the header name X-Splitlab-Webhook-Token and a Token. Copy all three now, because the token is shown only once.
6. Build the HighLevel workflow
In HighLevel, go to Automation → Workflows → Create workflow → Start from Scratch.
Add the Invoice trigger and set the filter Invoice status to Paid.
Add a Custom Webhook action (the plain Webhook action can’t send headers). Set Method to POST, paste the webhook URL, add the header X-Splitlab-Webhook-Token with your token, and set Content-type to application/json.
Paste the raw body from the HighLevel guide. Use invoice.amount_paid, not amount_due, which is 0 once paid.
Save the action and switch the workflow from Draft to Publish.
Before counting a payment, Splitlab checks it with HighLevel through the read-only connection, and rejects an invoice that doesn’t exist or isn’t paid. Optional extra workflows can send new contacts as leads and count won opportunities. Both are covered in the guide.
7. Test it
Create an invoice for a test contact, then choose Record Payment → Record Manually for the full amount.
In Splitlab, on the webhook row choose View events. The paid invoice should appear with its amount.
A contact that never visited a page running the snippet is recorded as workspace-level revenue. One that did is credited to their variant.
8. Still stuck?
Events arriving but no revenue? 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