Shopify customer segments: separate first-time and repeat buyers

Shopify customer segments: separate first-time and repeat buyers

In Shopify, customer segments are dynamic, rule-based lists built from filters, operators and values; customers move in and out automatically as their data changes (Official source). To separate first-time from repeat buyers, build two segments using order-count conditions, then verify each rule on a small manual sample before you send any campaign. Keep marketing consent as a separate condition, not an assumption.

What counts as a first-time buyer and a repeat buyer?

A first-time buyer is a customer whose order history contains exactly one order. A repeat buyer has two or more. That definition sounds obvious, but the practical difficulty is that Shopify segments are dynamic: the moment a first-time buyer places a second order, they leave the first segment and join the second (Official source).

This matters for two reasons. First, any message you plan for first-time buyers must be sent before the second purchase, or it will reach the wrong group. Second, your repeat-buyer segment grows on its own, so you do not need to maintain a static list.

A common mistake is treating "new customer" and "first-time buyer" as the same thing. A new customer may have created an account but never ordered. A first-time buyer has paid for something. If you mix them, your welcome offer can go to people who have not bought yet, which changes the economics of the campaign.

How do you build the two segments in Shopify?

Shopify segments are built by combining filter names, operators and values into a query, using ShopifyQL (Official source). The exact filter labels and menu positions can change, so verify them in your own admin rather than relying on a screenshot from an article.

The logic you want is:

  • First-time buyers: number of orders equals 1.
  • Repeat buyers: number of orders is greater than or equal to 2.

Build them one at a time. Save the first segment, check the customer count, then build the second. If the two counts do not roughly add up to your total customer base, one of the rules is probably wrong.

A verification method that does not depend on the interface

Because segment builders change, use a method that works regardless of the current menu layout:

  1. Open your customer list and sort or filter it manually by number of orders.
  2. Pick five customers with one order and five with two or more.
  3. Open each customer record and note their order count.
  4. Compare that note against whether they appear in your new segment.

If the ten customers land where you expect, the rule is behaving. If even one is misplaced, stop and inspect the condition before you use the segment for anything.

This is a control sample, not a statistical test. It is designed to catch a wrong operator, a wrong value, or a filter that is silently excluding customers, not to measure segment accuracy.

Why should marketing permission be a separate condition?

A segment answers "who are they?" It does not answer "may I email them?" Those are different questions, and mixing them creates legal and reputational risk.

In the UK and the US, the rules differ, and neither is a copy of the other. Marketing email rules differ by market. In the UK, the Information Commissioner's Office publishes guidance on consent and soft opt-in. In the US, the CAN-SPAM Act sets federal requirements for commercial email, including opt-out handling, and state laws can add their own rules. This article is not legal advice; check the current guidance for your market.

Practically, this means your send list should be the intersection of two things: the segment you built, and the set of customers who have a lawful basis for marketing contact. If your Shopify setup records marketing consent, add that as an additional condition in the segment. If it does not, export the segment and remove anyone without a recorded basis before sending.

Do not assume that a purchase implies permission to market. It does not, in either market.

What is a realistic example of how this changes a campaign?

Here is a hypothetical example, with illustrative figures only. A small store has 1,200 customers. A first-time-buyer segment shows 900 people and a repeat-buyer segment shows 300. The owner plans a 10% thank-you code for first-time buyers and a 15% loyalty code for repeat buyers.

Before sending, the owner adds the marketing-consent condition. The first-time list drops to 540 and the repeat list to 210. The owner now sends two different messages to two genuinely different groups, instead of one generic message to everyone.

The numbers are invented to show the shape of the decision. Your own counts will differ, and the point is not the discount level but the fact that permission filtering changes the size and meaning of each list.

What mistakes should you avoid?

  • Sending the first-time message too late. Because segments are dynamic, a first-time buyer who orders again before your send leaves the segment. If your campaign depends on that group, send it promptly after the first order.
  • Using one segment for two jobs. A first-time-buyer segment is not a lapsed-customer segment. Keep the purpose narrow.
  • Forgetting that segments update themselves. You do not need to rebuild them, but you do need to re-check the rule if you change your order settings or import historical data.
  • Treating the count as a performance metric. A segment count tells you who meets a rule, not whether a campaign worked.

If you find yourself rebuilding the same export by hand each week, that is a sign to automate one step rather than add more segments.

How do you keep this workable when more than one person runs it?

Write the rule down in plain language next to the segment name: "one order, consented, not unsubscribed." Anyone covering for you can then check the logic without guessing.

Shopify also notes that segments can support personalised messaging and cost-efficient strategies, for example through predicted spend tier (Official source). Treat those as options to explore once your two core segments are verified, not as a starting point.

Frequently asked questions

Do Shopify segments update automatically when a customer orders again?

Yes. Segments are dynamic and rule-based, so customers are added or removed automatically depending on whether they still meet the criteria (Official source). A first-time buyer who places a second order will leave the first-time segment without any manual action.

Can I use one segment for both email and SMS?

Build the audience logic separately from the channel decision. A segment defines who meets a condition; it does not confirm that a person has agreed to receive marketing on a particular channel. Check the recorded permission for each channel before sending, and keep the consent condition visible in the segment itself where possible.

Back to blog