The Userorbit script connects your website or web application to Userorbit. It loads the widget and initializes the SDK for the current visitor or logged-in.
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 installuserorbit-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 },
});JavaScriptVerify
Check the browser Network panel for Userorbit requests, confirmwindow.userorbit for the script install, and find the test user in Contacts. For SPA issues, call registerRouteChange() after navigation as a fallback.