trackPurchase
fun trackPurchase( customerIds: Array<String>, revenue: Double?, orderID: String, sectionName: String? = null, analyticsTags: Map<String, String>? = null)
Content copied to clipboard
Tracks purchase events.
Example:
ConstructorIo.trackPurchase(arrayOf("1234567-AB", "1234567-AB"), 25.98, "ORD-1312343")
Content copied to clipboard
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)
Content copied to clipboard
Tracks purchase events.
Example:
ConstructorIo.trackPurchase(arrayOf(PurchaseItem("1234567-AB", "1234567-AB-RED")), 25.98, "ORD-1312343")
Content copied to clipboard
Parameters
items
the purchased items
revenue
the revenue of the purchase event
orderID
the identifier of the order
analyticsTags
Additional analytics tags to pass