Skip to main content
The Milana SDK records user sessions and provides methods to initialize recording, identify users, update session metadata, track custom events, and stop recording.

Installation

Import from milana-js/react for React bindings — MilanaProvider, useMilana, useMilanaOptional.See React Setup for the full setup guide.

API surface

Method pages

Initialize

Start recording with your product ID, client key, and session info.

Identify

Associate sessions with known users using identify().

Update User

Refresh user identity mid-session with updateUser().

Update Session

Attach session-level context with updateSession().

Track events

Mark important user actions with named events and attributes.

Stop Recording

End the current session immediately with stopRecording().

Privacy controls

Block, mask, or ignore sensitive elements before they are recorded.

Update (deprecated)

Legacy entry point — kept for backward compatibility.