Overview
Before visitors sign up or log in, they’re anonymous. Outlit tracks their behavior and later connects it to their profile when they identify themselves.The Anonymous Phase
When someone visits your website for the first time:- Visitor ID generated - A UUID stored in localStorage and cookies
- Session begins - First-touch attribution captured (UTM, referrer)
- Events tracked - Pageviews, form views, button clicks
- Stored as AnonymousVisitor - Ready to be linked later
What’s Captured
Automatic Attribution
On first visit, Outlit captures:| Data | Source | Example |
|---|---|---|
| UTM Source | URL params | utm_source=google |
| UTM Medium | URL params | utm_medium=cpc |
| UTM Campaign | URL params | utm_campaign=spring_2024 |
| First Referrer | HTTP header | https://google.com |
| First Landing Page | URL | /pricing?plan=pro |
| IP Address | Request | For company enrichment |
Events Stored
All events are stored for anonymous visitors and will be linked when they identify:Form Data
Form submissions are captured with automatic sanitization:Sensitive fields (password, credit_card, SSN, etc.) are automatically removed from form data.
Visitor ID Storage
The visitor ID is stored in two places for redundancy:localStorage
Cookie
The cookie enables cross-subdomain tracking (e.g.,
www.example.com → app.example.com) and works when localStorage is blocked.Identity Resolution
Whenidentify() is called, the anonymous history is linked:
What Happens
- Find or create contact with the provided email
- Link the anonymous visitor to the contact
- Historical events are processed:
- All previous events are added to the customer timeline
- Original timestamps are preserved
- The complete journey is now visible
Timeline After Resolution
Cross-Device Behavior
Anonymous tracking is per-browser. The same person on different devices has different visitor IDs until identified:Session Management
New Sessions
A new session starts when:- 30+ minutes of inactivity (configurable)
- Browser closed and reopened
- New day (midnight UTC)
Session Data
Each session tracks:- Session start time
- Pages viewed in session
- Session duration
- Conversion events
Company Enrichment
For B2B scenarios, anonymous visitors can be enriched with company data:- IP Address captured on first visit
- Background job looks up company by IP
- Company associated with AnonymousVisitor
- Appears in dashboard as “Company X visiting”
Company enrichment requires additional configuration. Contact us for setup.
Handling Edge Cases
Cleared Cookies/Storage
If a visitor clears their browser data:- New visitorId generated
- Previous anonymous history orphaned
- Can only link if they identify again
Private/Incognito Browsing
- New visitorId per session
- localStorage may be cleared on close
- Cookie may not persist
- History captured but may not link
Multiple People, Same Browser
If multiple people use the same browser:- Same visitorId used
- Events mixed together
- Identify separates them (by email)
Accessing Anonymous Data
Get Current Visitor ID
Send to Your Backend
Privacy Considerations
Data Retention
Anonymous visitor data is retained for:- Unidentified visitors: 90 days (configurable)
- Identified visitors: Linked to customer, retained per your policy
GDPR Compliance
- Anonymous data can be deleted on request
- Visitor ID is pseudonymous (not directly identifying)
- IP addresses used only for company lookup
- No cross-site tracking