Previously identified users of your application can be anonymized by calling zipy.anonymize() method. This will automatically split the session and associate the new session with a new anonymous user which Zipy will identify with its own identification. This method should typically be called when users sign out of your application.


Example Usage:


1.  Usage after installing Zipy via the script tag method:

In case you chose to install Zipy in your app with the script tag method, to anonymize a previously identified user of your application, use the following code in a source file where users sign out of your application:

window.zipy.anonymize()


2.  Usage after installing Zipy via the npm method:

In case you chose to install Zipy in your app with the npm method, to anonymize a previously identified user of your application, use the following code in a source file where users sign out of your application:

import zipy from “zipyai”;
zipy.anonymize();