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.

Open the Segment Builder

What changed

Shopify’s developer changelog lists three changes, marked as a breaking change for GraphQL Admin API version 2026-10:

  • Functions use MATCHES and NOT MATCHES instead of = true and = false.
  • Each parameter has its own operator: quantity: 5 becomes quantity = 5, which also allows quantity > 5 and quantity != 5.
  • The named dates 12_months_ago, 90_days_ago, 30_days_ago and 7_days_ago are 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

Old
shopify_email.opened() = true
New
shopify_email.opened MATCHES ()
Old
products_purchased(quantity: 5) = false
New
products_purchased NOT MATCHES (quantity = 5)
Old
last_order_date < 90_days_ago
New
last_order_date < -90d

Which 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

  1. Copy the query from your segment, an app or an old forum answer.
  2. Paste it into the converter on the Segment Query Builder page.
  3. 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.
  4. 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.

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.