User Identification

User Identification links feedback to individual users in your Userback workspace. When a user submits feedback, their name, email, and any custom attributes you pass are stored alongside it — making it easy to filter, segment, and follow up.


Which method should I use?

Use identify() if your users log in or switch accounts — it updates user data dynamically without a page reload. Use user_data if your application is static or you're using the JavaScript snippet installation method — it sets user data once on page load.


identify() — recommended

Userback.identify(123456, {
    name: 'Jane Doe',
    email: '[email protected]',
    plan: 'Pro',
    account_id: 456785
});

Call identify() after your user logs in. It can be called multiple times — each call overwrites the previous data.


user_data

Userback.user_data = {
    id: 123456,
    info: {
        name: 'Jane Doe',
        email: '[email protected]',
        plan: 'Pro',
        account_id: 456785
    }
};

Set user_data before the widget initialises. A page reload is required to update it.


What data can you pass?

FieldDescriptionExampleRequired?
idUnique identifier for the user.123456Required
nameFull name of the user.Jane DoeRequired
emailEmail address of the user.[email protected]Required
Custom attributesAny additional user details as key-value pairs.{ plan: 'Pro', account_id: 456785 }Optional
locationAutomatically generated location data.Wanaka, New ZealandSystem generated
first seenTimestamp of the first interaction.2021-07-14 09:08:01System generated
last seenTimestamp of the most recent interaction.2021-10-13 12:14:22System generated

Rules

  • Key names must not contain special characters.
  • Values must be strings, numbers, or booleans.
  • Use a consistent id format across your application.

Accessing user data

Once users are identified, their data appears in the right-hand sidebar of the Feedback Viewer.


Need help? Visit the Help Center or use the chat bubble on this page to contact our support team.


Did this page help you?