This tutorial walks you through setting up analytics in Userorbit from scratch. By the end, you will have a working analytics project, a default dashboard.
Set up the browser SDK, confirm events are arriving, then create your first report.
Use the userorbit-js package and initialize it with your workspace account ID:
~js
import userorbit from "userorbit-js";
await userorbit.init({ accountId: "YOURACCOUNTID", analytics: { enabled: true }, });~
You can also pass userId, email, name, and custom attributes when they are known.
~js
await userorbit.track("Project Created");
~
Use stable event names that describe completed user actions.
Select New Report, choose a report type, configure events and measurements, then save it. Add useful reports to a dashboard for shared monitoring.
- Initialize Userorbit
Use the userorbit-js package and initialize it with your workspace account ID:await userorbit.init({ accountId: "YOURACCOUNTID", analytics: { enabled: true }, });
You can also pass userId, email, name, and custom attributes when they are known.
- Track an event
Use stable event names that describe completed user actions.
- Confirm data
- Open Analytics.
- Select the project receiving the data.
- Open Live Events.
- Perform the action in your product and confirm the event appears.