---
title: "Attribute-based Targeting"
description: "Attribute-based 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."
icon: "bullseye"
---

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

### When to use Attribute-based Targeting?

Attribute-based 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 Attribute-based Targeting work?

<Steps>
  <Step title="Create a segment">
    Go to **Contacts → Segments** and click `Create segment`.

    ![The Segments list](/images/surveys/website-app-surveys/targeting/segments-list.webp "The Segments list")
  </Step>

  <Step title="Configure it">
    Open the segment and switch to its **Settings** tab. Everything under **Targeting** decides who is in it.

    ![A segment's Settings tab](/images/surveys/website-app-surveys/targeting/segment-editor.webp "A segment's Settings tab")
  </Step>

  <Step title="Create a Website & App survey">
    A segment can only target a survey that runs inside your product. In the survey editor, open **Settings → Survey Type**.

    ![The Survey Type section](/images/surveys/website-app-surveys/targeting/survey-type.webp "The Survey Type section")
  </Step>

  <Step title="Choose the segment">
    Still in **Settings**, open **Target Audience** and pick the segment.

    ![The Target Audience section](/images/surveys/website-app-surveys/targeting/target-audience.webp "The Target Audience section")
  </Step>

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

### Segment Configuration

`Add filter` opens one list holding every kind of filter a segment can use.

![The Add filter dialog](/images/surveys/website-app-surveys/targeting/add-filter.webp "The Add filter dialog")

There are three means to move Contacts in or out of Segments: **Attributes**, other **Segments**, and [**Survey Interactions**](/surveys/website-app-surveys/survey-display-logic#level-4-—-interaction-based-segments):

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

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.

3. **Survey Interactions**: Include or exclude Contacts based on whether they have seen, started, or completed a survey within a recent time window. See [Survey Display Logic](/surveys/website-app-surveys/survey-display-logic#level-4-—-interaction-based-segments) for details and use cases like per-survey cooldowns and follow-up funnels.

<Note>
  To target by device, use the survey's [show conditions](/surveys/website-app-surveys/show-conditions): they tell desktop, tablet and phone apart and work for anonymous visitors too. Segments that already have a Devices filter keep working, and you can still edit it, but new Devices filters can no longer be added.
</Note>

Any of those three can be combined. Conditions are joined with `AND` or `OR`, and a **filter group** wraps several of them so the two can be mixed without ambiguity — the same reason brackets exist in arithmetic.