load
method returns a promise which can be consumed to get the raw recommendation data. The raw recommendation data is an object containing the recommendation data.load()
or 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 update()
.result_id
from the recommendation result should be used. Below is an example recommendation result (some fields have been omitted).product1
to the result id nosto-frontpage-1-fallback
from the recommendation result above and fetches recommendations for nosto-productpage-1
..setResponseMode('HTML')
into your call. A full example for 404 page would look like thisreportAddToCart
function as follows:setCart
function in the Session API should be used to tell Nosto the user’s cart contents.load
method returns a promise which can be consumed to get the raw placement data. The raw recommendation data is an object containing the placement data.