Integration Guide
Deploy ultra-fast, cookieless analytics to your performance-first Astro site.
Astro is the modern web framework built for speed, delivering zero-JavaScript layouts by default. Adding heavy tracking code to an Astro site defeats the purpose of optimization.
TrackWhy is the ideal analytics companion for Astro. At 1.7 KB, it respects Astro's zero-JS philosophy. It loads asynchronously, tracks transitions, and gathers deep insights without injecting unnecessary script runtimes.
Get complete analytics — from traffic sources to conversion paths — on your static and dynamic Astro routes while maintaining a perfect PageSpeed score.
Step-by-step
Capabilities
TrackWhy’s tiny script matches Astro’s design goals, ensuring your site remains lightning-fast.
Works perfectly whether you compile Astro to static HTML (SSG) or render dynamically on the server (SSR).
No cookies or PII collected, matching the clean developer ethos of the Astro community.
FAQ