Skip to main content
Corbado Observe helps you measure authentication and passkey flows in your application by instrumenting your application with events. This guide shows how to install the SDK, initialize it, and send your first event.

1. Prerequisites

Before you start, make sure you have:

2. Add Corbado Observe to your app

Choose one integration path depending on your stack:
Install the package:
npm install @corbado/observe

3. Initialize the tracker

Initialize Corbado Observe as early as possible in your app startup.
import { init } from "@corbado/observe";

init({
  projectId: "<ProjectID>",
  apiBaseUrl: "<APIBaseURL>",
});
Enter your ProjectID and APIBaseURL as provided in the Corbado management console.

4. Track your first event

When your login UI is rendered and visible, send flowStarted:
import { getTracker } from "@corbado/observe";

getTracker().flowStarted({
  flowName: "login",
  touchpoint: "account",
});
Use touchpoint consistently (for example account, checkout, modal) so you can compare funnel metrics across entry points.

5. Debugging

Use debug mode during integration to verify that events are sent with the expected payload. Set debug: true in your init() call while developing:
init({
  projectId: "<ProjectID>",
  apiBaseUrl: "<APIBaseURL>",
  debug: true,
});
With debug mode enabled, Corbado Observe logs tracked events to the browser console so you can confirm:
  • The event name is correct (for example flowStarted)
  • Required fields such as flowName and touchpoint are present
  • Events are fired at the correct time in your UI flow
Keep debug enabled in local and staging environments. Set debug: false in production to reduce console noise.

6. Next steps