Documentation Index
Fetch the complete documentation index at: https://onlook.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.