ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

How to reset users identity in the browser

This method resets the user’s identity in the browser. Developer can call it from his website code following way:

MeiroEvents.resetIdentity()

How does it work?

It will delete all the current identifiers about the user that are stored in the browser. After that, It will generate new ones. 

The identity can be reset upon logout or after other defined action is being taken.

Why use this method?

This method can be useful for clients that have a shared machine in a store for multiple users.

Using this method there will not be many entities tied to one meiro_user_id that contains a lot of different customer emails.