---
title: "Apply a segment to a web experiment"
slug: "apply-a-segment-to-a-web-experiment"
abstract: "How to apply a segment to a web experiment."
---
# Apply a segment to a web experiment

You can apply a segment to a web experiment to ensure that only members of the selected segment will see the experiment. Your organization must have a Sitecore CDP license to use this feature.

A common scenario for applying a segment to a web experiment is to control which [decision model](https://doc.sitecore.com/personalize/en/users/sitecore-personalize/introduction-to-decisioning-in-sitecore-personalize/managing-decision-models-in-sitecore-personalize.html "Managing decision models in Sitecore Personalize") is invoked on a certain page according to segment membership.

For example, there might be many different types of guests visiting your homepage. These guests can be categorized into various segments, such as frequent purchasers, high spenders, and loyalty members. If you have many decision models, each catering for a specific segment, you might have to run any of those decision models on your homepage.

To meet this requirement, you can create a unique web experiment for each decision model, and show it to the correct audience by designating the appropriate segment. When a guest visits your organization's homepage, only the web experiment targeted for their segment will run. This also results in only one decision model being called, ensuring optimal performance for your website.

To apply a segment:

1. On the experiment builder, click the **Filter** tile.

    Additional fields display.

2. Click **Add filter**.
3. In the **Filter** pane, click **Add segment**.
4. In the **Select a segment** pane, click the segment you want to apply.

    The experiment will only run for guests who are members of the selected segment.

5. Click ![close_details_widget.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/close_details_widget.png) to close the pane.