Customer segments
Shopify segments: = true is now MATCHES
On October 1, 2026 Shopify changed how functions are written in segment queries. Copy-pasted queries from older forum answers use the old form. Here is the new form and how to convert yours.
Build or convert a segment
Pick filters in plain English and copy a query Shopify accepts, or paste an old query to convert it.
Runs in your browser. Nothing is sent anywhere.
What changed
Shopify’s developer changelog lists three changes, marked as a breaking change for GraphQL Admin API version 2026-10:
- Functions use
MATCHESandNOT MATCHESinstead of= trueand= false. - Each parameter has its own operator:
quantity: 5becomesquantity = 5, which also allowsquantity > 5andquantity != 5. - The named dates
12_months_ago,90_days_ago,30_days_agoand7_days_agoare deprecated. Use date offsets:-12m,-90d,-30d,-7d.
Ordinary filters such as email_subscription_status = 'SUBSCRIBED' or amount_spent > 100 did not change.
Before and after
shopify_email.opened() = trueshopify_email.opened MATCHES ()products_purchased(quantity: 5) = falseproducts_purchased NOT MATCHES (quantity = 5)last_order_date < 90_days_agolast_order_date < -90dWhich filters are functions
The change only affects function filters. Shopify’s Help Center lists them as: products_purchased, orders_placed, shopify_email.EVENT (opened, clicked, delivered, bounced, marked_as_spam, unsubscribed), storefront.EVENT (product_viewed, collection_viewed), store_credit_accounts and customer_within_distance.
anniversary is listed too, but Shopify’s reference describes it as a modifier for a date, not a function, so it keeps its comparison: anniversary ('metafields.facts.birth_date') = today.
Convert a query in one step
- Copy the query from your segment, an app or an old forum answer.
- Paste it into the converter on the Segment Query Builder page.
- Review each change it lists. Changes Shopify documents exactly are marked verified; older forms we rewrite by the closest documented equivalent are marked for review.
- Paste the result into Customers > Segments in your Shopify admin and check the customer count before you use it.
Is there a deadline?
Shopify’s changelog and reference don’t give a date when the old form stops working. The reference already calls it deprecated, so convert saved queries and app integrations now rather than waiting.
Related guides
- Why your Shopify segment query isn’t working
- Segment customers who bought a product
- Dates in Shopify customer segments
- All Segment Builder guides
Sources: Shopify developer changelog: Updated function syntax on the segment query language (Oct 1, 2026); shopify.dev: Segment query language reference; Shopify Help Center: Components of a customer segment. Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.