tolt.js
Lead Tracking
Convert clicks into leads by signing up visitors with a unique identifier
Overview
When a visitor comes through an affiliate link, you can convert their click into a lead by calling the signup function. Before signing up, you should check if:
- The visitor came through an affiliate link (
window.tolt_data
exists) - The visitor hasn’t already been signed up (
customer_id
is null)
Example Implementation
The identifier
parameter should be unique to each customer (like an email or user ID).
On success, the function returns:
If the identifier already exists in the system, the function will throw a 409 error:
After a successful signup, window.tolt_data
will be automatically updated with the new customer_id
.