Static websites

For static websites, the script must be included on every page you want to track.

Since, when navigating static websites, the browser retrieves and then displays a new HTML file, the analytics script sends a pageview on the visibilitychange event, which is triggered by the browser as soon as the document becomes visible.