identify

fun identify(userId: String?, traits: Map<String, Any?> = emptyMap())

Associate a stable user identifier and optional user traits with the current session. Subsequent events will carry this user id until reset is called.

Parameters

userId

Stable user identifier. Pass null to clear.

traits

Optional user attributes (email, plan, etc.).