Welcome to the
WalkMe Help Center
Please log in to continue
Please log in to continue
Within WalkMe for Salesforce, you can use Salesforce Variables to segment the WalkMe assets you build to ensure that only content relevant to that user type is visible. Variables can also be used to create analytics reports about individual users based on their email or username to show their usage of WalkMe.
A variable is a value that can change depending on conditions or on information passed to the program through the browser. Salesforce provides a number of default variables that can be read and used by WalkMe for segmentation and in Insights. If there are variables you would like to use that are not enabled by default, speak to your Salesforce admin about adding them.
You can use variables to create segments that target specific users and present them with only relevant items. For example, if some ShoutOuts only apply to users in certain job roles, you can segment it by the role variable. For processes that are only relevant for users in North America, use the region variable.
Variables can also be used in user tracking to identify users. Use a variable that tracks email, ID, or even name to get a more accurate user count in your reports and put individual user actions in context. For example, pull reports on individuals who have completed their Onboarding tasks or not.
To identify a Salesforce Variable, WalkMe will look into the HTML on the end user's Salesforce instance and pull the value. Salesforce Variables are checked against the value defined in the Segmentation Rule or user tracking settings. Salesforce Variables vary by user. Each variable value is represented as an 18 digit code and will change based on the person currently using the environment.
Salesforce has a number of default variables available within their system. To use the default variables within Salesforce, the variable name must start with “walkme_sf_vars.” Add the variable name after the period to use the variable within the Rule Engine.
For example: walkme_sf_vars.profileID
These WalkMe can read and segment by using the 18 digit version of the variable value. In some cases, Salesforce will supply a 15 digit version. You can learn how to convert variable values from 15 digits to 18 digits in our Salesforce course, linked at the bottom of this article.
Configure Unique User Settings to identify how you would like to identify users in WalkMe Analytics. By tracking an individual user you can associate engagement data with unique IDs. Tracking unique users, you will get a more accurate user count in your reports and put individual user actions in context. Unique User Settings are found in WalkMe Settings in the General tab. There are a few ways to track individual users. Only one option can be chosen at a time.
Use User Name (recommended)

By Email or other variable
Use variables in the rules in the Segmentation Center to target specific audiences. For example, if you have different Smart Walk-Thrus for admins and managers, create segments for each role type and define the segment by variable walkme_sf_vars.roleId is manager or admin. There are seven default sfvars available in WalkMe. Use the default seven in your segmentation rules without having to add them to your general settings.
Learn more about Segmentation.
Once sfVars is enabled for you by your Account Manager, the following variables can be used for segmentation:

Learn more about Segmentation.
Salesforce exposes only the seven by default and will not look for any extra ones (for example, company or geography) in the HTML unless told and added within the General Settings. If you would like to track a variable that is not one of the default, you will need to have your admin add it to your site and add the variable name it in the Salesforce Variables field located in the General Tab in Settings.
To use variables in a rule, use the prefix “walkme_sf_vars.”
In the example below, a customer added an email variable to their environment and is using it for Unique User Tracking.

The variables in Salesforce's setup page are referred to as Fields, and can be found in their Salesforce site's Setup page by going here:
Setup > Objects and Fields > Object Manager > User > Fields & Relationships
There are two types of these fields:
User Custom Fields
User Standard Fields

To do this, simply add a custom variable called "userPermissionSets".

In large organizations segmentation by Role ID or Profile ID is almost impossible due to the large number of different combinations of them, to have make use of this more usable WalkMe can now use a feature in Salesforce called "Public Groups".
Salesforce Administrators and delegated administrators can create public groups, to segment: Groups are sets of users. Groups can contain individual users, other groups, the users in a particular role.
To do this, simply add a Custom Variable called "userGroups".
This data will then appear on window.walkme_sf_vars.userGroups, as well as window.walkme_SF_Groups for backwards compatibility with the legacy SF Groups plugin.
Example of output:
![]()