track Purchase
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
customer Ids
the identifiers of the purchased items
revenue
the revenue of the purchase event
order ID
the identifier of the order
analytics Tags
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
order ID
the identifier of the order
analytics Tags
Additional analytics tags to pass