Skip to main content
HTML5 No npm. No build step. Paste this inside the <head> of every page and you’re done.
Replace YOUR_TOKEN_HERE with the token from Utilities → Environment (site token) in your dashboard. Set environment to production or development.
Always set environment. Only "production" and "development" are accepted. If omitted, events default to development.
Any API calls you make (like __tl.identify()) before the SDK finishes loading are queued and replayed automatically — so you can call them on the very next line.

Adding user identity


Pin to a specific version

Use this when you want to lock to a specific release and never receive automatic updates:

Strict CSP (rrweb bundled in)

If your Content Security Policy blocks dynamically injected <script> tags, use the full bundle. It’s larger (~60 KB gzipped vs < 20 KB) but loads no additional scripts at runtime:

LLM Prompt

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

What’s next?