Getting started with segments

Estimated 9 minute read
|
Updated Dec 12, 2024, 9:17 AM EST
You will learn

You will learn

Learn how to create and use segments in Klaviyo, which are a powerful tool for understanding your audience and sending targeted messages. 

Ready to build more custom segments? Head to Understanding segment conditions to learn how. 

About segments

About segments

Unlike traditional subscriber lists, segments are groupings of contacts defined by a set of conditions. Lists are static, meaning they grow as people subscribe or are manually added.

Segments, on the other hand, are dynamic, meaning they grow as people meet the segments' conditions and shrink as people no longer meet them. Moreover, segments update in close to real time.

Learn more about how segments update.

Highly segmented campaigns return more than 3X the revenue per recipient as unsegmented campaigns. Some examples of how you can use segments to identify different audiences include:

  • Customers who purchase a new product, so you can watch the segment grow after launch
  • Inactive subscribers who have been on your list for at least 6 months but have never opened or clicked an email
  • VIP customers, which includes everyone who has purchased at least X number of times before or have spent over Y amount of money
  • Customers with a high predicted customer lifetime value (CLV) who are likely going to be future VIPs

When you build a segment with a certain set of conditions, it will pull from all of the contacts in your account. This means that segments don't necessarily have opt-in criteria in order for people to be added, which is important to keep in mind when you're planning on emailing a particular segment.

How to create a segment

How to create a segment

  1. Navigate to the Lists & Segments tab in your account.
  2. Click Create List / Segment in the upper right corner.
  3. Select Segment.
  4. Use the segment builder to add conditions and specify who should be included in your segment.
  5. Once you are satisfied with the definition you create, click Create Segment.

We will dive deeper into segment conditions in the next section.

Depending on the size of your segment, it may take a while to populate. If you're planning on sending a campaign to a segment, please allow time for your segment to populate before scheduling the email.

How to generate a segment definition using text 

How to generate a segment definition using text 

If you know what kind of segment you’d like to create, but aren’t sure how to build it, try the Define with AI tool. You can input a phrase or a few sentences describing the segment you’d like to create, and we’ll use AI to generate a starting point for you. 

  1. Navigate to Audience > Lists & segments.
  2. Click Create List / Segment
  3. Select Segment
  4. Click Define with AI.
    This option only appears for new segments. If you edit an existing segment, you will not see the Define with AI button. 
  5. Add a segment name. 
  6. Type out a sentence or phrase describing the segment you’d like to create. 
  7. If you’re happy with the sample segment, click Create segment. Otherwise, revise your input and try again. Alternatively, click Open in builder to open the segment in the segment builder and add or modify conditions. 

Generating a segment with the Define with AI tool will overwrite any existing definition in the segment builder. AI-defined segments are automatically tagged klaviyo-ai. 

Learn more about how to use the Define with AI tool.

Segment snapshots

Segment snapshots

Segments dynamically grow and shrink as profiles meet the required criteria. However, there may be occasions where you'd like to capture all the profiles currently in a segment. You can use a segment snapshot to create a new list with all the profiles currently in your desired segment. 

To take a snapshot of your desired segment, select Snapshot segment Under the Manage segment menu. 

Snapshot segment option in manage segment menu

This will create a separate list that contains all the profiles in the segment at the moment of the snapshot.

The original segment will continue to grow dynamically, but the list created from the snapshot will be static. 

Segment conditions

Segment conditions

Every segment consists of one or more conditions. You can select conditions based on who you'd like in the segment. For example, to create a segment of people who have taken a certain action, you'd use the condition What someone has done (or not done), then select the action (e.g., Placed order) 

Learn more about the segment conditions available in your account

Filtering a segment condition

Filtering a segment condition

When building a new segment around what someone has done (or not done), you have the opportunity to filter this action to refine your segment. To use a filter to add specificity to a segment:

  1. Choose an action (e.g., What someone has done (or not done) > [EVENT]).
  2. Select the filter icon next to your condition.
    Filter button in segments
  3. Choose a property from the dropdown menu that appears.
    • Only top-level properties are available for segmentation, so nested data (i.e., second- and third-level data) will not appear in the dropdown menu.
  4. Next to equals or contains, choose the specific value you'd like to filter on.

Values in segments are case sensitive. For example, a segment of profiles with @Gmail.com email addresses would have different results than a segment of profiles with an @gmail.com email address.

