Skip to main content
TL;DR: Identity resolution is how Outlit links anonymous website visitors, known contacts, and customer accounts in the customer context graph. When someone browses your site anonymously and later signs up or logs in, Outlit connects their history to the right complete customer profile.

Auto-Identify

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:
  1. 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)
  2. 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
  3. 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:

How does identity resolution work?

Identity Priority

When multiple identifiers exist, Outlit uses this priority order:

Resolution Process

When you call identify():
  1. Search existing contacts by provided identifiers
  2. Match found? Link the anonymous visitor to existing contact
  3. No match? Create new CustomerContact and Customer
  4. Multiple matches? Merge profiles, keeping the most complete one
When 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.

What are the 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.):
Always send both email and userId when available. This creates the strongest identity link.

Customer ID

Your system-owned customer, account, or workspace ID. Use this when product usage or billing is account-scoped:
Server-side track() calls can also use customerId without a user identity:
Those events are attributable immediately to the account/workspace and can later link to the contact resolved from email when identify({ email, customerId }) is sent.

Anonymous Visitor ID

Automatically generated for browser visitors:
This ID is stored in localStorage and cookies, persists across sessions (same browser), and gets linked to CustomerContact after identify.

Fingerprint (Device ID)

For native apps without browser storage (desktop, mobile, CLI), use a fingerprint—a stable device identifier you generate and manage:
See Device Tracking for implementation details.

How does profile merging work?

When Outlit detects the same person with different identifiers, profiles are merged.

Merge Triggers

User visits on phone (visitorId: A), then laptop (visitorId: B), identifies with same email on both.Result: Both visitor histories merge into one CustomerContact.
User identifies as jane@old-company.com, later updates to jane@new-company.com while logged into same account (userId).Result: New email added to contact identifiers, profiles linked.
User signs up with email, later links Google OAuth which has different email.Result: Both emails link to same contact via shared userId.

Merge Rules


Browser vs Server Identity

Anonymous visitors are supported
  • visitorId auto-generated
  • Events stored until identification
  • Later linked via identify() or setUser()

Best Practices

1. Identify Early

Call identify() as soon as you have user information:

2. Always Send Both Identifiers

When you have both email and userId, send both:

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: Usually caused by the same person using different emails or missing userId. Contact support for manual merge.
  • Anonymous history not appearing: The identify() call must come from the same browser/device. Background processing may take up to 5 minutes.

Next Steps

Website Visitors

Deep dive into the anonymous phase

API Reference

Direct API for custom integrations