Skip to content

Shopify growth

Customer segmentation on Shopify: behavior plus what customers tell you

Order history tells you what customers did. A one-question survey tells you why. Here is how to combine both into segments you can use in Shopify and Klaviyo.

Yforms team, Product & growthPublished 6 min read

On this page

Good customer segmentation Shopify stores can act on combines two kinds of data: what customers did (what they bought, how often, how much) and what they told you (where they found you, why they bought, who it was for). Shopify's segment editor handles the first kind well. The second comes from asking. This guide shows the behavioral segments worth building first, how to add survey answers to them, and how to use the result in Shopify and in Klaviyo.

What customer segmentation is, and why bother

A segment is a group of customers who share something that changes what you should say to them. That last part matters. A segment you never send a different message to is just a report. Before you build one, name what you'd do differently for it: a different email, a different offer, a different ad audience, or a different product page.

For most Shopify stores, a handful of segments does almost all the work. Ten segments nobody maintains are worth less than four you use every week.

Behavioral segments to build first in Shopify

Shopify's customer segment editor lets you filter customers by their orders, spend, location, tags and email activity. The filter reference (opens in a new tab) lists them all, including number_of_orders, amount_spent, last_order_date, products_purchased, customer_tags and rfm_group. These segments are a good start:

SegmentBuilt fromWhat you do with it
First-time buyersnumber_of_orders equals 1A welcome sequence that sets up the second order
Repeat buyersnumber_of_orders of 2 or moreEarly access, new products, referral asks
High spendersamount_spent above a level you pick, or rfm_groupPersonal thank-yous, previews, no blanket discounts
Lapsinglast_order_date older than your usual gap between ordersA win-back sequence
Bought a productproducts_purchasedCare tips, refills, what goes with it
Subscribers who don't buyemail_subscription_status with number_of_orders equal to 0Reasons to make the first order

Shopify's help center explains how to create segments (opens in a new tab), from templates, by editing the query, or by describing the segment in plain words. Start from a template and change one condition at a time.

Why behavior alone isn't enough

Two customers with the same order history can need opposite messages. One bought a candle for herself and loves it. The other bought the same candle as a gift and will never burn it. A "bought candle" segment sends both a refill offer. Only one of them wants it.

This is where survey answers come in. Customers tell you, in one tap, things your order data can't show: why they bought, who for, where they first heard of you and what they want to hear about. This is often called zero-party data. It's accurate because it comes from the customer, and it's useful because it's specific.

Segments built from survey answers

Ask one question at a time, on the Thank you page or in a later email, and each answer becomes a segment. The questions that make the most useful segments:

QuestionExample answersHow the segment changes your message
How did you hear about us?A friend, Podcast, Instagram, Google searchReferral asks for word-of-mouth buyers, ad audiences built from buyers by channel
What made you buy today?A discount, Reviews, I needed it nowDiscount-led buyers get offers, review-led buyers get proof
Who did you buy this for?Myself, A gift, My familyGift buyers get occasion reminders, not refill offers
What would you like to hear from us about?New products, Offers, Tips and guidesSend people what they asked for
Would you buy this again?Yes, NoNo answers get a follow-up and a fix, not a promo

The channel question is worth singling out. Grouping buyers by where they first heard of you lets you compare their repeat rate and order value by channel. That tells you which channels bring customers who stay, not just customers who buy once. The how did you hear about us survey guide has the answer options, and the customer persona survey questions guide covers questions about motivation and use.

Getting survey answers into Shopify and Klaviyo

To segment on an answer, the answer has to sit on the customer's profile where your tools can see it. There are a few ways to get it there, depending on your survey app.

  • A direct sync. Some survey apps write answers to Shopify customer tags or metafields, or to Klaviyo profile properties. If yours does, segments update on their own.
  • A spreadsheet export. Export the answers with the customer's email, then import them. In Klaviyo, a list upload maps extra columns to profile properties. In Shopify, a customer CSV import can update tags on existing customers.
  • A webhook or warehouse. If you already run a data pipeline, send answers there and push segments out from it.

A monthly import is enough for most segments built on answers. Why someone bought their first order doesn't change week to week.

Using segments in Klaviyo

Klaviyo builds segments from conditions on profile properties and on things people did, such as placing an order. Its guide to getting started with segments (opens in a new tab) covers the builder. Once an answer is a profile property, combine it with behavior:

  • Gift buyers who haven't ordered in 10 months: a reminder before the same occasion next year.
  • Word-of-mouth buyers with 2 or more orders: a referral ask, since they're likely to recommend you again.
  • Discount-led first-time buyers: a second-order offer timed to your usual gap, then full price after.
  • People who said they wouldn't buy again: take them out of promotional flows and send a personal follow-up instead.

Use segments to change flows, not only campaigns. A welcome or post-purchase flow with one branch for gift buyers and one for self-buyers does more than a dozen one-off sends. The post-purchase email flow guide shows where those branches fit.

Using segments in Shopify

Inside Shopify, segments are useful beyond email. You can limit a discount to a segment, so only lapsing customers get a win-back code. You can send a Shopify Email campaign to a segment if you don't use Klaviyo. And you can export a segment as a customer list for an ad audience, such as a lookalike built from high spenders who first came by word of mouth.

Keep the segment names plain and dated if they come from an import: "Gift buyers, imported Oct 2026" tells the next person exactly what it is and how fresh.

Check that a segment earns its keep

A segment is worth keeping when the people in it respond differently to a different message. Test it. Send half the segment the tailored email and half the general one, and compare orders over the next few weeks. If there's no difference, merge the segment back in and spend the time elsewhere.

Review your segments every quarter. Drop ones nobody used. Update the thresholds for high spenders and lapsing customers as your store grows. And watch the survey answers themselves: a new answer that keeps appearing under Other may be your next segment. For a broader view of using answers to keep customers, see customer retention strategies for ecommerce.

Questions

Does Shopify have customer segmentation built in?

Yes. The Customers section of the Shopify admin has a segment editor with filters for orders, spend, location, tags, email activity and more, plus templates to start from.

What's the difference between a Shopify segment and a Klaviyo segment?

Both are dynamic groups of customers. Shopify segments use Shopify's data and work with Shopify discounts and Shopify Email. Klaviyo segments can also use email engagement and any profile property you import, and drive Klaviyo flows.

How many customer segments should a small store have?

Four to six that you actually use is plenty. First-time buyers, repeat buyers, lapsing customers and one or two built from survey answers cover most needs.

Can I segment by how customers found my store?

Yes, if you ask them. A "How did you hear about us?" question on the Thank you page gives you a channel for each buyer, which you can import as a tag or profile property.

Start free on Shopify

Hear from every customer after they buy.

Yforms asks one short question on your thank-you page, when the order arrives and after use. Free for up to 200 orders a month, and every new store gets 14 days of Growth.

Keep reading