Track a lead
Track a lead for a short link.
Conversions endpoints require a Business plan subscription or higher.
Authorizations
Default authentication mechanism
Body
The unique ID of the click that the lead conversion event is attributed to. You can read this value from dub_id
cookie.
1
The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the leadEventName
prop in /track/sale
).
1 - 255
"Sign up"
The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer.
100
The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.
The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”).
100
The email address of the customer.
100
The avatar URL of the customer.
The mode to use for tracking the lead event. async
will not block the request; wait
will block the request until the lead event is fully recorded in Dub.
async
, wait
Additional metadata to be stored with the lead event. Max 10,000 characters.
Was this page helpful?