Skip to main content
All CollectionsIntegrationsOther
How to sign-up a customer (track leads)
How to sign-up a customer (track leads)
Valentin avatar
Written by Valentin
Updated over 3 weeks ago

Customers can have 5 statuses which are:

  • Lead (when the referred user signs up to your business)

  • Active (when the referred user starts a subscription)

  • Canceled (when you cancel the referral)

  • Refunded (when you refund the referral)

The script doesn't handle signups by itself. You will need to call a Tolt signup function that exists on Tolt's script, that you have previously integrated into your landing page and frontend.
​window.tolt.signup() takes only one parameter which is the user email address.

Before calling this function you should check if window.tolt_referral exists and if it's not null.

if (window.tolt_referral) {
window.tolt.signup("[email protected]")
}

The signup function will create the customer as a lead and add the email address.

Did this answer your question?