init() inside useEffect in _app.tsx so it only runs in the browser:
history.pushState — no extra setup needed.
Install Tracelit in a Next.js Pages Router project via _app.tsx. SSR-safe with automatic SPA route tracking.
init() inside useEffect in _app.tsx so it only runs in the browser:
history.pushState — no extra setup needed.