Install Piqo on Astro
One line in your base layout covers every page.
- Open your shared layout (e.g.
src/layouts/BaseLayout.astro). - Paste the snippet inside the
<head>. - Run
astro buildand 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>