Source: https://nishanth-fern-test.docs-staging.pageloop.ai/desktop/add-cohorts-as-visibility-rules

# Add Cohorts as Visibility Rules

Note:

- Adding Cohorts as Visibility Rules is a Beta feature. For more information, contact [support@whatfix.com](mailto:support@whatfix.com?Subject=Enable%20Cohorts%20in%20Visibility%20Rules\&Body=Hi%20team%2C%0A%0AI%20want%20to%20add%20cohorts%20as%20Visibility%20Rules%20to%20target%20content.%20Kindly%20enable%20the%20feature.).
- Adding Cohorts as Visibility Rules to target Whatfix content is supported in [Whatfix cloud](/web/hosting-whatfix-content-on-cloud-1) and [Self Hosting or Export](/web/self-hosting-whatfix-content) deployment modes. However, it is not supported in [On-premise](/web/host-whatfix-content-on-premise) deployment mode.

### Introduction

Create a Cohort to group users based on their behavior on the application. Using these Cohorts, Whatfix enables you to target Whatfix content and guide them along the right path. This process involves including a Cohort as a Visibility Rule to display or hide a Whatfix widget.

### Use cases

- Group end users who spend more than 2 hours within the application and log in for 5 consecutive days as power users, displaying a Pop-up of Keyboard shortcuts.
- Display an Onboarding Task list to new members of the Sales team.
- Display a Smart tip to all users except test users.

---

Use the following steps to add a Cohort as a Visibility Rule:

Info:

- Before adding a Cohort in Visibility Rules, ensure that you create the Cohort with the relevant conditions. For more information on creating a Cohort, see [Create a Cohort](/analytics/create-a-cohort).
- Create a Cohort of users completing or dropping off from a Funnel and target content for these Cohorts. For more information, see [Create Cohorts from Funnel Insights](/analytics/add-cohorts-from-funnel-insights).
- Create a Cohort which contains a User list to target Whatfix content to a specific group of users. For more information, see [Create a Static Cohort (User list)](/analytics/create-a-user-list).

1. In the **Set Visibility Rules** section of the widget, select the **Users** option. ![users\_visibility\_rules](/images/0c/users_visibility_rules-0c42abe8.png)

Note:

If you're using the New Visibility Rules to set up a Cohort as a Visibility Rule, see [Set Who can see your Widget](/web/set-who-can-see-your-widget). ![cohorts\_as\_visibility\_rule\_advanced\_vr.png](/images/ee/cohorts_as_visibility_rule_advanced_vr-ee0ba766.png)

1. Select the condition using the following information:

| Condition            | Description                           |
| -------------------- | ------------------------------------- |
| **Belong to**        | Users who are part of the Cohort.     |
| **Do not belong to** | Users who are not part of the Cohort. |

![visibility\_rules\_cohorts\_conditions](/images/d2/visibility_rules_cohorts_conditions-d2f9ee6d.png)

For example, show a Pop-up to all users except new users. Set the condition to show the widget to **Users who do not belong to the New User Cohort**.
2\. Select the required Cohort. ![2023-02-14\_17-40-58](/images/80/2023-02-14_17-40-58-801ab506.png)

Note:

[Cohorts created from Funnel Insights](/analytics/add-cohorts-from-funnel-insights) and [Cohorts created with User lists](/analytics/create-a-user-list) can be added as Visibility Rules to target Whatfix content.

1. Configure additional Visibility Rules, if necessary, and save the widget.
2. Preview the widget using the Preview mode and push the widget to Production.

For more information, see [Visibility and Display Rule Conditions](/desktop/visibility-and-display-rule-conditions).

Note:

If you’ve added a Cohort as a Visibility Rule, the Cohort is refreshed in real time. When a user is added to or removed from a Cohort, Whatfix immediately evaluates the visibility of widgets for the user.
