_kmq.push(['identify', identity])

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

Parameters

NameTypeDescription
identity*stringA unique ID to identify the current person.

_kmq.push(['set', properties, callback])

set sets properties for the current user.

Parameters

NameTypeDescription
property*objectThe properties to set for the current user.
callbackfunctionFunction to be called after the properties are set.

_kmq.push(['clearIdentity'])

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