hotjar / hotjar-js

Bring Hotjar directly to your application
https://hotjar.github.io/hotjar-js/
MIT License
49 stars 8 forks source link

Remove identity from user when they sign out #25

Open Ryanjso opened 1 year ago

Ryanjso commented 1 year ago

Is it possible to remove the identity from a user when they sign out? I identify people when they login using Hotjar.identify(userId), but ideally I can unidentify them when they logout. For example, the mixpanel js sdk let's you call mixpanel.reset() on user sign-out.

I'm sure I could do Hotjar.identify(null, {}); but I imagine this might just remove the attributes from already recorded events. 🤔