LiftSignals is live. Every plan starts with a 30-day free trial — no credit card required. Start free →
Segmentation & RFM

Shopify customer segmentation: how to build segments that don't go stale

Shopify will happily call someone a VIP for spending $3,000 in 2022 and nothing since. Here's how to build segments that notice.

By LiftSignals editorial team · Published · 11 min read

Small clay figures sorted into four groups on a pale board, one group orange

Key takeaways

  • Shopify customer segments live under Customers > Segments and update automatically as customers meet or stop meeting the rules.
  • amount_spent and number_of_orders have no date setting, so they count a customer's whole history. Pair them with last_order_date, or use orders_placed with a date window.
  • Shopify's RFM report sorts customers into 11 groups using scores relative to your own store, and the rfm_group filter turns any of them into a segment.
  • A segment can send a Shopify email, carry a discount, export to CSV or start a Shopify Flow workflow when a customer joins it.
  • Shopify segments use the same cutoff for every customer and have no holdout, so check timing per customer and test the campaigns you send.

Shopify customer segmentation is built into the Shopify admin: under Customers > Segments you write rules, such as how much a customer has spent or when they last ordered, and Shopify keeps the segment up to date as customers start or stop meeting them. The catch is that the two filters most stores start with, amount spent and number of orders, count a customer's whole history. A "VIP" segment built on them keeps customers who stopped buying years ago. This how-to covers which filters count all time, how to add a date window, Shopify's RFM groups, and five segments worth building.

Where Shopify customer segmentation lives, and what's changed

From your Shopify admin, go to Customers, then click Segments. Each segment is a query written in Shopify's segment language, and Shopify's segmentation overview says "customers are automatically added or removed to the segment list based on whether they meet the segment criteria." You can type the query, pick filters from the menu, or ask Sidekick to draft it from plain English.

The segment editor has grown steadily over the last two years. From Shopify's changelog:

Date Change
Dec 2024 Segments based on store credit, with the store_credit_accounts filter
May 2025 Segments built from any address, described in plain language
Sep 2025 Segments by product category, for the types of products customers have viewed or bought
Oct 2026 New function syntax: functions use MATCHES, and the named dates such as 90_days_ago are deprecated in favor of offsets like -90d

That last change matters if you copy queries from older blog posts. Shopify's help center now writes date-limited filters as orders_placed MATCHES (...). Older examples written as products_purchased(...) = true use the deprecated style, so rewrite them before you rely on them.

Open your segments list and check whether any saved segment uses the old function style or a named date. Fix those first.

Step 1: Know which filters count all time

Shopify's filter reference lists 27 filters. The ones you'll use most fall into two groups.

Filter What it counts Example
amount_spent How much the customer has spent in your store, with no date setting amount_spent >= 1000
number_of_orders How many orders the customer has placed, with no date setting number_of_orders > 10
last_order_date When the customer last ordered last_order_date >= -7d
first_order_date When the customer first ordered first_order_date >= -30d
orders_placed Orders or spend within a date range you set orders_placed MATCHES (sum_amount >= 1000, date >= -90d)

amount_spent and number_of_orders have no date setting, so they count everything a customer has ever done in your store. Neither ever goes down. A customer who spent $3,000 in 2022 and has been buying from a competitor since is, as far as amount_spent >= 1000 is concerned, a VIP forever. Loyalty you can't lose is a lovely idea, but it isn't loyalty.

Here's what that does to an illustrative store with 8,400 customers. Its top 10%, 840 customers, average $1,240 each and account for 35% of all customer value. Say a "VIP" segment of amount_spent >= 1000 captures roughly those 840, and assume 252 of them, 30%, haven't ordered in the last 12 months.

Segment Query Customers
"VIPs" as most stores build it amount_spent >= 1000 840
VIPs still buying amount_spent >= 1000 AND last_order_date >= -12m 588
VIPs who have gone quiet amount_spent >= 1000 AND last_order_date < -12m 252

If those 252 averaged the same $1,240, they account for 252 × $1,240 = $312,480 of past spending. In the single segment, they get the "thanks for being one of our best customers" early-access email, which reads oddly to someone who hasn't thought about you in a year. Split out, they're the highest-value win-back list you have. The customer segmentation guide calls them the "can't lose" segment.

amount_spent never goes down. A segment built on lifetime totals alone can't tell your best customers from your best former customers.

