//Granify Android SDK/com.granifyinc.granifysdk/Granify/trackProduct

trackProduct

[androidJvm]\

@JvmStatic

fun trackProduct(products: List<Product>, carter: Carter)

Notifies Granify about the products available on a product page.

Supplied product information is cached in memory and may be used for the display of messages at a later point in time. All product variations (i.e. skus) on a page should be provided. For example, if a shirt has different colors or sizes, the product list provided should include an entry for every combination of shirt color and size.

Placement

This function should be called after trackPageView when a product page is loaded:

Parameters

androidJvm

   
products The list of all products featured on the product page.
carter Class implementing Carter, providing functions to add items to the cart.