reset-anonymous-id
The reset method only clears the cookies and localStorage set by SDK
Calling reset resets the user_id (uid) when user sign out and sign in with an other account.
Function
web_event.track("user", "reset_anonymous_id",{
extra: {the detail info} // option
});
Sample
web_event.track("user", "reset_anonymous_id", {
extra: {
"reset_uid":"864115",
"generate_uid":"864115_1",
}
});
web_event.resetAnonymousUId();
Last updated
Was this helpful?