Whenever a segment uses amount_spent or number_of_orders, add a recency rule, or swap in orders_placed with a date window. Shopify's help center gives examples such as orders_placed MATCHES (count >= 3, date >= -6m) for three or more orders in the last six months.

Step 2: Build five segments worth having

These five cover most of what a store needs from Shopify segments. Paste each into the editor, check the customer count looks sensible, then save.

  1. New customers this month. number_of_orders = 1 AND first_order_date >= -30d. These customers get your second-order effort. Time it with your store's reorder curve, which the time between purchases guide shows how to build.
  2. Active high spenders. orders_placed MATCHES (sum_amount >= 500, date >= -12m). Spend in the last year, not ever. Set the threshold from your own order values.
  3. VIPs who have gone quiet. amount_spent >= 1000 AND last_order_date < -12m. Big past spenders, now silent. A personal note usually beats a discount here.
  4. Repeat customers going quiet. number_of_orders >= 2 AND last_order_date < -90d. A simple drift list. Change 90 to fit how often your products run out.
  5. Recent abandoned checkouts. abandoned_checkout_date >= -7d. Useful for a one-off campaign or an exclusion, alongside your abandoned checkout flow.

Two more filters are worth knowing. predicted_spend_tier = 'HIGH' uses Shopify's own prediction of who will spend most, and "is only available when your store has made more than 100 sales." And rfm_group, covered next, gives you ready-made groups without writing thresholds.

Start with segments 2 and 3. Most stores already have a lifetime "VIP" segment, and splitting it changes who gets which email the same day.

Step 3: Use Shopify's RFM groups

RFM stands for recency, frequency and monetary value: how recently a customer ordered, how often, and how much they've spent. Shopify's customers reports include an RFM customer analysis that "applies a 3-digit score to each customer, where each digit ranges from 1 to 5." A 5 means the customer is "in the top 20% of the dimension for your store."

Shopify then sorts customers into 11 groups, combining the recency score with the average of the frequency and monetary scores. The filter reference lists the values you can use in a segment: Champions, Loyal, Active, New, Promising, Needs attention, Almost lost, At risk, Previously loyal, Dormant and Prospects (customers with no orders). For example:

rfm_group = 'PREVIOUSLY_LOYAL'

Two things to keep in mind. First, the scores are relative to your own store. A Champion in your store is someone in your top fifth, not someone who meets an industry standard, so the groups shift as your customer base changes. Second, recency is scored against all your customers, not against each customer's usual rhythm. A customer who buys a mattress topper every two years and one who buys coffee every three weeks get the same recency yardstick.

Use the RFM groups as a starting map, not a verdict. Pull the At risk and Previously loyal groups this week and compare them with the segment 3 and 4 lists from Step 2. Where they disagree is usually where a single cutoff is wrong for a type of product. The RFM analysis tool page shows how the same scores are calculated in a spreadsheet, if you want to check Shopify's working.

Step 4: Put segments to work

A segment only earns its keep when it changes what a customer receives. From a segment's page in Shopify you can:

  • Send an email. Shopify's segment management page lets you use a segment for an email through Shopify Messaging. Only subscribed customers receive marketing email.
  • Attach a discount. Limit a discount to the segment, so the code only works for those customers.
  • Export it. Download the segment as a CSV for analysis or another tool.
  • Start a workflow. Shopify Flow's Customer joined segment trigger "starts a workflow when a customer joins the segment that you've selected." Use it to tag new VIPs or alert your team about a quiet big spender. Flow's trigger list doesn't include a matching trigger for leaving a segment. Apps can listen for that through Shopify's API, but you can't build it in Flow alone.
  • Use it in apps. Shopify's developer docs describe how apps can read segments to "filter out specific customers for marketing, analytics, and reporting purposes." Check each app's own docs for what it does with them.

Before the first send to a new segment, hold back a random slice of it. The email holdout test guide shows how to set one up and read it.

When Shopify segments aren't enough

