Skip to content

Astro

In the layout that wraps your pages.

  1. Paste the key into your layout's <head>

    Usually src/layouts/Layout.astro. Astro leaves <script> tags with an external src alone, so it ships as written.

    ---
    // src/layouts/Layout.astro
    ---
    <html>
      <head>
        <script defer data-domain="example.com" src="https://pisi.to/js/llave.js"></script>
      </head>
      <body>
        <slot />
      </body>
    </html>
    astro
  2. Build and deploy

    If you use View Transitions the key keeps working: it listens to pushState and popstate.

Check that it works

Open your site in a new tab and watch the dashboard: you should show up under "home right now" in under ten seconds. If you do not, run through the onboarding checklist.