Creating Role or Page based Tags
- 2 minutes to read
Whatfix allows you to show different content to different users with the help of tags.
There are primarily three categories of tags:
- Page tags
- Role tags
- Other tags
Page tags are used to segment content based on specific differences on the page. For example, you can create a page tag based on some part of the URL that is being displayed. This page tag, when associated with Whatfix content, can then ensure that specific content is displayed on Self Help when the condition (in this case a part of the defined URL) is fulfilled.
Creating a page tag is very similar to creating a role tag described below.
Role tags are used to segment content based on the user role that is defined during setting up of the system. For example, if your application has 3 roles, then you can associate a tag with each role, thus you will have to create 3 role tags.
This category is for all tags that do not fall in the above two types. Other tags are user created tags and don't include Default Tags in your Whatfix account.
- If you are introducing role tags to display certain content, all your content will need to have at least one role tag. Any content that you create that is not tagged is not displayed to your user.
The way to do this is to create and use a generic role tag across all your content and then add the role-specific tags to restricted content. The generic role tag can be made visible
- Information about the role has to be provided by your application so that Whatfix can read this information. Contact your CSM to know how this information can be parsed across.
To create a role tag:
- Navigate to the Whatfix Dashboard.
- In the left panel, click Tags.
- On the top right, click Create Tag.
- Enter a name and description for the tag.
- Click the Category drop-down menu and select Role Tag.
- Under Visibility Rules, select the desired criteria.
- We use the most commonly used criteria for a role tag - a window variable as an example. To understand other criteria, see Identifying conditions for showing tooltips.
- Also, see Segmentation.
- If the window variable is used, both the variable name and the possible values will need to be known before proceeding. If there are multiple values for a variable, multiple roles will need to be created.
- Select Window Variable.
- Enter the variable name, select the operator, and then enter the variable value.
- Click Create.