Tracking Events
Upon viewing the homepage
nostojs(api => {
api.defaultSession()
.viewFrontPage()
.setPlacements(['homepage-nosto-1', 'bestseller-recs'])
.load()
.then(data => {
console.log(data.recommendations);
})
});Upon viewing a product
nostojs(api => {
api.defaultSession()
.viewProduct('product-id')
.setPlacements(['product-crosssells'])
.load()
.then(data => {
console.log(data.recommendations);
})
});Upon viewing a product variant
Upon viewing a category
Tagging the categories
Upon doing a search
Upon starting a checkout
Upon placing an order
Upon viewing a page that was not found (404)
Upon viewing a general page
See also
Last updated
Was this helpful?