---
title: Using a segment
description: Learn how to use segments to target users in feature gates and dynamic configs
product: general
token_estimate: 188
---
# Using a segment

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

You can use a segment to target a set of users in a feature gate or a dynamic config:

- Select the feature gate or dynamic config where you want to target users
- Click the **Add New Rule** button
- In the criteria, select the **User in Segment** option
- Select the segment that you want to use and enter a name

  ![Segment targeting configuration interface](https://docs.statsig.com/images/segments/implement/129115596-fbaeb686-8adb-4ebe-9dcb-6dfecf0cf043.png)
- Click the **Add Rule** button
- Click the **Save Changes** button at the top right of the **Rules** section

