Log inStart for free

Analytics for Astro

Product 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

What Astro teams can finally see

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.

No data on engagement

Heatmaps and scroll maps show how far visitors read and what they click on your content pages.

Conversions are a black box

Track custom events on CTAs and forms to build funnels from visit to signup.

Setup

Add PulsePanda to Astro

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

From install to insight

1

Install the snippet

Add the script once to your Astro project. Web analytics, autocaptured clicks, session replay, and heatmaps start collecting immediately.

2

Track what matters

Call pulsepanda.track() on key actions and pulsepanda.identify() after login to connect events, sessions, and feedback to each user.

3

Act on the data

Build funnels, watch the replays behind drop-offs, read heatmaps, and collect in-product feedback — all in one workspace.

What you get

One snippet, the full picture

Analytics layerPage views, custom events, conversion funnels, and retention.
Behavior layerSession replay, click and scroll heatmaps, and error context.
Feedback layerIn-product surveys, feedback widgets, forms, and a feature voting board.

FAQ

Astro questions

Will PulsePanda slow down my Astro site?

No. The script is deferred and loads after your content, so it does not block rendering or hurt your Lighthouse score.

Does it work with Astro View Transitions?

Yes. The SDK tracks History API navigation, so client-side transitions are counted as page views.

Can I use it on a static (SSG) Astro site?

Yes. The snippet is fully client-side, so it works the same on static, SSR, or hybrid Astro builds.

Related pages

Explore more

Add analytics to your Astro app

Install once and connect analytics, session replay, heatmaps, funnels, and feedback in minutes.

Start for free