trackSearchResultClick

fun trackSearchResultClick(    itemName: String,     customerId: String,     searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN,     sectionName: String? = null,     resultID: String? = null)

Tracks search result click events.

Example:

ConstructorIo.trackSearchResultClick("Fashionable Toothpicks", "1234567-AB", "tooth", "Products", "179b8a0e-3799-4a31-be87-127b06871de2")

Parameters

itemName

the name of the clicked item i.e. "Kabocha Pumpkin"

customerId

the identifier of the clicked item i.e "PUMP-KAB-0002"

searchTerm

the term that results are displayed for, i.e. "Pumpkin"

sectionName

the section that the results came from, i.e. "Products"

resultID

the result ID of the search response that the click came from


fun trackSearchResultClick(    itemName: String,     customerId: String,     variationId: String?,     searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN,     sectionName: String? = null,     resultID: String? = null)

Tracks search result click events.

Example:

ConstructorIo.trackSearchResultClick("Fashionable Toothpicks", "1234567-AB", "1234567-AB-RED", "tooth", "Products", "179b8a0e-3799-4a31-be87-127b06871de2")

Parameters

itemName

the name of the clicked item i.e. "Kabocha Pumpkin"

customerId

the identifier of the clicked item i.e "PUMP-KAB-0002"

variationId

the variation identifier of the clicked item variation i.e "PUMP-KAB-0002-RED"

searchTerm

the term that results are displayed for, i.e. "Pumpkin"

sectionName

the section that the results came from, i.e. "Products"

resultID

the result ID of the search response that the click came from