🔥 Major updates
- Added Profile identification via
identify,setTraitsandreset.
You can now link the current visitor to your own user ID (e.g. after they log in). The visitor's anonymous profile gets linked to the identified profile server-side, so their pre-login activity is attributed to it. You can also attach traits - key / value metadata like email, plan or signup date - which are displayed on the user's profile in your dashboard. Callreset()when the user logs out to start tracking anonymously again. Learn more.
🙂 Minor changes
- Analytics requests are now sent with
keepalive, so events fired right before a page unload (e.g. outbound link clicks) are no longer lost. - Session Replay now uses the standalone
@rrweb/recordrecorder instead of the full rrweb bundle, making both the npm dependency and the CDN recorder script smaller. getProfileIdnow returns the identified (usr_-prefixed) profile ID afteridentify()was called.- Updated dependencies.
🔧 Fixes
- Fixed Session Replay recordings becoming unrenderable after a failed full snapshot upload - the recorder now re-seeds the stream with a fresh snapshot (with a cap, so it never keeps re-uploading oversized snapshots indefinitely).