CIOTrackProductInsightsAgentResultClickRequest
public struct CIOTrackProductInsightsAgentResultClickRequest
Struct encapsulating the parameters that can be passed to constructorIO.trackProductInsightsAgentResultClick() function.
-
The ID of the clicked recommended product
Declaration
Swift
public let itemID: String -
The question that produced the answer containing the clicked recommendation (1-1000 characters)
Declaration
Swift
public let question: String -
The ID of the product whose page the Product Insights Agent is on
Declaration
Swift
public let seedItemID: String -
The zero-based position of the clicked item in the list of recommendations
Declaration
Swift
public let position: Int? -
The name of the product whose page the Product Insights Agent is on
Declaration
Swift
public let seedItemName: String? -
The variation ID of the product whose page the Product Insights Agent is on
Declaration
Swift
public let seedVariationID: String? -
The ID of the answer result returned by the Product Insights Agent
Declaration
Swift
public let qnaResultID: String? -
The name of the clicked recommended product
Declaration
Swift
public let itemName: String? -
The variation ID of the clicked recommended product
Declaration
Swift
public let variationID: String? -
The ID used to group events within a single conversation thread
Declaration
Swift
public let threadID: String? -
The name of the section the item belongs to (defaults to the configured default section, or “Products”)
Declaration
Swift
public let sectionName: String? -
Additional custom analytics tags to be sent with the event. Merged with the default analytics tags
Declaration
Swift
public let analyticsTags: [String : String]? -
init(itemID:question: seedItemID: position: seedItemName: seedVariationID: qnaResultID: itemName: variationID: threadID: sectionName: analyticsTags: ) Create a Product Insights Agent result click request
Declaration
Swift
public init(itemID: String, question: String, seedItemID: String, position: Int? = nil, seedItemName: String? = nil, seedVariationID: String? = nil, qnaResultID: String? = nil, itemName: String? = nil, variationID: String? = nil, threadID: String? = nil, sectionName: String? = nil, analyticsTags: [String : String]? = nil)Parameters
itemIDThe ID of the clicked recommended product
questionThe question that produced the answer containing the clicked recommendation (1-1000 characters)
seedItemIDThe ID of the product whose page the Product Insights Agent is on
positionThe zero-based position of the clicked item in the list of recommendations
seedItemNameThe name of the product whose page the Product Insights Agent is on
seedVariationIDThe variation ID of the product whose page the Product Insights Agent is on
qnaResultIDThe ID of the answer result returned by the Product Insights Agent
itemNameThe name of the clicked recommended product
variationIDThe variation ID of the clicked recommended product
threadIDThe ID used to group events within a single conversation thread
sectionNameThe name of the section the item belongs to (defaults to the configured default section, or “Products”)
analyticsTagsAdditional custom analytics tags to be sent with the event. Merged with the default analytics tags