Note that a value will only pre-populate if it has synced to Klaviyo along with a tracked event (e.g., Klaviyo will only pre-populate values for products that have already been purchased). If you want to build a segment around a property value that does not yet exist in Klaviyo — for example, a new product that nobody has purchased yet — copy and paste the value into the empty value box and click Use "your_value". If the property value you paste is identical to the value that will eventually sync to Klaviyo, the segment will work as expected

While Klaviyo may sync many details about a given metric, not all synced properties are available for segmentation. For data management purposes, only the primary details of an event are synced as "top-level" properties, and only these top-level properties are segmentable.

If you view the raw data Klaviyo syncs for an event, you will see key data points for the event. For a Placed Order event, for example, you may see the following top-level properties:

  • Value
  • Collections / Categories
  • Item Count
  • Items
  • Source Name

You will see an array labeled Extra or Details. While the data in this array is available to insert within an email template, properties nested within this array will not be segmentable.

Using AND vs. OR to join conditions

Using AND vs. OR to join conditions

The AND/OR selector can be used to combine multiple conditions in a segment. To create another condition, select the Add condition button. 

By default, the operator is set to OR but this can be toggled to AND at any time.

The AND connector between conditions will make a segment more exclusive and more strict. Each condition is checked separately and individually, and every condition must be true in order for someone to be included. Someone must meet all of the segment's conditions in order to be added.

AND vs OR toggle in segment builder

In the following example, only those who have placed an order AND subscribed to email marketing will be included. If someone is subscribed but hasn't placed an order, they will not be included.

Example of AND being used in segment

Meanwhile, the OR connector between a sequence of segment conditions will make the segment more inclusive and less strict. Each condition in the sequence is checked individually, meaning someone only has to meet one of the conditions in order to be added.

In the following example, anyone who is subscribed OR who has placed an order at least once will be included. So, this segment will capture everyone who is subscribed to email as well as anyone who has ever placed an order, even if there is no overlap between them. Someone could place an order and not be subscribed, and vice versa, and still be included in the segment.

Example of OR being used in a segment

Using AND vs. OR with negative conditions

Using AND vs. OR with negative conditions

When using OR connectors, it's especially important to keep an eye on segments with negative conditions, e.g., someone has done X zero times over all time. Let's say, for example, that we'd like to create a segment of people who don't live in the US or Canada.

If we use an OR connector, contacts only have to meet one of the conditions in order to be added, not both. Someone who is in Canada, or Mexico, or Italy, and so on, is not in the US. So, people from Canada will fulfill this first condition, and therefore be added to the segment even though they don’t meet the second condition. Likewise, for the second condition, someone in the US is not in Canada, since no one can be in two places at once. So, people from the US, Canada, and every other country in the world will also be added to this segment.

In this case, we would need to use an AND connector in order to build a segment that excludes people from the US and Canada. This is often true with any segment containing negative conditions, so be sure to double check your ANDs and ORs.

If you’re not sure which connector to use when building a segment, take a look at the number of people who are added to the segment and assess if this number seems correct — if you use OR when you should instead use AND, this number will likely be much larger than you expect. Additionally, you can spot-check the members of the segment and make sure they meet the conditions you’re looking for. If they don’t, there may be an error in the way the segment was set up.

Clone conditions

Clone conditions

When building segments, you can clone conditions so that you can create multiple conditions more quickly.

To clone a condition, select the clone icon next to it: 

Clone condition option in segment builder

This will duplicate the condition, and once cloned it can be modified to fit your needs.

How to segment your audience

How to segment your audience

When to use a segment vs. a flow

When to use a segment vs. a flow

Segments are great tools to identify cross-sections of your audience to send one-time campaigns to. While it is possible to build a flow that is triggered by being added to a segment, the same filtering and targeting options that you have in the segment builder are also available within the flow builder.

For example, if you would like to trigger an email when someone buys a specific product, you can accomplish this by creating a flow that is triggered by the Placed Order metric, and then add a trigger filter to the flow to only include people who purchased the specific item.

Any segment that leverages the metrics from the What someone has/has not done dropdown can also be built using a metric-triggered flow. Likewise, Properties about someone targeting options are available as flow filters.

Segment ideas

Segment ideas

Not sure which segments to start with?

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type