- User choices, for example selecting
passkey,password, orsocial-google - System choices, for example policy or backend logic selecting an auth path automatically
1. Why decisions matter
Without decision events, complex authentication funnels can be hard to interpret because branch points are only implied by downstream events. With decision tracking, you make branch points explicit, which helps you:- Understand where users hesitate or switch methods repeatedly
- Analyze system-driven routing behavior (for example post-identifier routing)
- Filter and segment funnels by concrete choice outcomes
- Measure prompt-style interactions such as “accept” vs “dismiss”
2. Decision model
A decision in Corbado Observe has:- A stable
decisionName(for examplelogin-methodorpasskey-enrollment) - A list of offered
optionsat the decision point - An optional chosen value (
explicitDecisionValue) when the decision resolves
- The same decision can occur multiple times in one flow
- Available options can change between attempts
- Decision outcomes can be user-driven or system-driven
3. Decision lifecycle events
Use these Corbado Observe SDK events:| Event method | When to send | Required fields |
|---|---|---|
authDecisionStarted() | A decision point becomes visible/active | decisionName, options |
authDecisionFinished() | A concrete decision outcome is known | decisionName, options |
Set
explicitDecisionValue in authDecisionFinished() whenever you know the selected option and want explicit outcome analytics.4. Track decisions in your integration
UseauthDecisionStarted() when choices are shown or become available, and authDecisionFinished() when a final option is selected.
- NPM
- CDN
Corbado Observe SDK installation and setup are explained in Getting started.
5. Recommended best practices
- Track every important branch point with one consistent
decisionName - Send
authDecisionStarted()whenever options are shown - Send
authDecisionFinished()as soon as the outcome is known - Include all currently offered options in both events for clear context
- Re-send decision events if users revisit the same choice point