identify connects the current person with a unique ID, and attributes future events from this browser to this provided ID. If the current person is ‘anonymous’, it also connects their ‘anonymous’ ID to the provided ID so we recognize both as being the same person (aliasing). Calling identify does not count as an “event”.
A unique ID to identify the current person.
set sets properties for the current user.
The properties to set for the current user.
Function to be called after the properties are set.
clearIdentity clears the current person's identity and generates a new anonymous ID for their browser. Does nothing if the current person is currently ‘anonymous’.