Identifying users
Identifying users allows you to associate names, emails, or temporary support codes with sessions in your dashboard.

Logged-in users

If your application is using Segment to collect user attributes, please see the Segment integration.
After users have logged in, you can identify them by passing a unique user ID (required) along with the attributes you would like to see on the Cohere dashboard — for instance, their name and email.
"<user_id>", // Required: can be any unique ID
displayName: "<user_display_name>", // Optional
email: "<user_email>", // Optional

Anonymous visitors and logged-out users

The easiest way to identify users is to have them read out a 6-digit support code to an agent.
To get a support code, prompt your user to press the Equals (=) key 5 times. They should see a code in the corner:
Go ahead and try pressing Equals (=) 5 times on this page!
You can also add a button to your site that opens the code popup using our API:
// Optionally, pass in a position ("bottomRight", "bottomLeft", "topLeft", "topRight")
// like so: Cohere.showCode("bottomLeft");
Now, you can search for your user in the Cohere dashboard's search bar.
Copy link
On this page
Logged-in users
Anonymous visitors and logged-out users