Turnjo
Log in
← All docs/Single-page apps

Single-page apps

Some sites change page without reloading: those built with React, Next.js, Vue, Nuxt, Angular, Svelte and similar. Turnjo notices those page changes on its own, so there's nothing extra to install.

What happens when the page changes

  • Popups, corner boxes, banners and surveys are checked against the new page. One set to show on /pricing appears when the visitor reaches Pricing. One showing on a page it isn't set for closes. "Time on page" and "scroll depth" count from the new page.
  • Tours set to start on a page start when the visitor reaches it.
  • Experiments apply their changes to the new page.
  • Chat stays open across pages. The bubble hides on pages you've hidden it on, and Center Stage boxes on the new page are set up.
  • Feedback shows only on the pages you've chosen.

Turnjo treats a change of path or query string as a new page, for example /pricing or ?plan=pro. A hash change only counts when the site routes with it, like #/pricing. Jumping to an anchor such as #faq doesn't count.

Apps that don't change the URL

If your app swaps content without changing the address, tell Turnjo when the page has changed:

window.turnjo.page();

Call it after the new content is on screen.