# Using Cohorts

The Cohorts you create can be used for targeting across various Hackle features.

### Setting Up Targeting

This section covers how to target a Cohort in an **A/B Test**.

The method for setting up Cohort targeting in Feature Flags and Remote Config is the same.

#### Setting Up a Cohort Filter

![](/files/N4ZcVhhfezqvIOyzLynd)

#### Supported Operators

The Cohort filter currently supports two operators: `=` and `≠`.

![](/files/nEiygOZUXmbB5ojJnyhq)

#### Select the Target Cohort from the List

The User Identifier Basis of the experiment and the User Identifier of the Cohort must be the same.

If the experiment's User Identifier Basis is `deviceId`, the Cohort's User Identifier must also be `deviceId`.

![Experiment User Identifier - deviceId](/files/zKN8zKEufwbFKH5jGB03)

![Targeting - Cohort list](/files/u1LjDzyVtBLEaXTrpNw2)

Therefore, **only Cohorts with the same User Identifier as the experiment are shown in the targeting list**.

![The active user Cohort has deviceId.](/files/gM3hDhWo2wjOKhTYd2AC)

***

## Analyzing with Cohorts

You can perform Cohort-level data analysis by setting a Cohort in the user group filter of Data Analytics.

![User Group > Add Filter > Select Cohort](/files/CuTcA0YXMGxtQLEmoIw7)

![Data analysis at the Cohort level](/files/lWgMHvLLhGqorBCS4fFL)

***

## Running CRM Marketing for a Cohort

You can send In-App Messages and Push Messages targeting a specific Cohort.

You can find various Cohort examples applicable to different situations in the Push Message recommended template guide.

![Send a Push Message to a specific Cohort](/files/oT3TV34rMwvd22f5BIL4)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hackle.io/en/cohort/usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
