Affiliate Marketing: What It Is and How It Works
What affiliate marketing is, how it works, commission models (CPA, CPS, CPL), top platforms, pros, cons and how to measure conversion.

80% of a company's future revenue will come from 20% of its current customers (Gartner, 2025). The question is: do you know who that 20% is?
The RFM matrix is one of the most effective ways to answer that question. It's been used in direct marketing for decades and, with the data any ecommerce generates today, implementing it is more accessible than ever. This article explains what it is, how scoring works and how to apply it to improve conversion.
RFM is a customer segmentation model based on three purchase behavior variables:
The premise is simple: a customer who bought recently, buys frequently and spends a lot is more valuable than one who bought a year ago, only once and for a small amount. It sounds obvious, but most companies treat both customers the same way.
The RFM model works because it's based on actual behavior, not predictions or demographic data. You don't need to know the customer's age, gender or interests. You only need three data points you already have in your transactional database:
For each customer in your database, you need:
| Variable | Required data | Source |
|---|---|---|
| Recency | Date of last purchase | Order database |
| Frequency | Total number of completed orders | Order database |
| Monetary | Sum of all order amounts | Order database |
For each variable, rank all customers and divide them into 5 equal groups (quintiles). Assign a score from 1 to 5:
Recency:
Frequency:
Monetary:
Note: ranges are indicative. Each business should define them based on their own reality (average order value, typical purchase frequency, seasonality).
Each customer receives a 3-digit code. For example:
You don't need to work with 125 combinations (5x5x5). Group the scores into business-meaningful segments:
| Segment | RFM score | Characteristics | Recommended action |
|---|---|---|---|
| Champions | 555, 554, 545 | Buy a lot, frequently and recently | VIP program, exclusivity, referrals |
| Loyal | 435, 534, 443 | Buy frequently with good value | Upselling, cross-selling, early access |
| Potential loyals | 512, 513, 412 | Purchased recently with medium frequency | Incentivize second/third purchase |
| New | 511, 512, 411 | Recent first purchase | Onboarding, welcome email |
| At risk | 255, 254, 245 | Were good customers but haven't purchased in a while | Reactivation campaigns, special offers |
| Hibernating | 155, 144, 133 | High historical value but inactive | Aggressive win-back or accept the loss |
| Lost | 111, 112, 121 | Low value and no activity | Exclude from paid campaigns, database cleanup |
RFM analysis isn't just for email marketing. It has direct applications in optimizing your website's conversion.
If you know the RFM segment of a returning user (via login or cookie), you can personalize their experience:
Instead of retargeting all visitors equally, segment by RFM:
Where should you invest more? RFM gives you the data-driven answer:
| Segment | Recommended investment | Why |
|---|---|---|
| Champions | Medium (retention is cheap) | They're already loyal. Maintain the relationship |
| Potential loyals | High | Maximum ROI from converting to loyal |
| At risk | Medium-high | Recovering a customer costs less than acquiring a new one |
| New | High | The first post-purchase experience defines the relationship |
| Lost | Low or none | Low expected ROI |
RFM can inform your CRO experiments. There's no point testing the same variant for Champions and New customers: their motivations and behaviors are radically different.
Examples of RFM-segmented tests:
Imagine a fashion ecommerce with 20,000 customers. After applying RFM analysis:
| Segment | % of customers | % of revenue | Action |
|---|---|---|---|
| Champions (555-445) | 8% | 42% | VIP program, permanent free shipping |
| Loyal (434-335) | 15% | 28% | Cross-selling via email |
| Potential loyals (512-312) | 12% | 10% | Second purchase discount |
| New (511-411) | 20% | 8% | Optimized welcome sequence |
| At risk (244-145) | 18% | 9% | Win-back campaign with discount |
| Lost (111-122) | 27% | 3% | Exclude from paid campaigns |
The most revealing data point: 8% of customers generate 42% of revenue. Without RFM, you'd be investing the same to retain your Champions as to try to recover lost customers who represent just 3% of your revenue.
Like any model, RFM has limitations you should be aware of:
It describes, not predicts. RFM tells you how a customer behaves today, not how they'll behave tomorrow. For prediction, you need models like predictive CLV or churn probability.
It doesn't account for margin. A customer who spends a lot but only buys discounted products may have a real value lower than their Monetary score suggests.
Seasonality. A customer who only buys on Black Friday might appear as "At risk" in July. Adjust Recency ranges according to your business's seasonality.
One-time purchase products. If you sell mattresses or large appliances, Frequency has a different meaning. Adapt the model to your natural purchase cycle.
The RFM matrix is a powerful tool because it turns data you already have into actionable decisions. You don't need machine learning or sophisticated tools to get started: a spreadsheet and your order database are enough.
If you want to go beyond segmentation and optimize the conversion experience for each segment, at Boost we do data-driven CRO. And for a first diagnostic of your website, try Scan&Boost.
— Adrià Vidal
What affiliate marketing is, how it works, commission models (CPA, CPS, CPL), top platforms, pros, cons and how to measure conversion.
What Apple Search Ads is, campaign types (Basic and Advanced), key metrics, relationship with ASO, real costs and when it makes sense vs. Google Ads.
What a CSS partner is in Google Shopping, how the CSS program works, CPC savings advantages, how to choose a provider and its impact on conversion.