trackPurchase

fun trackPurchase(    customerIds: Array<String>,     revenue: Double?,     orderID: String,     sectionName: String? = null,     analyticsTags: Map<String, String>? = null)

Tracks purchase events.

Example:

ConstructorIo.trackPurchase(arrayOf("1234567-AB", "1234567-AB"), 25.98, "ORD-1312343")

Parameters

customerIds

the identifiers of the purchased items

revenue

the revenue of the purchase event

orderID

the identifier of the order

analyticsTags

Additional analytics tags to pass


fun trackPurchase(    items: Array<PurchaseItem>,     revenue: Double?,     orderID: String,     sectionName: String? = null,     analyticsTags: Map<String, String>? = null)

Tracks purchase events.

Example:

ConstructorIo.trackPurchase(arrayOf(PurchaseItem("1234567-AB", "1234567-AB-RED")), 25.98, "ORD-1312343")

Parameters

items

the purchased items

revenue

the revenue of the purchase event

orderID

the identifier of the order

analyticsTags

Additional analytics tags to pass