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.