capture

open override fun capture(distinctId: String, event: String, properties: Map<String, Any>?, userProperties: Map<String, Any>?, userPropertiesSetOnce: Map<String, Any>?, groups: Map<String, String>?, timestamp: Date?, appendFeatureFlags: Boolean)

Captures events

Parameters

distinctId

the distinctId of the user performing the event

event

the event name

properties

the custom properties

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

groups

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

timestamp

the timestamp for the event

appendFeatureFlags

when true, enriches the event with feature flag properties