Identify users

Identify your users to better understand your dashboard data and prevent duplicate users.

At Jimo, we care for the privacy of your users. Therefore, it's not required to identify them before giving feedback. But from your side, this can be annoying to receive feedback from an anonymous user.

Jimo allows you to identify users by passing a unique identifier in order to

  • Know who has interacted with experiences

  • Prevent duplicate users

Carefully choose your identifier

  • Make sure your identifier is unique and not guessable (ex. UUID, NanoId, CUID, etc.). Most of the time, a good identifier would be the internal id of the user in your system.

  • In some companies, customer support team or admins can log in to their end-users accounts, for customer or debugging purposes. In this specific case, we advise you to either disable the Identification feature (do not call the identify command), or to not load Jimo at all, to prevent unexpected behavior.

To identify users, make sure to have the SDK installed on your web app then use the following command :

window['jimo'].push(['do', 'identify', [userId]]);

If you'd like to pass additional attributes right after the identify, you will have to use a callback function as follow :

window['jimo'].push([
  'do',
  'identify',
  [
    userId,
    () => {
      window['jimo'].push(['set', 'user:name', [username]]);
    },
  ],
]);

Examples

See bellow a screenshot of a profile without identification and one with an id (b7b8c565...) and a user name (Sam) pushed.

Here is the code used to identify the profile

window['jimo'].push([
  'do',
  'identify',
  [
    "b7b8c565-65a0-4dbd-8438-3b8c8773f49f",
    () => {
      window['jimo'].push(['set', 'user:name', ["Sam"]]);
    },
  ],
]);

Last updated