Install the Userorbit JavaScript SDK once in your application and identify users after authentication.

Get the workspace snippet

Go to Settings → Widget installation in the workspace that should receive the data. Copy the provided snippet or Account ID.

Initialize

Load the UMD bundle from the URL shown in the snippet, or install userorbit-js, then call userorbit.init({ accountId: "YOUR_ACCOUNT_ID" }) once in the browser.

Identify signed-in users

await userorbit.identify(user.id, {
  email: user.email,
  name: user.name,
  attributes: { plan: user.plan },
});JavaScript

Verify

Check the browser Network panel for Userorbit requests, confirm window.userorbit for the script install, and find the test user in Contacts. For SPA issues, call registerRouteChange() after navigation as a fallback.

Was this helpful?