hotjar-js icon indicating copy to clipboard operation
hotjar-js copied to clipboard

Remove identity from user when they sign out

Open Ryanjso opened this issue 1 year ago • 0 comments

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. 🤔

Ryanjso avatar Oct 25 '23 01:10 Ryanjso