github Swetrix/swetrix tracker-js@4.5.0

3 hours ago

🔥 Major updates

  • Added Profile identification via identify, setTraits and reset.
    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. Call reset() 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/record recorder instead of the full rrweb bundle, making both the npm dependency and the CDN recorder script smaller.
  • getProfileId now returns the identified (usr_-prefixed) profile ID after identify() 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).

Don't miss a new swetrix release

NewReleases is sending notifications on new releases.