Install on Astro

Add OpenWebTrack to Astro

Add the tag to your base layout so every page includes it.

1

An Astro site has one base layout; the snippet goes into its <head> so every page includes it.

src/layouts/BaseLayout.astro
---
---
<html lang="en">
  <head>
    <script
      defer
      src="https://cloud.openwebtrack.one/script.js"
      data-website-id="YOUR_WEBSITE_ID"
      data-domain="yourdomain.com"
    ></script>
  </head>
  <body>
    <slot />
  </body>
</html>

For cookieless use script.cookieless.js. For self-hosted replace cloud.openwebtrack.one with your ORIGIN.

2

Client-side navigation is tracked automatically as pageviews. The tracker hooks history.pushState so Astro view transitions count without extra code.

3

Deploy and open the site at the address you gave the dashboard. The realtime view shows the visit within seconds; if nothing appears, check that data-domain matches and that an ad blocker is not blocking the request.