Customer Segment Builder
Pick filters in plain English and copy a segment query Shopify accepts. Or paste an old query and convert it to the October 2026 syntax.
Start from a template
18 common audiencesShow 10 more templates
Filters
Convert an old query
October 2026 syntax changeRewrites = true / = false to MATCHES / NOT MATCHES, gives each parameter its own operator, swaps 90_days_ago for -90d, and fixes value case, quotes and number format.
Changes
Checks
Shopify changed segment syntax on October 1, 2026
Functions now use MATCHES instead of = true: shopify_email.opened() = true is now shopify_email.opened MATCHES (), and products_purchased(quantity: 5) = true is now products_purchased MATCHES (quantity = 5). Named dates like 90_days_ago are deprecated; use -90d. Read the guide.
Guides
View allQuestions
Where do I paste the query?
In your Shopify admin, go to Customers, open Segments, create a segment, and paste the query into the editor. Shopify shows how many customers match before you save.
What changed in October 2026?
Shopify now writes function filters (products purchased, orders placed, Shopify Email, storefront views, store credit, distance) with MATCHES or NOT MATCHES instead of = true or = false, gives each parameter its own operator, and deprecated named dates like 90_days_ago in favor of -90d.
Is anything sent to Shopify or to you?
No. The query is written in your browser. Nothing is sent anywhere until you paste it into Shopify yourself.
Can it guarantee Shopify accepts the query?
It follows Shopify’s published filter reference, but some things depend on your store, such as whether the birth date metafield exists or you have more than 100 sales for predicted spend tier. Shopify’s editor shows an error before you can save a query it doesn’t accept.
Filters, operators and values follow Shopify's segment filter reference and segment query language reference. Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.