Identify from forms
By default, Outlit automatically identifies visitors when they submit a form containing an email field—no code required.How it works
When a form is submitted, Outlit:-
Detects email by looking for:
- Field names:
email,e-mail,user_email,emailAddress - Input type:
type="email" - Any field with a valid email value (fallback)
- Field names:
-
Extracts name by looking for:
- Full name:
name,full_name,fullname,your_name - First name:
first_name,fname,firstname,given_name - Last name:
last_name,lname,surname,family_name
- Full name:
-
Calls
identify()automatically:
The form submission event is still captured separately. Auto-identify adds an additional
identify event when an email is found.Disabling auto-identify
If you prefer to handle identification manually:- Script tag
- React
- npm
How identity resolution works
For example, two anonymous visits with different visitor IDs both identify asjane@acme.com. Outlit links both histories to the same contact. A server event for usr_456 that identifies with the same email joins that contact’s customer profile too.
Identity priority
When multiple identifiers exist, Outlit uses this priority order:Resolution process
When you callidentify():
- Search existing contacts by provided identifiers
- Match found? Link the anonymous visitor to existing contact
- No match? Create a new contact and, when the evidence supports it, a customer profile
customerId is provided with an identify call, Outlit also links that contact to your system-owned account/workspace identifier. That is how earlier customerId-only server events become part of the same customer profile once a user identifies.
Outlit treats organizational domains differently from common personal email providers. An address like
jane@acme.com can establish company account context, while jane@gmail.com, academic addresses, and other personal/common-provider emails are resolved as personal contacts unless another source links them to an account.Identifier types
Email (primary)
Email is the most reliable identifier because it’s unique per person, verified through login/signup, and works across devices.External user ID
Your application’s internal user ID (from Supabase, Auth0, Firebase, etc.):Customer ID
Your system-owned customer, account, or workspace ID. Use this when product usage or billing is account-scoped:track() calls can also use customerId without a user identity:
identify({ email, customerId }) is sent.
Anonymous visitor ID
Generated for browser visitors once tracking is enabled:autoTrack: "auto" mode, nothing is stored in regions that require opt-in consent (EEA, UK, Switzerland, or unknown) until enableTracking() runs.
The visitor ID cookie is set on your root domain, so example.com and app.example.com share one ID. Install the Browser SDK on both your marketing site and your app, and identify users after login with setUser() or identify(). Their earlier marketing-site visits then link to the contact. Sites on different root domains don’t share an ID.
Fingerprint (device ID)
For native apps without browser storage (desktop, mobile, CLI), use a fingerprint—a stable device identifier you generate and manage:How identifiers connect activity
Outlit links histories when they share an exact identifier, such as the same email or user ID. When two customer records might match but the evidence is ambiguous, Outlit presents a merge suggestion for review instead of combining them automatically.Linking examples
Same email, different visitor IDs
Same email, different visitor IDs
User visits on phone (visitorId: A), then laptop (visitorId: B), identifies with same email on both.Result: Both visitor histories link to one contact.
Email change / correction
Email change / correction
User identifies as
jane@old-company.com, later updates to jane@new-company.com while logged into same account (userId).Result: The shared user ID can link activity to the known contact; review conflicting records before any customer merge.Multiple auth methods
Multiple auth methods
User signs up with email, later links Google OAuth which has different email.Result: The shared user ID can connect the activity to the same contact.
Browser vs server identity
- Browser tracking
- Server tracking
Anonymous visitors are supported
- visitorId generated once tracking is enabled
- Events stored until identification
- Later linked via identify() or setUser()
Best practices
1. Identify early
Callidentify() as soon as you have user information:
2. Always send both identifiers
When you have both email and userId, send both:Review identity across connected sources
Tracking identifiers are one part of customer identity. Outlit also links records from connected billing, CRM, and other sources to the customer profile. Open the customer’s Coverage tab to inspect the sources behind that account and investigate missing or unexpected matches. An Identity review page is available in some workspaces for inspecting identifiers and merge suggestions. Ask your Outlit contact about access. Identity resolution continues to operate when this review page is unavailable. For programmatic diagnosis, useoutlit customers identity <customer-uuid> and outlit identity suggestions list. Customer merges require exact IDs and a reviewed preview before execution. Follow the merge workflow rather than merging based on a similar name alone.
Debugging
Common identity issues:- Events not linking to user: Ensure
identify()is called after authentication and that email/userId matches what you expect. - Duplicate customer profiles: Inspect their identifiers and source coverage. Different emails, missing shared identifiers, and personal-email accounts can produce separate records. Review any merge suggestion before combining records; contact Outlit when the correct match is unclear.
- Anonymous history not appearing: The
identify()call must carry the same browser/device identifier used for the earlier activity. Check that tracking was enabled and the same public key was used, then allow for background processing.
Next steps
Website visitors
Deep dive into the anonymous phase
API reference
Direct API for custom integrations
