Skip to main content

Users

User Identification

Users represent each unique person who visits your solution.

When a person visits your website or mobile app, an anonymous user is created with a unique and temporary identifier.

This identifier is then saved so that the user is recognized on their future visits through the following methods:

  • Web: cookies
  • Android: SharedPreferences
  • iOS: Keychain

When the identify function is called (at the time of login), the user, who was previously anonymous, becomes identified with the information you provide. A unique id must be provided.

All the information collected about a user when they are anonymous will be associated with their account once they log in.

This information can be viewed in the Audience section of Told.

If you call the reset function (at the time of logout), a new anonymous user will be created, and the current session will use this new identifier.

Information Stored During Identification

When the identify function is called, several pieces of information are recorded. Some of these are common to all users:

TRAITTYPEDESCRIPTION
idStringUnique ID in your database for a user.
nameStringUser's name.
createdAtDateAccount creation date. Segment recommends date strings in ISO-8601 format.
emailStringUser's email address.
firstNameStringUser's first name.
lastNameStringUser's last name.
usernameStringUsername.
websiteStringGroup’s website.
phoneStringGroup’s phone number.
addressObjectGroup’s postal address (may include city, country, postalCode, state, or street).
avatarStringURL of the user's avatar image.
descriptionStringDescription of the user, such as their personal biography.
languageStringUser's language (locale), without the region, e.g., "en" for English.

Name

The user's name can be provided via the name field, or by concatenating the firstName and lastName fields, or from the username field.

Language

The default language is typically that of the user's web browser or mobile phone. If specified during the identify function call, it will override the default value.

Solicitation

Solicitation refers to the number of times a user sees a Told appear.

Sessions

The number of sessions refers to how many times a user visits your website or mobile app, with a 30-minute interval between each visit.


Import

You can import your users from your database in JSON or CSV format.

Each data entry must include a mandatory id field.

When importing users, you can add a groups field, which contains a list of company IDs to which the user belongs.

If the passed company does not exist, it will be created.