Skip to main content
Next.js
Add init() inside useEffect in _app.tsx so it only runs in the browser:
Always set environment. Only "production" and "development" are accepted. If omitted, events default to development.
Tracelit automatically tracks client-side navigation between pages via history.pushState — no extra setup needed.

Adding user identity


LLM Prompt

Paste this into your coding assistant to install Tracelit for you:

What’s next?