Skip to content

Recommendation Callbacks

Mridang Agarwalla edited this page Mar 13, 2019 · 2 revisions

The JS API can be used to register callbacks to hook into the recommendation events. To register a listener for a callback, use api.listen(callbackId, callbackFunction) function.

Post Render Callback

Called when Nosto has responded and finished recommendation placement.

nostojs(function(api) {
  api.listen('postrender', function(event) {


Field Type Reason
filledElements Array Contains a list of recommendation slots that contain recommendations
unFilledElements Array Contains a list of recommendations slots that did not have get recommendations.
Clone this wiki locally
You can’t perform that action at this time.