> ## Documentation Index
> Fetch the complete documentation index at: https://formbricks.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Advanced Targeting

> Advanced Targeting allows you to show surveys to a specific segment of your users. You can target surveys based on user attributes, device type, and more. This helps you get more relevant insights while keeping survey fatigue at a minimum. After the initial setup, you can target any segment without touching code.

<Note>
  Advanced Targeting is part of the [Enterprise Edition](/self-hosting/advanced/license).
</Note>

### When to use Advanced Targeting?

Advanced Targeting helps you achieve a number of goals:

1. **Relevance**: Keep survey content relevant to respondents.

2. **Cohort-analysis**: Survey specific user cohorts only.

3. **Statistical Relevance:** When surveying a smaller subset of users, statistical relevance is reached with a lot less responses.

## How does Advanced Targeting work?

<Steps>
  <Step title="Create Segment">
    To get started, go to the Contacts tab and create a new Segment:

    <img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/contacts.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=82efc2ab8d864e2afa7deb9058c45d4d" alt="Create a new segment" width="2904" height="1188" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/contacts.webp" />
  </Step>

  <Step title="Configure Segment based on attributes">
    In the Segment editor, you can configure your Segment with a combination of Attributes, Segments and Devices. If a user matches either or all of the criteria, they become part of the Segment. See [Segment Configuration](/xm-and-surveys/surveys/website-app-surveys/advanced-targeting#segment-configuration) below.
  </Step>

  <Step title="Create a survey of type Website & App">
    Create a new survey and go to Settings to change it to Website & App survey:

    <img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/survey-type.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=835da071e04a6834cdc77c584d32424d" alt="Create a new segment of type in-app" width="1400" height="600" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/survey-type.webp" />
  </Step>

  <Step title="Choose Segment in Targeting options">
    <img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/target-audience.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=d35bc6f3c27fa747748f23a9280f8bfd" alt="Choose Segment in Targeting options" width="1398" height="850" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/target-audience.webp" />
  </Step>

  <Step title="Publish your survey" icon="party-horn" iconType="solid" />
</Steps>

### Segment Configuration

There are three means to move Contacts in or out of Segments: **Attributes**, other **Segments** and **Devices**:

1. **Attributes**: If the value of a specific attribute matches, the user becomes part of the Segment.

<img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/attribute-filter.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=ffef551f450f33be12e18d6228dcd601" alt="Attribute filter" width="1602" height="686" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/attribute-filter.webp" />

2. **Segments**: You can nest Segments meaning that if a user is or is not part of another Segment, they can be included or excluded

   <img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/segments-filter.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=bf815e4ffb2c795c5915834f5f3eba62" alt="Segments filter" width="1282" height="142" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/segments-filter.webp" />

3. **Devices**: If a user uses a Phone or Desktop, you can include or exclude them

   <img src="https://mintcdn.com/formbricks/DApr5ZMISC_jbIxa/images/xm-and-surveys/surveys/website-app-surveys/targeting/device-filter.webp?fit=max&auto=format&n=DApr5ZMISC_jbIxa&q=85&s=164483f324420d43819e81b95819b697" alt="Devices filter" width="1262" height="130" data-path="images/xm-and-surveys/surveys/website-app-surveys/targeting/device-filter.webp" />

4. **Filter Groups:** You can group any of the above conditions in group and connect them logically with `AND` or `OR`. This allows for maximum granularity.
