Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

802 B
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Plausible Playwright tests</title>
    <script async src="/tracker/js/plausible.local.js"></script>
  </head>

  <body>
    <a id="navigate-away" href="/manual.html">Navigate away</a>
    <a id="to-pageleave-pageview-props" href="/engagement-pageview-props.html"
      >Navigate to pageleave-pageview props</a
    >

    <button id="history-nav">Navigate with history</button>

    <script>
      document.getElementById('history-nav').addEventListener('click', () => {
        history.pushState({ page: 2 }, 'Another Page', '/another-page')
      })
    </script>
  </body>
</html>