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:
partner_id
- you’ll need it to create the customer later.
2. Lead Tracking
When the visitor signs up, create a customer using the storedpartner_id
:
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 storedcustomer_id
:
- 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