trackItemAcquired

abstract suspend fun trackItemAcquired(productId: String, items: List<CartItem>, url: String, referrer: String? = ""): SystemaResult<HttpResponse>

Track Item Acquired event. Triggered when a "tracked" item makes its way into the cart.

Return

HTTP response from tracker for Item Acquired event.

Parameters

productId

Product ID of the item that was checked into the cart.

items

List of CartItems that made its way into the cart.

url

URL of the page/view where product resided before it was added to cart - in Mobile, a simulated string.

abstract fun trackItemAcquired(productId: String, items: List<CartItem>, url: String, referrer: String? = "", result: (SystemaResult<HttpResponse>) -> Unit)