User Traits
Introduction
Section titled “Introduction”You can think of Traits as a high level description of all the user data that is stored in your Refiner environment. If you think about your user data as a giant spreadsheet, a Trait would represent one column in your spreadsheet.
Traits are created automatically whenever we receive user data for your Refiner environment:
- When you identify a user, a trait is created for each data attribute that you include in the identifyUser call.
- When we receive a new survey response, a trait is created for each survey question based on the question identifier
- Computed traits are automatically generated when new user data is available, for example “User first seen”, “Last survey submission”, “Total survey submissions”, etc. (see below).
You can find all trait data we have on record for a given user in the User Details Panel.
Trait types
Section titled “Trait types”Refiner distinguished between the following four types of traits.
Survey response data
Section titled “Survey response data”Survey response data represents all information that we collected for a user when they replied to one of your surveys. Trait names are created automatically based on the Question Identifier you chose for your survey questions.
As the name suggests, survey response data is linked to survey responses. When a user responds multiple times to a survey – generating multiple survey responses – you’ll see one data value for each response.
Metadata
Section titled “Metadata”Metadata is generated and updated automatically for each user, whenever an important event happens for their user profile. The information includes things like the time we first saw a user, how many surveys they saw, etc.
Contact data
Section titled “Contact data”Contact data contains information sent through the identifyUser method, for example when you identify a user with our JavaScript SDK, our Mobile SDK, a data integration, or an API call.
Whenever you send contact data, Refiner updates the provided traits with their latest values.
Unlike survey response data, contact data represents the user’s current information and is not tied to a specific event or survey response.
Account data
Section titled “Account data”Besides storing data for each individual user, Refiner also lets you store data on an “account” level. An account groups multiple users in one entity. You can think of accounts as “groups” or “companies”.
Account traits are only created when you explicitly provide an account object when identifying users with our JavaScript SDK, our Mobile SDK or through our API.
Account data behaves in the same way as Contact data and it always represents the latest set of data which we received from you.
Trait properties
Section titled “Trait properties”Data type
Section titled “Data type”Refiner supports the following data types:
- Strings – Text values up to 4 KB in size
- Integer numbers – ranging from -2147483647 to 2147483647
- Dates – ISO date format or Linux timestamp
Strings and Integer numbers are detected automatically by our APIs.
To import dates to Refiner, your field identifier needs to follow a certain pattern. Our APIs detect dates if the field name ends with “_at” (e.g. created_at, upgraded_at, another_event_at, …) or “_date” (e.g. subscription_date, last_login_date, …). You can provide dates as ISO strings or Unix Timestamps.
When Refiner returns date and timestamp fields through the API, webhooks, integrations, or data downloads, all values are in UTC.
Finite data
Section titled “Finite data”A trait can be labeled as a “Finite dataset”, which means that trait has a limited and well defined number of possible values. For example, a list all countries or the activation status of a user, are both finite datasets. The opposite of a finite dataset are continuous datasets, such as arbitrary strings (e.g. “first name”) or numbers (e.g. “login count”).
When a dataset is set to “Finite”, you’ll have access to different kind of filters when creating a data-driven segment.
Refiner tries to figure out automatically if a field holds a finite or continuous dataset, based on the name of the field (e.g. “country”, “role”, …). If Refiner didn’t get it right, you can change switch a data field from finite to continuous and vice versa anytime.
Reserved traits
Section titled “Reserved traits”Refiner has several reserved field identifiers that you should be aware of.
If you use any of the following data fields, Refiner will interpret the provided data in a specific way or ignore it.
| Trait | Description |
|---|---|
account |
Used to group users into accounts when identifying users with the JavaScript SDK or REST API. Pass an object with an id and any account-level traits; it is not stored as a user trait. |
completed_at |
Reserved for survey response metadata: the date and time when a user completed a survey. |
country |
If provided when identifying a user, Refiner uses this value to overwrite the automatically detected country of the user. The provided value is also used for the country targeting feature of in-app surveys. Expects a two-character ISO 3166 country code. |
current_screen |
Reserved for tracking the current screen of a mobile app user (only if metadata collection is enabled). |
current_url |
Reserved for tracking the current URL of a web app user (only if metadata collection is enabled). |
dismissed_at |
Reserved for survey response metadata: the date and time when a user dismissed a survey. |
display_name |
Computed automatically for users (from name, or first_name and last_name) and for accounts (from name or domain), so it can’t be set directly. In Liquid Tags, contact.display_name always resolves to this computed value rather than any custom display_name trait. |
domain |
Automatically treated as an account-level trait and used as a fallback for the account’s display_name when no account name trait is set. |
email |
The email address of the current user. Optional; if provided without an id, Refiner uses the email address as the user identifier. |
first_data_reception_at |
Reserved for survey response metadata: the date and time when Refiner received the first answer for a survey response. |
first_name |
Used together with last_name to populate the user’s display_name when no name trait is set. |
first_seen_at |
The date and time when a user or account was first seen by any of our APIs. Calculated automatically and can’t be overwritten. |
first_shown_at |
Reserved for survey response metadata: the date and time when a survey was first shown to a user. |
form_submissions_count |
The number of times a user responded to a survey. Calculated automatically and can’t be overwritten. |
form_views_count |
The number of times a user saw a survey. Calculated automatically and can’t be overwritten. |
id |
A unique string identifier for the current user (returned as remote_id in REST API and webhook payloads). Mandatory if you don’t provide an email. Inside an account object, id identifies the account (account.remote_id). |
ip_address |
Reserved for tracking the IP address of a user (only if metadata collection is enabled). In the REST API, ip_address sets the request IP rather than being stored as a custom trait. |
last_data_reception_at |
Reserved for survey response metadata: the date and time when Refiner received the latest answer for a survey response. |
last_form_submission_at |
The date and time when a user last responded to a survey. Calculated automatically and can’t be overwritten. |
last_form_view_at |
The date and time when a user last saw a survey. Calculated automatically and can’t be overwritten. |
last_name |
Used together with first_name to populate the user’s display_name when no name trait is set. |
last_seen_at |
The date and time when a user or account was last seen by any of our APIs. Calculated automatically and can’t be overwritten. |
last_shown_at |
Reserved for survey response metadata: the date and time when a survey was last shown to a user. |
locale |
If provided when identifying a user with our JavaScript SDK, Refiner uses this value to overwrite the automatically detected language of a user. Used for language targeting and multi-language translation. Expects a two-character ISO 639-1 code. |
locale_used |
The actual language a survey was translated to when the user responded to it. |
mobile_os_version |
Reserved for tracking the OS version of a mobile app user (only if metadata collection is enabled). |
mobile_platform |
Reserved for tracking the mobile platform (ios, android) of a mobile app user (only if metadata collection is enabled). |
mobile_sdk_version |
Reserved for tracking the SDK version of a mobile app user (only if metadata collection is enabled). |
name |
Used to populate the user’s display_name, or the account’s display_name when sent as an account trait. |
published_at |
Reserved for survey metadata: the date and time when a survey was published. |
received_at |
Reserved for survey response metadata: completed_at if the user completed the survey, otherwise first_data_reception_at. |
show_counter |
Reserved for survey response metadata: the number of times a survey was shown to a user for that response. |
tags |
Reserved in the REST API for attaching response tags and not stored as a user trait on REST API endpoints. When stored as a trait via an SDK, its value is returned as an array rather than a comma-separated string. |
uuid |
Refiner’s internal unique identifier for a user or account. In the REST API, top-level uuid identifies an existing user and is not stored as a trait. In Liquid Tags, contact.uuid and account.uuid always resolve to Refiner’s UUID rather than any custom uuid trait. |
web_browser |
Reserved for tracking the web browser name of a web app user (only if metadata collection is enabled). |
web_device_os |
Reserved for tracking the OS name of a web app user (only if metadata collection is enabled). |
web_device_type |
Reserved for tracking the device type (desktop, tablet, mobile) of a web app user (only if metadata collection is enabled). |
write_operation |
Allows you to switch the write operation from append to replace when calling the identify-user route of the REST API. |
Please note that many of the reserved trait names are metadata fields (e.g. country, current_url, locale, …) that can be collected automatically by enabling the metadata collection option.
Other fixed fields returned on user or account objects in the REST API and Webhooks (such as cookie_uuid, project_uuid, remote_id, last_tracking_event_at, or segments) live outside attributes and are not reserved trait identifiers.
Manage traits
Section titled “Manage traits”The Traits Table is where you find a description of all traits that are stored in your Refiner environment for your users. The page lets you rename, disable and delete traits.

Rename traits
Section titled “Rename traits”Trait names are created automatically based on the identifier used in your surveys or when calling our API. You can rename traits if you want to add more clarity to your Refiner account.

Get usage info
Section titled “Get usage info”For each trait you’ll find check icon that indicates if a trait is currently used in your environment. Clicking on the icon will reveal detailed usage information.

Delete and disable traits
Section titled “Delete and disable traits”You can choose to delete a trait or disable it. When you delete a trait, it will be removed from your environment and all associated data with it. A deleted trait will reappear if we receive new data using the same identifier.

When you disable a trait, Refiner will ignore all incoming data for it and you won’t see the trait in other places in your dashboard.
You can also create traits manually if needed. For example if you want start building segments before connecting an actual data source to your environment.c
Flag as finite data
Section titled “Flag as finite data”You can flag a Trait as being a “Finite data” (see description above). When you flag a trait as such, you’ll see more adapted filter options when creating a data-driven segment.
Limitations
Section titled “Limitations”The number of traits is limited to 3.000 traits per environment. Once this number is reached, we won’t create new traits on data reception which might lead to data loss. If you think you’ll need more traits, please contact our support team.
