A single-page application (SPA) is a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of the browser loading entire new pages. The goal is faster transitions that make the website feel more like a native app.
The default installation of Nextsale Pixel works well with traditional websites because the snippet code is run every single time the users load a new page. Since all new page content loads dynamically in a single page application the Nextsale Pixel installation snippet code only runs once. This means subsequent (virtual) ping from the Nextsale library must be send manually as new content is loaded.
When your application loads content dynamically and updates the URL in the address bar, the ping request should be sent to the Nextsale servers. To do that you just need to call the public
nsio function with