ProductInsightsAgentResultClickTrackingData

class ProductInsightsAgentResultClickTrackingData(    val itemId: String,     val question: String,     val seedItemId: String,     val position: Int? = null,     val seedItemName: String? = null,     val seedVariationId: String? = null,     val qnaResultId: String? = null,     val itemName: String? = null,     val variationId: String? = null,     val threadId: String? = null,     val sectionName: String? = null,     val analyticsTags: Map<String, String>? = null) : ProductInsightsAgentTrackingData

Create a Product Insights Agent result click tracking request object utilizing a builder. Sent when the user clicks an item (product) recommended in an answer.

Constructors

fun ProductInsightsAgentResultClickTrackingData(    itemId: String,     question: String,     seedItemId: String,     position: Int? = null,     seedItemName: String? = null,     seedVariationId: String? = null,     qnaResultId: String? = null,     itemName: String? = null,     variationId: String? = null,     threadId: String? = null,     sectionName: String? = null,     analyticsTags: Map<String, String>? = null)

Types

Link copied to clipboard
class Builder(    val itemId: String,     val question: String,     val seedItemId: String)
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val analyticsTags: Map<String, String>? = null

additional analytics tags to pass. Merged with io.constructor.core.ConstructorIoConfig.defaultAnalyticsTags, with request-level values overriding defaults on key collision

Link copied to clipboard
open override val itemId: String

the ID of the clicked item (product) recommended in the answer, i.e. "1234567-AB"

Link copied to clipboard
open override val itemName: String? = null

the name of the clicked item (product) recommended in the answer

Link copied to clipboard
val position: Int? = null

the zero-based position of the clicked item within the answer

Link copied to clipboard
val qnaResultId: String? = null

the result ID of the answer, as returned by the Product Insights Agent

Link copied to clipboard
val question: String

the question text, i.e. "Is it waterproof?"

Link copied to clipboard
open override val sectionName: String? = null

the index section, i.e. "Products". Defaults to io.constructor.core.ConstructorIoConfig.defaultItemSection

Link copied to clipboard
val seedItemId: String

the ID of the item (product) the Product Insights Agent is displayed for, i.e. the product detail page item

Link copied to clipboard
val seedItemName: String? = null

the name of the item (product) the Product Insights Agent is displayed for

Link copied to clipboard
val seedVariationId: String? = null

the variation ID of the item (product) the Product Insights Agent is displayed for

Link copied to clipboard
open override val threadId: String? = null

the ID of the Product Insights Agent conversation thread

Link copied to clipboard
open override val variationId: String? = null

the variation ID of the clicked item (product) recommended in the answer