Segment by Operating System

Last Updated May 20, 2026

Brief Overview

You can segment WalkMe content by operating system using the navigator.userAgent variable in the rule engine. This lets you show different content to users on Windows vs. macOS, or target a specific OS version.

To find the exact value you need to segment on, you'll need access to a machine running that operating system.

Finding the User Agent Value

  1. Open any web page on the machine you want to segment
  2. Open the browser developer console
  3. Type the following and press Enter:
    • navigator.userAgent
  4. Copy the value returned — you'll use part of it to build your rule

Setting Up the Rule

In the condition builder, set up the rule as follows:

User Data → Variable → navigator.userAgent → Like → *Windows*10*

Note

You must add asterisks before, between, and after the OS value.

Example

If you're on a Mac and the console returns:

5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36

Your rule would be:

User Data → Variable → navigator.userAgent → Like → *Mac*OS*X*10*

Simple Windows or macOS Rules

If you just need to segment broadly by OS without targeting a specific version:

Windows: User Data → Variable → navigator.userAgent → Like → *Windows*

macOS: 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
×