Top
Identify unique users in Whatfix Analytics
  • 16 Aug 2024
  • 4 Minutes To Read
  • Dark
    Light
  • PDF

Identify unique users in Whatfix Analytics

  • Dark
    Light
  • PDF

Article summary

User Identification

Identifying users on the Web is a challenging task. Whatfix uses a combination of parameters to uniquely identify a user. These parameters include setting browser cookies on the user’s browser and passing the user information (when available) back to Whatfix.

Whatfix provides an API to accurately set and pass user information. However, if the user information is not configured, then we use browser local storage and cookies to identify the user. While the second approach doesn’t involve as much configuration as the first, there are a few issues with using cookies:

  • The same user when using different browsers or machines is counted again.
  • Users who clear cookies or browse using in-private sessions are counted again.
  • Users who are inactive for more than 3 months are counted again as browser cookies are set to expire after an inactivity of 3 months.

User Identifier Method

We recommend using user information so that we can correctly identify users and provide more accurate analytics. User information can be set using wfx_settings. This can also be used along with the extra values to segment user behavior.

Usernames and extra information are considered Personally Identifiable Information (PII) and therefore are encrypted throughout, in transit and at rest. So anything that is passed as user information or user segmentation information is secure.

your title goes here

For more detailed information, contact support@whatfix.com.


Browser Local Storage

Whatfix uses encrypted user values stored in the browser's local storage, which were identified in the previous sessions. If the encrypted user is also not available, then Whatfix uses cookies.

your title goes here

Data stored in local storage is completely encrypted.


When Whatfix is loaded on a page, we also set a cookie to identify the user. This is a random value generated every time we set it. The value of this cookie is passed with every call sent to analytics along with the user information above.

Certain things to note about cookies:

  • Cookies automatically expire after 3 months

  • The name of the cookie is wfx_unq

  • The value of the cookie is randomly generated

your title goes here
  • Whatfix stores the value of wfx_unq in your browser's local storage.

  • Once wfx_unq expires after 3 months, Whatfix searches for the value in your browser's local storage. If Whatfix finds it, it assigns the cookie value that is present in your browser's local storage to wfx_unq rather than generating a new value.

  • To generate a new value for wfx_unq, you have to clear the value from your browser's local storage and the cookie.

How do we identify users

Whatfix uses a combination of cookies set in the browser and the user API to identify a user. We first try to use user information if it’s present. For events where user information is not available, we rely on the value of the unique cookie set in the event.

Example

Consider that there's a single person using multiple devices, with user information set on most of them.

Let’s assume that a user (John) is logged in on his desktop, a mobile device, and another device. User information is available on the first two devices but not on the third.

Device Is User information present? Unique Cookie Value User information resolved
Desktop Yes (John) rand_val_1 John
Mobile Yes (John) rand_val_2 John
Mobile 2 No rand_val_3 rand_val_3
Unique Users Detected 3 2

Whatfix was able to retrieve and use the username on the first two devices. However, on the third device, we do not know who the user is, and so we fall back to the unique cookie value.

  • The number of users detected by our algorithm is 2.

  • In cases where no user information is passed for the same example, the number of unique users detected completely relies on cookies and is therefore recorded as 3.

  • If user information is set in all the calls, then the user detected is 1.

Every time Whatfix loads on a browser, it looks up the unique cookie. If absent, a unique ID is generated and saved as a cookie. Subsequent sessions use the same cookie value to identify the user. This user ID is sent in all Analytics events.


Configure custom User Identification Rules

If your application has any other way of capturing user information, such as login status, Whatfix enables you to configure custom User Identification Rules using Advanced Customization.

For more information, see Configure Custom User Identification Rules.


your title goes here

Whatfix has an improved method to identify users accurately. As a result, for end users on the Extension deployment method you may now see a decrease in the user count.
Earlier, a single user with multiple unique cookie IDs was identified as different users, resulting in counting the same user more than once.

The new method identifies a single user as a unique user, even if they are using multiple unique cookie IDs. Thus, the user count is more accurate and may show a decline from prior reports.

your title goes here
  • Whatfix supports End User Authentication, wherein your end users have to authenticate themselves with valid credentials using their organization’s SSO before they can see Whatfix content.
  • Use the same user information stored by the Single Sign-On (SSO) providers as unique user identifiers. This ensures that all end users have a unique identifier across multiple applications to identify them correctly. For more information on enabling User Identification using SSO, contact support@whatfix.com.

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.