Page tracking for SPA

If you are running your webshop as a Single Page Applications (SPA), the Hello Retail partner script is typial not reloaded automaticaly when a visitors is triggeren a new page view. To ensure Hello Retail is picking up a new page view, you’ll have to ensure to call the reload() function available through the JavaScript SDK. This should happen every time a visitor navigates to a new page (the url changes). It should be called after the new content is available in the DOM.

// Trigger reload, to track a new page-view
ADDWISH_PARTNER_NS.api.reload()