Signature
Parameters
A stable identifier for the user. Can be an email, UUID, or any string. Not stored as PII — hashed before transmission.
Optional configuration object. See SDK Overview for all options.
Returns
ASession object. See Session.
Example
Notes
- Calling
track()twice with the sameuserIdreturns the existing session. - Call
session.stop()when the user navigates away to flush the final score.