Integration Guide
Deploy cookieless, lightweight web analytics for your Next.js application in minutes.
Next.js is the premier framework for building high-performance, SEO-friendly React web applications. But adding default analytics libraries like Google Tag Manager can immediately bloat your bundle size, hurting your Core Web Vitals and search rankings.
TrackWhy is optimized for Next.js applications. With a script size of just 1.7 KB, it load-defers automatically and does not block the main thread. It enables you to measure pageviews, custom events, funnels, and retention without adding heavy runtime dependencies or loading trackers that affect performance.
Moreover, because TrackWhy is cookieless and collects no personally identifiable information (PII), you do not need to implement or display a cookie consent banner. Keep your user experience clean, fast, and fully compliant.
Step-by-step
Capabilities
At 1.7 KB, TrackWhy has zero impact on your PageSpeed or Lighthouse score, helping you rank higher.
Integrates perfectly with Next.js App Router, routing events correctly on client-side navigation transitions.
Optionally monitor real-user Core Web Vitals (LCP, FID, CLS) directly within your Next.js application.
FAQ