Tracker

interface Tracker

Functions

Link copied to clipboard
abstract suspend fun trackAcquisitionComplete(    order: PurchaseOrder,     url: String,     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

Track Item Acquisition Complete event. Triggered when a "tracked" item from cart was purchased.

abstract suspend fun trackAcquisitionComplete(    order: PurchaseOrder,     url: String,     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackContainerShown(    productId: String? = null,     containers: List<ItemContainer>,     url: String? = "",     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

Track container shown event

abstract fun trackContainerShown(    productId: String? = null,     containers: List<ItemContainer>,     url: String? = "",     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackItemAcquired(    productId: String,     items: List<CartItem>,     url: String,     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

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

abstract fun trackItemAcquired(    productId: String,     items: List<CartItem>,     url: String,     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackItemClicked(    productId: String,     url: String = "",     recId: String = "",     referrer: String = ""): SystemaResult<<ERROR CLASS>>

Track Item Clicked event.

abstract fun trackItemClicked(    productId: String,     url: String = "",     recId: String = "",     referrer: String = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackItemRelinquished(    productId: String,     item: CartItem,     url: String,     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

Track Item Relinquished event. Triggered when a "tracked" item is removed from the cart.

abstract fun trackItemRelinquished(    productId: String,     item: CartItem,     url: String,     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackPageViewed(    url: String = "",     recId: String = "",     referrer: String = ""): SystemaResult<<ERROR CLASS>>

Page View for NON-PDP pages.

abstract fun trackPageViewed(    url: String = "",     recId: String = "",     referrer: String = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
abstract fun trackPageViewed(    productId: String,     url: String = "",     recId: String = "",     referrer: String = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)

abstract suspend fun trackPageViewed(    productId: String,     url: String = "",     recId: String = "",     referrer: String = ""): SystemaResult<<ERROR CLASS>>

Track page view event

Link copied to clipboard
abstract suspend fun trackWishlistAcquired(    productId: String,     items: List<WishlistItem>,     url: String,     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

Track Wishlist Acquired event. Triggered when a an item makes its way into the wishlist.

abstract fun trackWishlistAcquired(    productId: String,     items: List<WishlistItem>,     url: String,     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)
Link copied to clipboard
abstract suspend fun trackWishlistRelinquished(    productId: String,     item: WishlistItem,     url: String,     referrer: String? = ""): SystemaResult<<ERROR CLASS>>

Track Wishlist Relinquished event. Triggered when a an item makes its way out of the wishlist.

abstract fun trackWishlistRelinquished(    productId: String,     item: WishlistItem,     url: String,     referrer: String? = "",     result: (SystemaResult<<ERROR CLASS>>) -> Unit)

Inheritors

Link copied to clipboard