Install Piqo on Astro

One line in your base layout covers every page.

  1. Open your shared layout (e.g. src/layouts/BaseLayout.astro).
  2. Paste the snippet inside the <head>.
  3. Run astro build and deploy.
---
// src/layouts/BaseLayout.astro
---
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>{Astro.props.title}</title>
    <script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>
  </head>
  <body>
    <slot />
  </body>
</html>