Skip to main content

User Identification

Identify users and associate them with groups for better analytics and session tracking.

Identify Users

Basic Identification

Set Additional Properties

Set Properties Once

Get Current User ID

Reset Identity

Group Analytics

Associate users with companies, teams, or other groups:

Associate with a Company

Multiple Group Types

Get All Groups

Bootstrap with Initial Data

Set initial user data when initializing the SDK:

Example: Complete User Flow

Use Cases

  • Track user behavior across sessions by identifying users
  • Group analytics by associating users with companies or teams
  • Personalize experiences by storing user properties
  • Segment users based on properties like plan, industry, etc.
  • Track user journeys from anonymous to identified

Best Practices

  1. Identify users early - Call identify() as soon as you know who the user is
  2. Use consistent IDs - Use the same ID format across your application
  3. Store useful properties - Include properties that help with analytics and segmentation
  4. Reset on logout - Call reset() when users log out to start fresh
  5. Use groups - Associate users with companies/teams for better analytics