Next.js analytics with Eyepup
Eyepup auto-detects Next.js (App Router OR Pages Router) and injects the tracker into your root layout / _document.tsx — one command, zero scaffolding.
Three lines to wire it up
$ npm i -g eyepup
$ eyepup login
$cd your-app && eyepup install
Where the snippet lands
App Router: app/layout.tsx — the snippet lands inside the <head>. Pages Router: pages/_document.tsx via the next/script convention.
Bonus
Works with React Server Components, streaming, and PPR. The tracker is a small client-side IIFE so it doesn't bloat your server bundle.
