Overview
identify() links a user ID to a set of traits. Call it when a user signs up, logs in, or changes their plan. The scoring model uses traits like plan and mrr to contextualize risk.
You don’t need to call identify() before every event — identify once, then just track events.
Signature
Parameters
string
required
A stable, unique identifier for the user. Must be a non-empty string.
UserTraits
required
An object of user properties. All fields are optional but at least one is recommended.
AbortSignal
An
AbortSignal to cancel the request. The SDK throws ChurnKitError with code ABORTED if the signal fires.