Spectacle JS
Page
Tracking visits and page views with Spectacle
The page
function in Spectacle is designed to capture page views as users navigate through your website.
In most cases, the page
function is triggered automatically on page load (as part of the Spectacle snippet). You only need to manually invoke page
if you are managing a single-page application (SPA).
spectacle.page();
Parameters
None
Example Usage
spectacle.page();