Prerequisites
Before you begin, you’ll need:An Outlit account with an organization
Your public key from Settings → Website Tracking
Step 1: Add the Tracker
Choose your preferred integration method:- Script Tag
- NPM
- React
Add this script tag before the closing
</body> tag on every page:Step 2: Verify Installation
After adding the tracker, visit your website and:- Open browser DevTools → Network tab
- Filter by “outlit” or “events”
- You should see requests to
app.outlit.ai/api/i/v1/...
Look for requests to
app.outlit.ai/api/i/v1/ with a 200 status code.If you don’t see requests, check that your public key is correct and the domain is allowed in your tracking settings.
Step 3: Track Custom Events
Beyond automatic pageviews and form captures, track events that matter to your business:Step 4: Identify Visitors
When a visitor signs up, logs in, or submits a form with their email, identify them:Good news: If your signup/login uses a standard HTML form with an email field, auto-identify handles this automatically! Manual
identify() calls are only needed for:- JavaScript-based auth (OAuth, magic links)
- Server-side authentication
- Adding additional traits after login
What’s Captured Automatically
With the default configuration, Outlit automatically captures:| Event | Trigger | Data |
|---|---|---|
| Pageview | Every navigation | URL, path, title, referrer, UTM params |
| Form Submit | Form submission | Form ID, field values (sensitive fields removed) |
| Auto-Identify | Form with email | Email + name extracted, visitor linked to profile |
| Engagement | Page exit/navigation | Active time, total time on page |
| Calendar Booking | Cal.com/Calendly embed | Provider, event type, scheduled time |