Properties
number
Current attention score (0–100). Read-only.
'active' | 'idle' | 'dropped' | 'stopped'
Current session status.
string
Unique session ID (e.g.
sess_8xK2mP9q).Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The Session object returned by track().
sess_8xK2mP9q).session.on('score', ({ score }) => console.log(score))
session.on('drop', ({ score }) => showNudge())
session.on('stopped', () => cleanup())
// On page unload
window.addEventListener('beforeunload', () => session.stop())
session.pause() // stop collecting signals
session.resume() // restart signal collection