Integrating Recommendations
To integrate Findify Recommendations follow these steps:
- General Information
- Integrating Recommendations on Product or Cart Pages
1. General Information
In order to integrate Findify Recommendation widgets, please follow these guidelines.
Before you integrate a specific recommendation widget, please make sure to setup the corresponding widget in our Merchant Dashboard
-> Recommendations section
: https://developers.findify.io/docs/recommendations#how-do-i-use-findify-recommendations.
2. Integrating Recommendations on Product or Cart Pages
For Product or Cart Page type of Recommendations, it is required to provide the product ids of the currently viewed/added to the cart items.
Those ids will then need to be passed to our useFindify
hook like this:
const [container, isReady, hasError] = useFindify({
type: 'recommendation',
options: {
rules: [{
'action': 'exclude',
'type': 'text',
'name': 'id',
'values': [{
value: ["item_id_1", "item_id_2", ...] //provide the list of ids to the value array
}]
}],
item_ids: ["item_id_1", "item_id_2", ...] //provide the list of ids to the value array
},
config: {
slot: 'RECOMMENDATION_SLOT',
}
});
Updated about 1 year ago