- 07 Mar 2025
- 2 Minutes To Read
-
Print
-
DarkLight
-
PDF
Configure Custom User Identification Rules
- Updated On 07 Mar 2025
- 2 Minutes To Read
-
Print
-
DarkLight
-
PDF
Advanced customization enables you to add custom rules for user identification directly using the Whatfix user interface (UI). Define specific criteria and conditions to segment user experiences based on roles, preferences, or other critical parameters, which creates a more user-centric environment. For example, create a user identification rule to identify users based on their login status.
Use the following steps to configure a custom user identification rule:
-
On the Whatfix Guidance dashboard, click Settings.
-
Click Advanced customisation.
-
Click User identification.
-
Click + Create Rule.
-
Enter a Rule Title.
-
Choose Custom rule.
-
Select the Enable user name capture on Desktop Apps checkbox to use the end user’s desktop account name for user identification. You cannot create a custom rule if you have selected this option.
-
Select the Enable detection via SSO checkbox to use the end user’s SSO authenticated IDs for user identification rules.
- In the Where section, select where you want the rule to take effect.
Based on the desired location for the rule, set up any visibility conditions. For example, to enable the rule across all pages of the application, select All Pages as the type.
Configure the rule's location based on any of the following conditions:
- All Pages
- Page Tag
- URL
- URL Hostname
- URL Path
- URL Parameter
- URL Hash
-
In the What section, configure how Whatfix identifies users. Use the Where do you want to fetch the user from? dropdown to select the source from which to pull the value that defines the user. For example, if each user has a unique identifier based on the cookie value, select From Cookie as fetcher. For more information, see Fetch and process information for identification rules.
-
In the How do you want to process it? dropdown, parse the fetched value using JSON or String Operations. For more information, see Fetch and process information for identification rules.
-
Add multiple processors to parse the fetched value. Click Add Processor to include another parsing method.
-
Click Add Sequence to include more identifiers. Fetch a different value and parse it for another unique identification rule.
- Click Save.
- Push the changes to Production.
- If you've used Advanced Customization (AC) code to set up User identification, Whatfix recommends removing the AC code after setting up User identification rules using the above-mentioned steps (Whatfix UI).
- If User identification is configured using both AC code and Whatfix UI, the AC code takes precedence over the UI configuration.