“Customers who’ve ordered at least twice but not in the last 90 days” is a list most stores would like to email. In Shopify that’s a customer segment, and it updates itself as customers order.
Creating a segment
Go to Customers › Segments and click “Create segment”. The easiest start is the Templates icon, which has ready-made segments for common groups. Pick one, adjust the numbers, and save.
You can also write the filter yourself. The editor uses ShopifyQL, a simple query language: for example, a condition on number of orders, amount spent, last order date, location or email subscription status. Click “Run” to see who matches, then “Save segment”. If you’d rather describe it in words, Sidekick can write the filter for you.
Segments worth starting with
- Customers with one order, placed 30 to 60 days ago: a good group for a second-order offer
- Customers with three or more orders: worth thanking or giving early access
- Customers who haven’t ordered in 180 days: a win-back email
- Customers in one city or region: for local delivery or pickup news
Using segments
In discounts, set eligibility to “Customer segments” and choose one. The discount then only works for customers in that segment, which is safer than a public code that ends up on coupon sites. See Buy X get Y discounts for an example.
For email, send campaigns to a segment from Shopify Messaging; see email marketing with Shopify Messaging.
Things to know
Segments are recalculated as data changes, so large customer lists can take a moment. If a new segment shows nobody, wait and run it again before assuming the filter is wrong. The segment editor is separate from the search bar on the Customers page.
Sources
- Customer segmentation, Shopify Help Center (checked Dec 2026)
- Creating customer segments, Shopify Help Center (checked Dec 2026)