Static sites lack insight
Astro ships fast static pages, but you still need to know what visitors do. PulsePanda adds analytics without slowing the page.
Analytics for Astro
Add page views, events, session replay, and heatmaps to your Astro site from a single script tag in your layout — no islands, hydration, or backend setup required.
Why it matters
Astro ships fast static pages, but you still need to know what visitors do. PulsePanda adds analytics without slowing the page.
Heatmaps and scroll maps show how far visitors read and what they click on your content pages.
Track custom events on CTAs and forms to build funnels from visit to signup.
Setup
Add the snippet to the <head> of your base layout so every page that uses it includes the SDK.
Astro — src/layouts/Layout.astro
---
// src/layouts/Layout.astro
---
<html lang="en">
<head>
<meta charset="utf-8" />
<script
src="https://pulsepanda.dev/sdk.js"
data-project="YOUR_PROJECT_ID"
defer></script>
</head>
<body>
<slot />
</body>
</html>If you use Astro View Transitions, the SDK still tracks each navigation because it listens for History API changes.
Workflow
Add the script once to your Astro project. Web analytics, autocaptured clicks, session replay, and heatmaps start collecting immediately.
Call pulsepanda.track() on key actions and pulsepanda.identify() after login to connect events, sessions, and feedback to each user.
Build funnels, watch the replays behind drop-offs, read heatmaps, and collect in-product feedback — all in one workspace.
What you get
FAQ
No. The script is deferred and loads after your content, so it does not block rendering or hurt your Lighthouse score.
Yes. The SDK tracks History API navigation, so client-side transitions are counted as page views.
Yes. The snippet is fully client-side, so it works the same on static, SSR, or hybrid Astro builds.
Related pages
Install once and connect analytics, session replay, heatmaps, funnels, and feedback in minutes.
Start for free