Look A Like
Usage
Use the following code to retrieve visual look a like product recommendations to appear in Smart Collections or search results
Example
window.FastSimonSDK.lookAlikeProductRecommendation({
viewedProductId: "123123",
callback: (response) => {
// do stuff
}
});
Options
Option | Type | Description |
---|---|---|
productID | string (required) | response will be based on this product |
callback | (Response) => void (required) | callback to handle the results |
Response
TypeScript Typing
interface Response {
action: "look a like"
payload: Product[]
}
Reporting Implementation (must for analytics)
Please follow the guideline to report shopper behaviour on the recommendation widget in order to get accurate Analytics in the Fast Simon dashboard as well as greater personalized accuracy
- Look A like - report whenever you open the "look a like" popup / widget (a.k.a. similar styles)
- Products Viewed From Look A Like - report whenever product is clicked from the popup