Category listings
To get access to this functionality you need to contact support. There is a limit of 10 elements that can be returned per bias (e.g. categories).
With Hello Retail you can personalize the listings of the categories for a customer. The benefit is to promote categories which a customer has an affinity to.
Below you can see an example of a customer using the API to show the top 6 categories using the user bias:
When using the user bias you can get the personalized hierarchies (categories) out and use it to decide what to show. Below is a short example of the code that can be used to get the hierarchy. The list of hierarchies returned in the get_bias is ordered by weight, which describes what is most popular.
1
ADDWISH_PARTNER_NS.api.tracking.get_bias(function(result){
2
result.user.hierarchy.forEach(function(hierarchy){
3
// Format of data:
4
/*
5
{
6
value: "Shoes", // name of hierarchy
7
weight: 99 // Affinity towards the hierarchy
8
}
9
*/
10
});
11
});
Copied!
Last modified 1mo ago
Copy link