The short version
Create a customer segment in Customers > Segments: click Create segment and start from a template, or open an existing segment to start from it; write ShopifyQL only for what they don't cover, or ask Sidekick to write it, then run it, check the count and save it.
Use segment sends it into a Shopify Messaging email or a discount, and More actions exports it as a customer CSV.
Only subscribed customers receive the email; for a segment-limited discount, Shopify says the segment's customers can be identified when they check out using a valid email address or phone number.
Shopify's plan comparison table marks Create customer segments as included on Basic, Grow, Advanced and Plus.
A customer segment lets you send an email or a discount to a group of customers instead of to everyone: people who haven't ordered yet, subscribers who opened a certain campaign, your likely big spenders. Shopify builds segments in the admin, and the same editor serves every way of starting one.
This guide covers the three starting points Shopify's help names, plus Sidekick, then the step that decides whether the segment does its job: checking who it will actually reach before you attach an email or a discount to it.
What a Shopify Customer Segment Is
Key takeaway
Shopify describes segments as rules rather than lists you maintain by hand: you choose filters, operators and values, and Shopify works out who matches.
Customer segments are dynamic, rule-based customer lists that let you group together customers who have similar characteristics.
Because the rules do the work, new customers who match are added automatically, and customers who stop matching are removed. A segment can be created by Shopify, by you or by an app; the default segments in your admin show Shopify in their Created by column.
One thing a segment is not: the search bar at the top of the Customers page. Shopify keeps the two apart, and a search such as a filter on order count narrows the list on its own without combining with any segment you built. Before a bulk action, check which of the two is filtering what you see.
Building a segment vs sending to it: two different gates
Key takeaway
Shopify presents segmentation as part of the platform: its App Store page for the feature says "Included with Shopify," and in the Compare all features table on its pricing page Create customer segments is marked Included on Basic, Grow, Advanced and Plus. Sending a campaign to a segment is a second gate, with its own rules on Shopify Messaging's requirements page.
Building a segment vs emailing it
| What you want to do | Condition | Where you check it | If you don't meet it |
|---|---|---|---|
| Build and save a segment | Create customer segments is marked Included on Basic, Grow, Advanced and Plus in Shopify's plan comparison table | Customers > Segments in your admin; the Compare all features table on Shopify's pricing page | Starter is not a column of that table, and no page we have found says either way (see the box below) |
| Email the segment through Shopify Messaging | An active, paid plan, the Online Store sales channel installed and a payment provider set up; Shopify's Messaging help names Basic, Grow, Advanced and Plus | Shopify Messaging's requirements page | On a free trial or Pause and Build you can create campaigns and send test messages to yourself, not to subscribers |
Shopify pricing page (Compare all features), Shopify Messaging help and its requirements page, read November 14, 2026.
Each of these is an absence, read on November 14, 2026; the absence is the finding, not proof that Shopify will never publish it.
- A full list of segment templates. None of Shopify's segment creation, management, reference, components, Shopify segments and predicted spend tier pages, its customer segmentation overview, the Flow trigger and discount pages, the App Store feature page or shopify.com/segmentation names the full set of templates or how many there are; changelog posts from November and December 2024 name only the templates they added.
- A plan rule for segmentation itself, including Starter. The segment creation, management and Shopify segments pages, the App Store feature page, the Starter plan help page and shopify.com/segmentation name no plan for building segments; the pricing page's comparison table covers Basic, Grow, Advanced and Plus and has no Starter column.
- A maximum number of segments per store. The creation, management, reference, components, Shopify segments and predicted spend tier pages and shopify.com/segmentation give none; the limits of 5 and 100 apply to one discount, and the Shopify segments page's limit of 500 IDs applies to one set inside some filters.
- Creating a new segment from scratch in the Shopify mobile app. The management page gives mobile steps for editing, renaming, emailing, discounting, exporting and deleting a segment, and an April 2024 Shopify changelog post says merchants can "duplicate and export segment details" from the Shopify app; none of these pages, nor the creation page, describes creating a segment from scratch there.
Which Way to Start: Template, Existing Segment, ShopifyQL or Sidekick
Key takeaway
Shopify's creation page lists three options, and a note on the same page adds Sidekick. The choice matters less than it looks: a template or an existing segment simply fills in the same query you could type yourself, and you can keep editing it before you save. Start from whichever template or default segment is closest, and write ShopifyQL only for what it doesn't cover. Find your row:
Four ways to start a segment
| Start from | Where it starts | Pick it when | Watch for |
|---|---|---|---|
| A template | Customers, then the Templates icon in the editor | A ready-made group is close to the audience you want | You can add more than one template; check the filters it fills in before you save |
| An existing segment | Customers > Segments, then a segment in the list | A default segment (Created by: Shopify) or one of yours is almost right | Duplicate it, or edit it and choose Save as new segment when you save; in our admin on November 14, 2026, Save changes was selected first |
| The ShopifyQL query | Customers > Segments > Create segment, then the query editor | You know which filter, operator and value you need | Only the WHERE clause is yours; FROM and SHOW are locked |
| Sidekick | A plain-language description, given to Sidekick (Shopify's help) or typed into the Describe your segment box of a new segment (our admin) | You can describe the group but not write the query | Check its filters in the editor, then save it like any other segment; in our admin on November 14, 2026, nothing was saved until Save |
Shopify Help Center, Creating customer segments, read November 14, 2026; the Created by, Duplicate, Save changes and Describe your segment details are from our admin on the same date.
How to Create a Segment, Step by Step
Key takeaway
Every route goes through the same five moves: open the editor, choose a starting point, adjust the filters, run the query, then review and save. The sections below take them in that order.
Open the segment editor
Key takeaway
- From your Shopify admin, go to Customers.
- Click Segments to see your segments and Shopify's defaults.
- Click Create segment to start a new segment, or click a segment in the list to start from it.
- Customers
- Segments
The Customers page has its own copy of the editor, which is where the template route starts. These steps are for the desktop admin: Shopify's mobile steps cover changing a segment you already have, and no page we have found describes creating a new segment from scratch in the Shopify app (see the box above).
Start from a template
Key takeaway
- From your Shopify admin, go to Customers.
- Click the Templates icon.
- Optionally narrow the list with the template Categories.
- Click the template card you want. Its filter names, operators and values appear in the editor.
- Optional: add another template, then make any changes in the query editor.
- Click Run query or Run, review the description, then click Save segment (the name in Shopify's help; in our admin on November 14, 2026, a new segment's button read Save), enter a name and click Save.
- Customers
- Segments
- Create segment
No Shopify page we have found lists the full set of templates; changelog posts name only some, such as Customers near retail location in November 2024 (see the box above). In our admin on November 14, 2026, the same Templates icon also sat in the Create segment editor, and its Segment templates window opened on cards such as Engage with your VIP customers and High spend customers with a recent purchase, both filed under Engage high-value customers; your own panel is the place to see the full set.
Copy an existing segment
Key takeaway
The quickest copy is the Duplicate button at the top of the segment's page. In our admin on November 14, 2026, it opened a Duplicate segment dialog that said "Duplicating this segment will create and save a new segment." and suggested the name Copy of followed by the segment's name. Confirming it saved the copy straight away, with the same query, and left the original unchanged, so you can open the copy and edit it from there.
- Customers
- Segments
The other route is to edit the segment you opened and save the result as a new one:
- Go to Customers > Segments and click the segment you want to start from.
- Make your changes in the query editor and click Run query or Run.
- Review the AI-generated description, then click Save segment (in our admin on November 14, 2026, Save in the Unsaved changes bar).
- In the dialog that opens, choose the Save as new segment option, enter a new name and click Save. In our admin, that dialog was titled Save segment and had Save changes selected first, so switch to Save as new segment before you click Save.
- Customers
- Segments
Shopify's help gives the same last steps: Save as new segment, a new name, then Save. Our admin matched them on November 14, 2026, except that Save changes was selected first; on one of Shopify's default segments, Save as new segment created a new segment and left the default unchanged. We didn't test Save changes.
Write or edit the ShopifyQL query
Key takeaway
Shopify's reference guide gives the default query in this form, with the part in brackets being yours to write:
FROM customers
SHOW customer_name, note, subscription_status, location, orders, amount_spent
WHERE [filters, operators, values]
ORDER BY updated_atTo see it in your own editor, click Create segment, then click in the query editor: Shopify's help says that displays the default query.
In our admin on November 14, 2026, a new segment opened with the editor collapsed into a Describe your segment field, and the arrow at its right expanded it and filled in a default query that differs from the guide's form above: FROM customers, a SHOW list, an empty WHERE line, GROUP BY and ORDER BY date_customer_updated DESC. Earlier that day, a new segment opened on an empty line reading Start a query instead. FROM and SHOW can't be edited, so your conditions go after WHERE.
- Customers
- Segments
- Create segment
- Build the WHERE clause. Pick a filter, an operator and a value from the suggestions, or type them. Most values are suggested; some you type yourself.
- Join conditions. Several filters are combined with
ANDandOR. - Apply typed edits. Changes made through the filters appear in WHERE straight away; when you edit the written query, click Run (or press Ctrl + Enter on Windows, Command + Return on a Mac) to update the segment.
- Sort the list. Shopify's help describes a Sort by icon that offers orders such as Last order date and updates the query's ORDER BY line. In our admin on November 14, 2026, neither a new segment's editor nor an edited one showed a Sort by icon.
- Read errors. An invalid query shows a message naming the line; in our admin on November 14, 2026, it read Line 3: Enter a complete expression and sat above the query.
The full list of filters lives in Shopify's segmentation reference guide; a filter your store has no data for may not appear among the editor's suggestions.
Ask Sidekick to write it
Key takeaway
If you can describe the group but not the filters, Shopify's creation page offers a shortcut in a note beside the three standard options:
Each customer segment is a ShopifyQL query, and you can ask Sidekick to write one from a plain-language description.
As of November 14, 2026, the same note says Sidekick shows how many customers match and lets you open the result as a new segment to review and save.
In our admin that day, we typed a description into the Describe your segment field of a new segment rather than the separate Work with Sidekick panel, and the editor filled with the query, a segment description and the match count. That box offered no separate button to open its result, and the new segment stayed unsaved, with Discard and Save in an Unsaved changes bar. Treat a query written for you like one you wrote: read each filter in the editor before saving, because the segment will do exactly what the query says.
- Customers
- Segments
- Create segment
Run, review and save
Key takeaway
- Click Run query or Run. The customers who match are listed below the editor, and their number appears above it.
- Read the AI-generated segment description and change it if it doesn't match the segment you meant to create.
- Click Save segment, enter a name and click Save. On November 14, 2026, our admin labelled the Save segment button Save for a new segment, and it opened a dialog titled Save as new segment with a single Segment name field.
- Customers
- Segments
- Customers
- Segments
- Create segment
Name it for who is in it, not for the campaign you have in mind: the same segment can feed an email, a discount and an export, and the name is what you'll pick it by. If the list comes back empty straight away, don't delete the segment yet; the reasons are in why a result can be missing.
Four Segments Built From Shopify's Own Examples
Key takeaway
Each of these comes from a Shopify help page, with the boundary the page attaches to it. Paste the query into the WHERE line, run it, and adjust from there.
Queries Shopify's help uses as examples
- Query
number_of_orders = 0- Shopify's example of
- A discount for customers who haven't purchased before
- Boundary
- Shopify says these customers can be identified when they check out using a valid email address or phone number
- Query
abandoned_checkout_date IS NULL- Shopify's example of
- The IS NULL operator and value pair
- Boundary
- Matches only profiles with no value in the abandoned checkout date field
- Query
shopify_email.opened MATCHES (activity_id = 123)- Shopify's example of
- A function: a parameter in parentheses after MATCHES, here a marketing activity ID
- Boundary
- 123 stands in for your own email's marketing activity ID; function parameters go in parentheses after MATCHES or NOT MATCHES
- Query
predicted_spend_tier = 'HIGH' AND email_subscription_status = 'SUBSCRIBED'- Shopify's example of
- High-value customers who subscribed to your marketing email; High is one of three predicted tiers, with Medium and Low
- Boundary
- Available only once your store has made more than 100 sales
Shopify Help Center: Managing discounts, Components of a customer segment and Predicted spend tier, read November 14, 2026.
The predicted spend filter has more to it than one value: who qualifies and how the tiers are assigned are covered in our predicted spend tier FAQ.
Shopify's own RFM groups are another starting point: Shopify's customer reports page notes that you can also apply the rfm_group attribute manually as a filter when building segments. Which group to pick and how to apply it is in our RFM segmentation guide.
Why a Filter, Value or Result Is Missing
Key takeaway
Shopify's creation page has a section on why you might not see the values you expected, and most surprises in the editor come down to one of these four:
Symptom, cause and what to do
| What you see | Why | What to do |
|---|---|---|
| A filter you expect isn't suggested, or typing it returns Invalid expression | The values in the WHERE clause come from your store's data, and a filter with no data may not appear | Treat it as a data question first: a missing filter usually means no matching data in your store yet, and Invalid expression on a typed filter can mean the same |
| The result is empty right after you click Run | On a large customer base the segment can take a few moments to finish calculating | Wait a moment and refresh before you decide nobody matches |
| A customer who just subscribed or got a tag isn't in the segment | Very recent changes to subscription status or tags can take a short time to appear in membership | Check again shortly before you send |
| An error message naming a line (our admin on November 14, 2026 showed Line 3: Enter a complete expression) | The query isn't valid; the message names the line, and the error is underlined in red | Hover over the underlined part for tips, fix that line, then run it again |
Shopify Help Center, Creating customer segments, read November 14, 2026; the example error message is from our admin on the same date.
- Customers
- Segments
- Create segment
One more reason a customer you expect is missing: test orders and deleted orders are excluded from segmentation calculations, so a customer who has placed only test orders won't appear in any sales-based segment.
Who Is Really in the Segment Before You Use It
Key takeaway
A segment's count is not the number of emails it will send. Shopify Messaging checks your subscribers and their addresses before it sends, so the segment can be larger than the list that actually receives the campaign:
Only customers who have subscribed to your emails receive your messages.
If you schedule an email to a segment that has 0 subscribers, and none have joined it by the time the email is scheduled to send, Shopify Messaging reverts the email to a draft.
Discounts work at checkout instead. When a discount is limited to a segment, Shopify says the segment's customers can be identified when they check out using a valid email address or phone number.
Two more things change the picture. A customer who matches several segments is included in all of them, so overlapping campaigns can reach the same person twice. And membership is live while the count is not: the number on the Segments list is updated when you open the segment or when an app such as Shopify Messaging uses it, which our FAQ on why a segment's number looks out of date explains.
Where to Use the Segment: Email, Discounts, Export and Flow
Key takeaway
The email, discount and export below start from the segment's own page in Customers > Segments, through its Use segment and More actions buttons; a Flow workflow starts in Shopify Flow.
Send it an email campaign
Key takeaway
- Go to Customers > Segments and click the segment you want to email.
- Click Use segment, then Email segment (Shopify's help calls it Email).
- Create the email campaign in Shopify Messaging.
- Customers
- Segments
Shopify Messaging is the app formerly called Shopify Email, and if it isn't installed, you're prompted to install it the first time you try to send. You can also start from the campaign: in a new campaign you choose a segment as the recipients, or click Create segment and select it once it's saved. Sender setup, testing and scheduling are in our guide to the first Messaging campaign.
Campaign Autopilot is the exception: for its email tactics, Shopify says Autopilot selects the customer segment most likely to respond, and you can't change the target audience.
Give it a discount
Key takeaway
- Go to Customers > Segments and click the segment.
- Click Use segment, then Apply discount (Shopify's help calls it Discount).
- Choose the discount type, then create it. Shopify's help lists four: Amount off products, Amount off orders, Buy X get Y and Free shipping. In our admin on November 14, 2026, the window spelled the second one Amount off order and listed our installed discount apps' types below the four.
- Customers
- Segments
- Use segment
- Apply discount
A segment can also be added to a discount you create in Discounts, among its eligibility options. Shopify sets limits on how many segments one discount can carry:
- Up to 5 customer segments for a single automatic discount.
- Up to 100 customer segments for a single discount code.
- At most 25 active automatic discounts per store, a total that includes app-based discounts.
If what you need is a code only certain customers can use, our FAQ on limiting a discount code to specific customers walks through the eligibility settings.
Export it to a CSV
Key takeaway
Open the segment in Customers > Segments, click More actions, then Export, select the customers matching your filters (the same dialog also offers All customers), choose the CSV format for a spreadsheet program or a plain CSV file, and click Export customers. The file contains only the profiles of the customers in that segment, which is how Shopify suggests keeping a record of who an email campaign included.
- Customers
- Segments
Where the file goes, what columns it carries and who on your team can export are covered in our FAQ on exporting your customer list.
Start a Shopify Flow workflow
Key takeaway
The Customer joined segment trigger starts a workflow when a customer joins the segment you've selected. Its help page lists the actions that can be used in workflows that start with it:
- Add customer tags and Remove customer tags
- Update customer metafield and Remove customer metafield
- Update customer note
Flow templates build on it too: Welcome VIP customers, for example, is described as sending "high value customers a marketing email once they join the VIP customers segment," so it needs a VIP customers segment in your store first. Inside workflows that start elsewhere, the Look up customer in segment action checks whether a customer is a member of a segment you pick.
Shopify's marketing automations page sends custom automations, or ones that include a third-party app, to Flow. How to choose a template, test a workflow and turn it on is in our Shopify Flow workflows guide.
Checklist: Build a Segment You Can Trust
Key takeaway
Steps one to five are the same whichever way you start. Step six is the one that differs by use: an email reaches subscribers only, and for a discount Shopify says the segment's customers can be identified at checkout by a valid email address or phone number. Your ticks stay in this browser, so you can come back to the list while you build.
Create a customer segment and check it before you use itTick each step as you finish it.
Create a customer segment and check it before you use it
Tick each step as you finish it.
Go to Customers > Segments and click Create segment, or open a segment from the list to start from it. To start from a template, click the Templates icon in the editor.
Before you tick this off
- You're in the segment editor, not the search bar at the top of the Customers page
- You know whether you're starting a new segment or copying one
Start from a template, an existing segment, the ShopifyQL query or a request to Sidekick.
Before you tick this off
- A template or default segment was checked before writing a query from scratch
- If you started from an existing segment, you duplicated it or will choose Save as new segment when you save
Build the WHERE clause, joining several filters with AND or OR.
Before you tick this off
- Each filter has an operator and a value
- AND and OR join the conditions the way you intend
- No error message naming a line shows in the editor
Click Run query or Run, then read the number of matching customers above the editor and the list below it.
Before you tick this off
- The count is about the size you expected
- An empty result right after Run was refreshed before you accepted it
Check the AI-generated segment description against what you meant, then save the segment with a clear name.
Before you tick this off
- The description matches the audience you meant to build
- The name says who is in the segment
- The segment now shows in the Segments list
For email, only subscribed customers receive it; for a discount, Shopify says the segment's customers can be identified when they check out using a valid email address or phone number.
Before you tick this off
- For an email, the segment has subscribers before the send time
- For a discount, you checked how the segment's customers can be identified at checkout: a valid email address or phone number
Use segment sends it into an email or a discount; More actions exports it as a customer CSV.
Before you tick this off
- Email segment or Apply discount was picked from the Use segment menu on the segment's own page (Shopify's help calls them Email and Discount)
- A CSV export, with the customers matching your filters selected, was kept if you need a record of who was included
The Bottom Line
Key takeaway
Building the segment is the quick part. The mistakes that cost money happen afterwards, when a count that looked right turns out to include customers an email can't reach.
Frequently Asked Questions
Front-end developer specializing in Shopify since 2017. Experienced in building custom Liquid themes, optimizing storefront performance, and integrating third-party apps. Directs the editorial process behind Ecom Store Pro: sets its topics and the rules every AI-written page must pass before publication.
This page was written by AI. Separate AI agents that did not write it check its figures and claims against official sources and test its links and interactive tools. A human editor sets the site's editorial direction, topics and rules and checks that pages are complete and display correctly, but does not check their facts or edit their text. Details may change — always confirm critical data at shopify.com.
Editorial PolicySome links in this article are affiliate links. If you sign up for a Shopify store through these links, we may earn a commission at no extra cost to you. Read our full advertising policy.
