Customers

Customer segmentation and lifetime value for ecommerce

Not every customer is worth the same. Segmentation and lifetime value tell you which ones to spend on keeping.

In short

Customer segmentation is the practice of grouping your customers by shared traits, what they buy, how often, how recently, or who they are, so you can treat each group differently. Lifetime value, or LTV, is the total profit you expect from a customer across their whole relationship with you. Together they tell you which customers to invest in acquiring and keeping.

What is customer segmentation in marketing?

Customer segmentation is dividing your customers into groups that share something meaningful, so you can market to each group on its own terms instead of treating everyone the same. An example: separating first time buyers from repeat customers and sending the first group a welcome offer while rewarding the second with loyalty perks. Same store, two messages, matched to behaviour.

The point of segmentation is efficiency. A message aimed at everyone speaks precisely to no one; a message aimed at a group that actually shares a need lands harder and wastes less budget. For an online store, the most valuable segments are usually behavioural, based on what people have actually done, because past purchase behaviour predicts future purchase behaviour better than any demographic.

What are the four types of customer segmentation?

The four classic types are demographic (age, income, gender), geographic (where they live), psychographic (values, interests, lifestyle), and behavioural (what they buy, how often, how they use the product). Behavioural segmentation is the most actionable for ecommerce, because it groups people by real purchase history rather than by assumptions about who they are.

TypeGroups people byEcommerce example
DemographicAge, income, gender, jobGifts marketed to one age bracket
GeographicCountry, region, climateSeasonal ranges by hemisphere
PsychographicValues, interests, lifestyleSustainability-led messaging
BehaviouralPurchases, frequency, recencyWin-back emails to lapsed buyers

What is RFM segmentation?

RFM segments customers by three behaviours: Recency (how recently they bought), Frequency (how often), and Monetary value (how much they have spent). Each customer is scored on the three, and the scores sort them into groups like champions, loyal customers, at risk, and lost. It is the segmentation model built for repeat purchase businesses, because it uses only real transaction data.

RFM is powerful because it is entirely objective and needs no survey. A customer who bought last week, buys monthly, and has spent thousands is a champion; one who bought once a year ago is at risk of being gone for good. Knowing the difference tells you exactly who deserves a retention offer and who is worth a win back campaign.

What is customer lifetime value and how do you calculate it?

Customer lifetime value is the total profit a customer generates over their entire relationship with your store. A simple version multiplies average order value by how many times a customer buys per year by how many years they stay. If your average order is $50, a customer orders three times a year, and stays two years, their lifetime value is $50 × 3 × 2 = $300 in revenue.

LTV matters because it sets the ceiling on what you can afford to spend acquiring a customer. Acquiring a new customer is widely estimated to cost several times more than keeping an existing one, so a store that knows its LTV can spend confidently on acquisition and, just as importantly, justify spending on retention, which raises the LTV that funds everything else.

What does AOV stand for?

AOV stands for average order value, the average amount a customer spends per order. You calculate it by dividing total revenue by the number of orders. If you took $10,000 across 200 orders, your AOV is $50. It is one of the three levers of lifetime value, alongside purchase frequency and retention, and the easiest one to move with bundles and thresholds.

Raising AOV flows straight through to lifetime value and to how much you can afford to pay for a customer. Free shipping thresholds, bundles and cross sells all nudge it upward. Because it feeds LTV, a small, durable lift in AOV can change what counts as a profitable ad campaign across your whole store.

How to segment your Shopify customers

Shopify records the raw data, orders, dates and amounts, but does not group customers into value tiers or calculate lifetime value for you. To segment, you either export order history and build RFM and LTV in a spreadsheet, or use an analytics app that reads your Shopify orders and produces the segments and lifetime value directly.

Margio does the second automatically. It reads your Shopify order history and shows lifetime value, repeat purchase rate, the new versus returning split, and RFM segments, along with what customers tend to buy on their second and third orders, so you can see which customers are worth keeping and what to sell them next.

Customer analytics sit on Margio's Starter plan, which is the product and store intelligence tier, so you get segmentation and lifetime value without needing the bank connection.

Frequently asked

What is an example of customer segmentation in marketing?

Splitting customers into first time buyers and repeat buyers, then sending the first group a welcome discount to earn a second order and the second group early access or loyalty rewards. Same store, two different messages, each matched to where the customer is in their relationship with you.

What are the six steps of customer segmentation?

Define your goal, gather customer data, choose the segmentation type, build the segments, profile each one to understand its needs, then act on them with tailored marketing, and review over time. The final step, acting and reviewing, is where segmentation earns its keep; the analysis is only useful once it changes what you do.

How do you calculate customer lifetime value?

Multiply average order value by average purchase frequency per year by the average number of years a customer stays. For profit-based LTV, multiply that revenue figure by your gross margin. A $50 average order, three orders a year, two years and a 50 percent margin gives a lifetime value of $150 in profit.