conversion

suspend fun ChatEventHandler.conversion(type: String, value: Number, instant: Instant = Clock.System.now())

Send a conversion event to the analytics server.

conversion should be invoked whenever a "conversion" has occurred. The precise definition of "conversion" is left to the implementer but generally speaking corresponds to a completion type event such as a sale or subscription.

Parameters

type

application-specific string reflecting the type of conversion. Examples of appropriate strings might be "sale" or "subscription".

value

application-specific value of the conversion. Typically this will be the sale or subscription price.

instant

instant of the conversion event.

See also