Add names, emails, and other user information

LogRocket.identify also takes a second optional JSON argument containing a key/value pair of data that you'd like to associate with the given user.

Name and Email

If the name or email keys are given they will be displayed instead of the UID in the UI. They can also be used in the search box to quickly find user sessions:

LogRocket.identify('123456', {
  name: 'John Smith',
  email: '[email protected]',
});

Miscellaneous Data

Other user information can also be given. This information will not be displayed in the session list directly, but can used for search using the User Traits filter. It will also be displayed in the user details in each session:

LogRocket.identify('123456', {
  name: 'Jane Smith',
  email: '[email protected]',
  age: 43,
  favoriteColor: 'blue',
  currentSubscription: 'professional-plan',
});

🚧

Custom user data is identified on the user and will be the same across all of their sessions. Use LogRocket.track() to add information to individual sessions.