Skip to main content

Install the SDK

Initialize

Call track() once per session. Pass a user identifier and optional config.

Listen for score changes

Stop tracking

Call stop() when the user navigates away or the session ends.

Next steps

Attention scoring

Learn how the 0–100 score is computed.

SDK reference

Full API surface of @onlook/core.

Webhooks

Push score events to your backend.

Self-hosting

Run the ingest and scoring layer yourself.