Start from a template

18 common audiences
Show 10 more templates

Filters

Convert an old query

October 2026 syntax change
Examples:

Rewrites = 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.

Guides

View all

Questions

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.