Skip to main content

Tracking Visual Discovery

Tracking Visual Discovery Events​

The following events enable tracking of user interactions with the Visual Discovery feature in the SDK.

1. Visual Discovery Modal Open​

This event fires when a shopper clicks the camera icon to open the Visual Discovery modal.

Important: Ensure that the SmartCollectionPerformed or SearchPerformed event has been triggered with appropriate promoTiles data before tracking clicks.

window.FastSimonSDK.event({
eventName: window.FastSimonEventName.discoveryOpen,
data: {
reference: "widget", // (Required) Options: "popup", "widget", "pdp", "ac" (Autocomplete)
}
});

2. Product Page Visit from Visual Discovery Grid​

This event fires when a shopper clicks on a product in the Visual Discovery grid and navigates to the product page.

window.FastSimonSDK.event({
eventName: window.FastSimonEventName.discoveryProductVisit,
data: {
origin: "shirt", // Original search query
productId: "1234", // Product identifier
position: 3, // Product position in the grid
reference: "widget", // (Required) Options: "popup", "widget", "pdp", "ac" (Autocomplete)
}
});

3. Product Added to Cart from Visual Discovery Grid​

This event fires when a shopper adds a product to their cart from the Visual Discovery grid.

window.FastSimonSDK.event({
eventName: window.FastSimonEventName.vsProductAddedToCart,
data: {
origin: "shirt", // Original search query
productId: "1234", // Product identifier
position: 3, // Product position in the grid
reference: "widget", // (Required) Options: "popup", "widget", "pdp", "ac" (Autocomplete)
}
});

This event fires when a shopper clicks on an image within the gallery of the Visual Discovery modal.

window.FastSimonSDK.event({
eventName: window.FastSimonEventName.galleryImageClicked,
data: {
imageId: "27737", // Clicked gallery image identifier
reference: "widget", // (Required) Options: "popup", "widget", "pdp", "ac" (Autocomplete)
}
});