LinkTrace docs
Custom backend: define success yourself, then send the lead
This is the most general auth integration path. Your app owns the auth logic completely. LinkTrace just records the resulting lead event.
Generic auth success tracking
Emit a lead when your own backend decides the auth action is complete.
ts
await linktrace.trackLead(
withFormAttribution(fromExpressRequest(req), req.body, {
eventName: "signup",
email: user.email,
customerId: user.id,
}),
)What can count as success
LinkTrace does not define success. Your application does.
signuploginemail_verifiedmagic_link_completedaccount_reactivated
Related guides