identify

abstract fun identify(distinctId: String, userProperties: Map<String, Any>? = null, userPropertiesSetOnce: Map<String, Any>? = null)

Identifies the user Docs https://posthog.com/docs/product-analytics/identify

Parameters

distinctId

the distinctId

userProperties

the user properties, set as a "$set" property, Docs https://posthog.com/docs/product-analytics/user-properties

userPropertiesSetOnce

the user properties to set only once, set as a "$set_once" property, Docs https://posthog.com/docs/product-analytics/user-properties


open fun identify(distinctId: String)

Identifies the user Docs https://posthog.com/docs/product-analytics/identify

Parameters

distinctId

the distinctId


open fun identify(distinctId: String, userProperties: Map<String, Any>? = null)

Identifies the user Docs https://posthog.com/docs/product-analytics/identify

Parameters

distinctId

the distinctId

userProperties

the user properties, set as a "$set" property, Docs https://posthog.com/docs/product-analytics/user-properties