loadmethod returns a promise which can be consumed to get the raw recommendation data. The raw recommendation data is an object containing the recommendation data.
update(). The difference between these two methods is:
load()causes the load count of the most recently tracked page view to be incremented.
update()does not automatically increment the page load count.
load()should be called once per page view when fetching recommendations and all proceeding recommendation requests should use
result_idfrom the recommendation result should be used. Below is an example recommendation result (some fields have been omitted).
product1to the result id
nosto-frontpage-1-fallbackfrom the recommendation result above and fetches recommendations for
.setResponseMode('HTML')into your call. A full example for 404 page would look like this
reportAddToCartfunction as follows:
setCartfunction in the Session API should be used to tell Nosto the user’s cart contents.
loadmethod returns a promise which can be consumed to get the raw placement data. The raw recommendation data is an object containing the placement data.