How the access feeds
Hi all,
I would like to create a recommendation for specific logged In users. Therefore I created a list with 4K user IDs. My approach would be to realize that with a feed. If an user match with a value inside the feed I will recommend them an Overlay or something else.
To do that I created two feeds. One product feed and one recommendation feed to test how it works:
I found these posts:
In both posts Gidi Vigo show an example how I can access the feed. But if I try it nothing happens:
The feed properties seem to be empty. But why?
Is there a better approach to recommend few logged In users something (there is also a login event with the cuid: "123456")?
Thanks and best regards,
Peer
-
Hi Peer,
DY.feedProperties would only work on PDPs since it would take the SKU that is reported to DY via page context and look for it in the feed. In this link, the function is also taking the SKU from the PDP context and looking for it in the feed.
Since the feed you have built doesn't match any PDPs on the site, you would not be able to query the feed with the regular methods.
What you could do is check the feed by supplying a specific "SKU" in the function:
DY.ServerUtil.getProductsData(["<sku>"], "", "", true, function(e, data) {
...
});This would then return data from the feed if such SKU exists there.
Please sign in to leave a comment.
Comments
1 comment