Create a new segment
To learn how to create a new segment, please read this article
Set up a segment in an experiment
In the finalization panel of the editor, when launching your experiment, select Target a segment in the Targeting step.

In the list of existing segments, select the segment you previously created.

Click on the Details icon to display the targeting conditions of the segment.

Click on the Delete icon to dissociate the segment from the experiment.

To associate a segment, you can also select Target specific visitors in the Targeting step. Select the Segment and connectors you need. Using this option allows you to create quickly targeting conditions without re-creating a segment.
Click on Next: this segment is associated to your experiment.

Set up a segment in a personalization
Once a segment has been created, you just need to associate it to a personalization.
In the Exposed segment part of the personalization creation page, click on Select an existing segment.

In the list of existing segments, select the segment you previously created.

Hover on the list icon to see the definition of the segment.

You can also edit the segment and remove it to select another one.

Click on Validate: this segment is associated with your personalization.