Guides / How To
Track without tolt.js
Track affiliate clicks, leads, and payments using direct API calls
Tracking Flow
1. Click Tracking
When a visitor arrives through a partner link (e.g., yourdomain.com?ref=partner123
), call the create a click API:
If the param & value combination doesn’t exist in your program, the API will return an error:
On success, store the returned partner_id
- you’ll need it to create the customer later.
2. Lead Tracking
When the visitor signs up, create a customer using the stored partner_id
:
Store the returned customer_id
alongside your user data - you’ll need it for tracking payments.
3. Payment Tracking
When the customer makes a payment, create a transaction using the stored customer_id
:
When a transaction is created, Tolt automatically:
- Identifies the associated partner through the customer_id
- Triggers the programs commission flows
- The flows will create a commission record for the partner if the conditions are met
This completes the tracking cycle from initial click through to paid commission.