Skip to content

Sending User Data

Connect anonymous activity to known user profiles using the identify method.

```javascript analyze.identify(‘user_123’, { email: ‘john@example.com’, name: ‘John Doe’, plan: ‘enterprise’, created_at: ‘2024-01-15’ }); ```

Call identify when:

  • User logs in
  • User signs up
  • User profile is updated

Include relevant properties:

```javascript analyze.identify(‘user_123’, { // Basic info email: ‘user@example.com’, name: ‘John Doe’,

// Subscription info plan: ‘pro’, mrr: 49,

// Company info (B2B) company: { id: ‘company_456’, name: ‘Acme Inc’, industry: ‘Technology’, employees: 50 } }); ```

analyze.swiss automatically stitches anonymous activity to identified users, giving you a complete journey view.