Segment Builder guides
How Shopify segment queries work, with examples you can copy.
Shopify segments: = true is now MATCHES
Shopify changed customer segment function syntax on Oct 1, 2026. How to rewrite products_purchased(...) = true, shopify_email.opened() = true and 90_days_ago.
Segment customers who bought a product
Copy-paste Shopify segment queries for customers who bought a product, a product tag, in a date range, or who bought one product but not another.
Shopify customer segment query examples
Copy-paste Shopify segment queries: VIPs, first-time buyers, lapsed customers, lapsed subscribers, abandoned checkouts, birthdays, win-back, and more. 2026-10 syntax.
Why your Shopify segment query isn’t working
Fix Shopify customer segment errors: case-sensitive values, single quotes, = true functions, more than 10 filters, number format, and AND vs OR order.
Dates in Shopify customer segments
How to write dates in Shopify segment queries: date offsets like -30d and -6m, today and yesterday, exact dates, BETWEEN, and the deprecated 30_days_ago names.
Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.