Skip to main content
Svelte
Call init() inside onMount in your root layout so it only runs in the browser:
Always set environment. Only "production" and "development" are accepted. If omitted, events default to development.
onMount only runs on the client, so init() is never called during SSR. No extra guard needed.

Adding user identity


LLM Prompt

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

What’s next?