Native segments handle most everyday needs, but a few limits are worth knowing before you build a program on them. If you'd rather build segments from your order history outside the admin, the Shopify integration page explains how LiftSignals connects to a store.

  • One cutoff for everyone. last_order_date < -90d treats the weekly buyer and the twice-a-year buyer the same. The lapsed customers guide explains why each customer needs their own cutoff, at about twice their usual gap.
  • No holdouts. Shopify segments decide who gets a message, not whether the message worked. You need a holdout for that.
  • Limited history for events. Storefront event data, such as products viewed, is available for the last 26 months and starts in May 2023, according to the filter reference.
  • Predictions need volume. Predicted spend tier needs more than 100 sales, and RFM quintiles are noisy in a store with a few hundred customers.
  • Messy customer records. A shopper who checked out with two emails shows up as two smaller customers in every segment. The CDP for ecommerce guide covers merging duplicates.

Write each segment's purpose in its name or description, such as "VIPs quiet 12m+, win-back", so the next person to open the list knows what it's for.

In LiftSignals

LiftSignals reads your Shopify orders read-only and rebuilds RFM, predicted value and churn-risk segments every night, with drift measured against each customer's own rhythm rather than one store-wide cutoff. Segments sync to Klaviyo, Meta, Google and other tools, with a random holdout on each send.

What to do next

You now know which Shopify filters count all time, how to add a date window, and how to read Shopify's RFM groups. What native segments can't do is judge each customer against their own buying rhythm, or tell you whether the email you sent them worked. Customer segmentation rebuilds value, RFM and churn-risk segments from your Shopify orders every night and keeps a holdout on every send. Connect your store and compare its segments with your own during the 30-day free trial. No card, and no VIPs who left in 2022.

Sources

  1. "Customer segmentation," Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/customers/customer-segmentation
  2. "Creating customer segments," Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/customers/customer-segmentation/create-customer-segments
  3. "Shopify-based customer segment filters," Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/customers/customer-segmentation/reference-guide/shopify-segments
  4. "Segment query language reference," Shopify.dev (checked Nov 26, 2026). https://shopify.dev/docs/apps/build/shopifyql/segment-query-language-reference
  5. "Build customer segments based on store credit," Shopify Changelog, Dec 11, 2024. https://changelog.shopify.com/posts/build-customer-segments-based-on-store-credit
  6. "Create customer segments using any address," Shopify Changelog, May 21, 2025. https://changelog.shopify.com/posts/create-customer-segments-using-any-address
  7. "Segment customers based on the product categories they've browsed or bought," Shopify Changelog, Sep 19, 2025. https://changelog.shopify.com/posts/segment-customers-based-on-the-product-categories-they-ve-browsed-or-bought
  8. "Updated function syntax on the segment query language," Shopify.dev Changelog, Oct 1, 2026. https://shopify.dev/changelog/posts/updated-function-syntax-on-the-segment-query-language
  9. "Customers reports," Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/customers-reports
  10. "Managing customer segments," Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/customers/customer-segmentation/manage-customer-segments
  11. "Customer joined segment," Shopify Flow reference, Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/shopify-flow/reference/triggers/customer-joined-segment
  12. "Triggers," Shopify Flow reference, Shopify Help Center (checked Nov 26, 2026). https://help.shopify.com/en/manual/shopify-flow/reference/triggers
  13. "Customer segments," Shopify.dev (checked Nov 26, 2026). https://shopify.dev/docs/apps/build/marketing-analytics/customer-segments

Shopify customer segmentation questions

Can you do RFM segmentation in Shopify?

Yes. Shopify's customers reports include an RFM customer analysis that scores every customer from 1 to 5 on recency, frequency and monetary value and sorts them into 11 groups, such as Champions, At risk and Dormant. You can build a segment from any group with the rfm_group filter, for example rfm_group = 'AT_RISK'.

Does Shopify update customer segments automatically?

Yes. Shopify adds and removes customers as they meet or stop meeting the segment's rules, so you don't rebuild a segment each time you use it. Large segments can take a few moments to calculate, and very recent changes to tags or subscription status can take a short time to show up.

How do I find customers in Shopify who haven't ordered recently?

Create a segment with last_order_date and a relative date, for example number_of_orders >= 2 AND last_order_date < -90d for repeat customers who haven't ordered in 90 days. Adjust the cutoff to your products, because a single store-wide cutoff will be early for some customers and late for others.

Can a Shopify customer segment trigger a Shopify Flow workflow?

Yes. Shopify Flow has a Customer joined segment trigger that starts a workflow when a customer joins the segment you choose. Flow's trigger list doesn't include a matching trigger for leaving a segment, though apps can listen for that event through Shopify's API.

Put it to work: Customer segmentation → · RFM analysis tool → · Shopify integration →