ProductInsightsAgentViewsTrackingData

class ProductInsightsAgentViewsTrackingData(    val itemId: String,     val questions: List<ProductInsightsAgentQuestion>,     val viewTimespans: List<ProductInsightsAgentViewTimespan>,     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 views tracking request object utilizing a builder. Sent when the Product Insights Agent has been viewed, reporting each span of time it was in view.

Constructors

Link copied to clipboard
fun ProductInsightsAgentViewsTrackingData(    itemId: String,     questions: List<ProductInsightsAgentQuestion>,     viewTimespans: List<ProductInsightsAgentViewTimespan>,     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 questions: List<ProductInsightsAgentQuestion>,     val viewTimespans: List<ProductInsightsAgentViewTimespan>)
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 item (product) the Product Insights Agent is displayed for, i.e. "1234567-AB"

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

the name of the item (product) the Product Insights Agent is displayed for, i.e. "Waterproof Jacket"

Link copied to clipboard
val questions: List<ProductInsightsAgentQuestion>

the questions shown to the user

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
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 item (product) the Product Insights Agent is displayed for

Link copied to clipboard
val viewTimespans: List<ProductInsightsAgentViewTimespan>

the spans of time during which the Product Insights Agent was in view