Support
Welcome to WalkMe support

Please login in order to continue:

Work flows better with WalkMe
Work flows better with WalkMe.

Segment by Operating System

Last Updated June 4, 2020

Issue

I want to segment by content by operating system.

Solution

You can use the “navigator.userAgent” variable to segment between different versions of Windows and Mac OS.

To find the value of the operating system you are trying to segment, you will need access to that machine and use a web browser to open the developer console. You can go to any web page (such as Google or Wikipedia) to test the variable.

In the developer console, enter “navigator.userAgent”.

You should get a result that looks similar to:

In the Rule Engine, you would set up your rule as follows:

User Data -> Variable -> navigator.userAgent -> Like -> *Windows*10*

It's very important to remember to add the asterisks before, between, and after the operating system value.

For example, if on a Mac you get the following value: 5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

You would want to format your rule as:

User Data -> variable -> navigator.userAgent -> Like -> *Mac*OS*X*10*

If you want to keep it simple, such as segmenting strictly by Windows or Mac, your rules can be set-up as follows:

Windows: User Data -> Variable -> navigator.userAgent -> Like -> *Windows*

Mac: User Data -> Variable -> navigator.userAgent -> Like -> *Mac*

Was this article helpful?

Thanks for your feedback!

Be part of something bigger.

Engage with peers, ask questions, share ideas

Ask the Community
×