Search Result page viewed
Shopper performed a search query
interface PromoTile {
id: number;
name: string;
link: string;
thumbnail: string;
}
interface CollectionViewedEventData {
categoryID: string; // Required
query?: string; // Optional
narrowBy?: [string, string][]; // Optional
sortBy?: window.FastSimonSortBy; // Optional
products?: string[]; // Optional
promo_tiles?: PromoTile[]; // Optional
}
window.FastSimonSDK.event({
eventName: window.FastSimonEventName.SearchPerformed,
data: {
query: "glasses", // (Required)
narrowBy: ["Type","Shirt"],
sortBy: FastSimonSortBy.AtoZ,
products: ["123", "3424", "65656"], // Optional
promo_tiles: [
{
id: 17289243295695228,
name: "15% Off Promo",
link: "https://www.example.com/promo",
thumbnail: "https://www.example.com/thumbnail.jpg"
},
{
id: 17289243295695229,
name: "Buy 1 Get 1 Free",
link: "https://www.example.com/bogo",
thumbnail: "https://www.example.com/bogo-thumbnail.jpg"
}
] // Optional
}
});