AmplitudeRevenueEvent
data class AmplitudeRevenueEvent(val name: String, val price: Double, val quantity: Int = 1, val productId: String? = null, val revenueType: String? = null, val currency: String? = null, val revenue: Double? = null, val receipt: String? = null, val receiptSig: String? = null, val insertId: String? = null, val parameters: Map<String, AnalyticsValue> = emptyMap()) : Event(source)
A purchase as Amplitude's revenue API takes it, so it lands in Amplitude's revenue charts and LTV rather than as an ordinary event. The fields are Amplitude's Revenue fields, under Amplitude's names.
A final class, so an app event can't be one. The app's Amplitude factory builds one from its own event and sends it through RevenueEventTracker.
Properties
Functions
Link copied to clipboard
Builds the Amplitude payload for revenue, with AmplitudeRevenueEvent.parameters as its properties. Public because a custom AmplitudeEventTracker almost always needs it.