Help

Build a segment

A segment is a saved rule, such as “subscribed and ordered in the last 90 days”. People join as soon as they match and leave when they stop matching; you never add them by hand. Campaigns send to segments, and a flow can start when someone enters one.

Membership updates at once when someone does something (an order, an event, a change to their details) and within 15 minutes when time passes, after a CSV import, or after a bounce.

Last updated

Build one

  1. Open Contacts and choose Segments, then press New segment.
  2. Type a Segment name.
  3. Under What you can filter on, pick a kind of condition: About the person, What they did, Emails or Other segments, then the condition itself.
  4. Fill in the condition, for example Did, “Placed an order”, at least 1 time, in the last 90 days.
  5. Watch People in this segment now on the right: it counts who matches as you build and shows A few of them.
  6. Press Save.

A segment with no conditions matches nobody, so a half-built segment can never send a campaign to everyone.

Conditions

KindExamples
About the personEmail status, tag, first or last name, email address, phone, date added, bounced or complained, subscribed to a topic, any custom field from an import or a form.
What they didPlaced an order, spent in total, ordered a product, viewed a product, added to cart, started checkout, viewed a page, or any event your shop sends.
EmailsWas sent, opened or clicked an email, in general or one campaign.
Other segmentsIs in, or is not in, another segment.

For something someone did, choose Did or Did not, how many times (at least, at most, exactly), and when: at any time, in the last N days, since a day, before a day or between two days. Only when a property matches narrows which events count, for example orders over 100, or a product whose title contains “lunch”. Days are calendar days in UTC.

Groups: all, any, and leaving people out

Conditions sit in a group. Set the group to all (every condition must hold) or any (one is enough). Add a group adds another set of conditions; Add a group to leave out removes anyone who matches it. Groups can go four levels deep, with up to 50 conditions in a segment.

How fast membership changes

What changedWhen the segment notices
An order or event arrives, or the contact’s details, tags or consent changeAt once
Time passes (an order is now more than 90 days old)Within 15 minutes
Contacts from a CSV importWithin 15 minutes
An address hard bouncesWithin 15 minutes
You change the segment’s ruleMembers are worked out again; nobody counts as having “entered”

When someone enters or leaves, it is recorded on the contact, so a flow can start from it. Changing a segment’s rule does not start that flow for everyone who now matches.

Questions

Why is a segment’s count different from the campaign count?

The segment counts everyone who matches. A campaign then leaves out anyone who is not subscribed, bounced, complained, is held by the signup alarm or is in an excluded segment. See My count is lower than my list.

Do cancelled or refunded orders count as orders?

No. “Placed an order” and “spent in total” leave out cancelled and refunded orders. Spent in total adds orders in every currency together.

Does browsing on my site count?

Yes, when the visitor is known for certain: they arrived from one of your emails, or your site linked them. Browsing by a visitor who only typed an address into a form is kept but not counted, because anyone can type someone else’s address. See site tracking.

The segment says it timed out or failed.

A very large or complicated rule took too long to work out. It keeps the members it had and is tried again a quarter of an hour later. Rules that filter on a property of a very common event, such as “viewed a page whose address contains…”, are the slowest; narrow them with a time window.

Can a segment include itself?

No, not directly or through other segments; saving one that would is refused and shows the loop. Segments can go three levels deep inside each other.

All help topics · API reference