Skip to content

Identity Resolution

Identity resolution automatically connects pre-login anonymous activity with identified user profiles.

  1. Anonymous Tracking: User visits, browses, and is assigned an anonymous ID
  2. Identification: User logs in and you call analyze.identify()
  3. Stitching: analyze.swiss links all anonymous activity to the user profile
  4. Unified View: See the complete journey from first touch to conversion

```javascript // Before login - user is anonymous analyze.track(‘page_viewed’); analyze.track(‘feature_explored’);

// User logs in analyze.identify(‘user_123’, { email: ‘user@example.com’ });

// Now all previous events are linked to user_123 ```

When a user logs in on multiple devices, their activity is automatically merged:

  • Desktop browsing → Login → Mobile browsing → All linked to one profile

For B2B products, link users to companies:

```javascript analyze.identify(‘user_123’, { email: ‘user@acme.com’, company: { id: ‘company_456’, name: ‘Acme Inc’ } }); ```

This enables company-level analytics and account-based attribution.