---
title: "How to Create Shopify Customer Segments (Step-by-Step 2026 Guide)"
description: "Learn how to create customer segments in Shopify for targeted marketing. Segment by purchase history, location, spending, and behavior for personalized campaigns."
url: https://easyappsecom.com/guides/how-to-create-shopify-customer-segments.html
date: 2026-03-20
---

# How to Create Shopify Customer Segments (Step-by-Step 2026 Guide)

EasyApps Ecommerce

Last updated: March 2026

How to Create Shopify Customer Segments (Step-by-Step 2026 Guide)

By Jack Smith · Updated March 19, 2026 · 18 min read

TL;DR: Shopify customer segments let you group customers based on shared characteristics like purchase history, location, order value, and email engagement. Segments power targeted marketing campaigns that convert 3-5x better than generic messages. Create segments in Customers > Segments using Shopify query language, then use them for email campaigns, discount targeting, and personalized experiences. Start with five essential segments: first-time buyers, repeat customers, high-value customers, at-risk customers, and abandoned cart recoveries.

Why Customer Segmentation Drives Revenue

Sending the same marketing message to every customer is like shouting into a crowd — some people hear you, but most tune out because the message is not relevant to them. Customer segmentation solves this by dividing your customer base into groups with shared characteristics, allowing you to send the right message to the right people at the right time.

The data supporting segmentation is compelling. Segmented email campaigns generate 58% of all email revenue according to DMA research. Personalized product recommendations based on customer segments increase conversion rates by 150-300%. And targeted re-engagement campaigns for at-risk customers recover 15-25% of churning revenue that would otherwise be lost.

For Shopify merchants specifically, segmentation enables strategies that are impossible with one-size-fits-all marketing. You can offer exclusive discounts to your highest-value customers to reward loyalty without eroding margins across your entire customer base. You can send product recommendations based on purchase history, which feels helpful rather than pushy. You can create win-back campaigns for customers who have not purchased in 90 days, targeting them with specific incentives before they forget about your brand entirely.

The good news is that Shopify has built a powerful native segmentation system that requires no third-party apps. You can create sophisticated segments based on dozens of customer attributes, and these segments update automatically as customer data changes. This guide walks you through setting up segments that will immediately impact your marketing effectiveness.

Understanding Shopify Customer Segments

Shopify customer segments are dynamic groups defined by conditions (filters) that customers must meet to be included. Unlike static lists, segments automatically add and remove customers as their data changes. If you create a segment for "customers who have made 3+ purchases" and a customer makes their third purchase today, they are automatically added to the segment.

Segments are created in the Customers section of your Shopify admin using a query-based interface. You can build queries visually (using dropdowns and filters) or type them directly using Shopify segmentation query language. Both methods produce the same result.

Key concepts to understand:

Filters: The conditions that define segment membership. Examples include number_of_orders, total_spent, last_order_date, email_subscription_status, and customer_tags. Each filter has operators like equals, greater than, less than, contains, and between.

AND/OR logic: Combine multiple filters using AND (customer must match all conditions) or OR (customer must match any condition). For example, "total_spent > 200 AND number_of_orders > 3" targets high-value repeat customers.

Dynamic updates: Segments recalculate continuously. You never need to manually refresh or rebuild a segment. The customer count always reflects current data.

How to Create Your First Segment

Step 1: Go to Customers in your Shopify admin. Click on "Segments" in the top navigation.

Step 2: Click "Create segment." You will see a query editor with a search/filter bar.

Step 3: Choose your first filter. Click into the query bar and start typing a filter name, or click "Filter" to browse available options. For example, select "number_of_orders" and set it to "is greater than 0" to create a segment of customers who have made at least one purchase.

Step 4: Add additional filters if needed. Click "Add filter" to layer on more conditions. For example, add "last_order_date is after 2025-12-01" to narrow to recent purchasers.

Step 5: Review the customer count. Shopify shows how many customers match your segment criteria in real-time as you build the query. This helps you validate that your segment is sized appropriately — too broad and it loses targeting value, too narrow and it does not have enough reach.

Step 6: Name your segment clearly. Use descriptive names like "High-Value Repeat Customers" or "At-Risk 90-Day Inactive" rather than vague names like "Segment 3." You and your team will reference these segments frequently, so clarity matters.

Step 7: Click "Save segment." The segment is now available for use in marketing campaigns, discount targeting, and Shopify Flow automations.

Essential Segment Filters and Conditions

Shopify provides dozens of filters. Here are the most valuable for ecommerce segmentation:

number_of_orders: How many orders a customer has placed. Use "= 1" for first-time buyers, "> 3" for loyal repeat customers. This is the foundation of lifecycle-based segmentation.

total_spent: Total revenue from a customer across all orders. Identify your VIPs (top 10% spenders), mid-tier customers, and low-value segments for differentiated treatment.

last_order_date: When the customer last purchased. Critical for identifying active, lapsing, and churned customers. Customers who last ordered 30-60 days ago are "active," 60-120 days is "lapsing," and 120+ days is "at risk of churn."

email_subscription_status: Whether the customer is subscribed to marketing emails. Target subscribed customers with email campaigns and create strategies to re-subscribe those who opted out.

customer_tags: Custom tags you apply to customers. Tags give you unlimited flexibility — tag customers by acquisition source ("instagram-ad"), product interest ("skincare-buyer"), or any other attribute you track.

orders_placed product_id: Whether a customer has purchased a specific product. Use this for cross-sell campaigns (customers who bought product A but not product B).

customer_cities and customer_countries: Geographic filters for location-based campaigns, regional promotions, or market-specific messaging.

Five Must-Have Customer Segments

1. First-Time Buyers (number_of_orders = 1): These customers need nurturing to make their second purchase. The second purchase is the most critical conversion in the customer lifecycle — customers who buy twice are 9x more likely to buy again compared to one-time buyers. Send product care tips, cross-sell recommendations, and a modest second-purchase incentive (5-10% off) within 14 days of their first order.

2. Loyal Repeat Customers (number_of_orders > 3 AND last_order_date after -90d): These are your best customers. Reward them with exclusive early access to new products, loyalty discounts, and VIP treatment. They are also your most likely source of referrals and reviews. Do not over-discount to this segment — they already love your brand.

3. High-Value Customers (total_spent > [your top 10% threshold]): Calculate the spend amount that defines your top 10% of customers and create a segment for them. These customers deserve white-glove treatment: personal thank-you notes, exclusive offers, priority support, and first access to new collections. They generate a disproportionate share of your revenue.

4. At-Risk Customers (number_of_orders > 1 AND last_order_date before -90d): Customers who have purchased before but have not bought in 90+ days are at risk of churning. Send a re-engagement campaign with a compelling reason to return: new product announcements, a "we miss you" discount, or a reminder of products they previously purch...
