Quick answer
Customer loyalty is a customer's tendency to keep choosing the same company despite alternatives. It has two halves: behavioral loyalty (repeat purchases, retention, recency), measurable from your data, and attitudinal loyalty (preference, willingness to recommend), which needs surveys.
Formula: Repeat purchase rate = customers with 2+ orders ÷ all customers in the period; NPS = % promoters (9–10) − % detractors (0–6)
What is meant by customer loyalty?
Customer loyalty is a customer's tendency to keep choosing the same company over time, buying again, returning, staying subscribed, even when competitors are available and switching would be easy. Richard Oliver's widely cited 1999 definition in the Journal of Marketing describes it as "a deeply held commitment to rebuy or repatronize a preferred product/service" consistently in the future, despite situations and competitor efforts that could cause switching.
That definition has two parts, and most confusion about loyalty comes from mixing them:
- Behavioral loyalty: what customers do. They buy again, come back, renew. You can observe it in order and usage data.
- Attitudinal loyalty: what customers feel and say. They prefer you, would recommend you, intend to buy again. You can only learn it by asking.
Dick and Basu's 1994 framework in the Journal of the Academy of Marketing Science combined the two: loyalty is strongest when a favorable relative attitude and repeat patronage occur together. The practical consequence: behavior data can tell you who is acting loyal; it cannot tell you why, or whether they would stay if a better offer appeared. Measuring loyalty well means knowing which half each number covers.
Behavioral vs attitudinal loyalty
| Aspect | Behavioral loyalty | Attitudinal loyalty |
|---|---|---|
| What it is | Repeat actions: purchases, visits, renewals | Preference, commitment, intention to return or recommend |
| Typical evidence | Repeat purchase rate, purchase frequency, retention, recency | Net Promoter Score, stated preference, intent-to-repurchase questions |
| Data source | Orders, events, subscription records | Surveys, interviews, reviews |
| Measured from behavior data? | Yes | No, needs asking |
| Strength | Objective, complete for all customers, updates continuously | Explains motivation; can predict defection before behavior changes |
| Weakness | Cannot tell habit or lack of alternatives from preference | Self-reported, sampled, biased toward customers who answer |
Neither is "real" loyalty on its own. A customer who buys every month only because you are the nearest store shows behavioral loyalty without attitude; a fan who loves the brand but buys once a year shows attitude without much behavior.
The four loyalty conditions
Crossing the two dimensions gives four groups, following Dick and Basu's framework:
| Repeat behavior: high | Repeat behavior: low | |
|---|---|---|
| Relative attitude: high | Loyalty: buys again and prefers you | Latent loyalty: prefers you but buys rarely (price, access, need) |
| Relative attitude: low | Spurious loyalty: buys again out of habit, convenience or lack of choice | No loyalty |
Each group needs a different action:
- Loyalty: protect it; these customers respond to recognition and early access, not discounts.
- Latent loyalty: remove the barrier. If they like you but rarely buy, the problem is usually price, availability or reminders.
- Spurious loyalty: the riskiest group, because it looks loyal in behavior data. A competitor that matches convenience can take it overnight.
- No loyalty: acquire or let go; do not spend loyalty budget here.
How do you measure customer loyalty?
| Metric | Formula | Loyalty half it measures |
|---|---|---|
| Repeat purchase rate | Customers with 2+ orders in the period ÷ all customers in the period | Behavioral |
| Purchase frequency | Orders ÷ customers in the period | Behavioral |
| Customer retention rate | Customers from the previous period who bought again this period ÷ customers in the previous period | Behavioral |
| Recency | Days since last purchase or visit | Behavioral |
| RFM loyal share | Customers in the top recency-frequency-monetary groups ÷ all scored customers | Behavioral |
| Net Promoter Score | % promoters (9–10) − % detractors (0–6) on a 0–10 "would you recommend" question | Attitudinal (survey) |
The NPS scoring follows Bain & Company's published method: customers answer on a zero-to-ten scale, 9 and 10 are promoters, 7 and 8 passives, 0 to 6 detractors.
Worked example: one store, 12 months of customers
Sample data: an online store looks at the 1,000 customers who ordered at least once in the last 12 months, and runs one recommendation survey that 400 of them answer.
Behavioral metrics
| Metric | Calculation | Result |
|---|---|---|
| Repeat purchase rate | 280 customers with 2+ orders ÷ 1,000 | 28.0% |
| Purchase frequency | 1,540 orders ÷ 1,000 customers | 1.54 orders per customer |
| Frequency among repeat buyers | (1,540 − 720 single orders) ÷ 280 | 2.93 orders |
| Year-over-year retention | 240 of the 800 previous-year customers bought again ÷ 800 | 30.0% |
| RFM loyal share | 60 in the top group + 110 in the next ÷ 1,000 | 17.0% |
Attitudinal metric
| Answer | Respondents | Share |
|---|---|---|
| Promoters (9–10) | 180 | 45% |
| Passives (7–8) | 140 | 35% |
| Detractors (0–6) | 80 | 20% |
| NPS | 45% − 20% | +25 |
Both together (respondents only)
| Repeat buyer | One-time buyer | Total | |
|---|---|---|---|
| Promoter | 120 (loyalty) | 60 (latent loyalty) | 180 |
| Not a promoter | 60 (spurious loyalty) | 160 (no loyalty) | 220 |
| Total | 180 | 220 | 400 |
What the example shows:
- A third of repeat buyers are spurious. 60 of the 180 repeat buyers who answered are not promoters. Behavior data alone would count them as loyal.
- Latent loyalty is a sales opportunity. 60 promoters bought only once; a reminder, a subscription option or a better price for repeat orders is likely to work on them.
- Survey respondents are not the customer base. 180 of 400 respondents (45%) are repeat buyers against 28.0% of all customers, so NPS from this survey over-represents the most engaged customers. Report the response rate and the repeat-buyer mix with the score.
What behavior data can and cannot tell you
| Question | Answerable from behavior data? | How |
|---|---|---|
| Who buys again, and how often? | Yes | Repeat rate, frequency, RFM |
| Who is slipping away? | Yes | Recency, lifecycle stage, falling frequency |
| Did a loyalty program change behavior? | Partly | Compare members and similar non-members; members self-select |
| Do customers prefer us or just find us convenient? | No | Survey, interviews |
| Would they recommend us? | No | NPS or a recommendation question |
| Why did they stop buying? | No | Exit survey, support conversations, reviews |
Customer loyalty vs retention vs satisfaction
The three are related but not interchangeable:
- Retention is an outcome you measure from behavior: did the customer stay or buy again in a period. It is the behavioral half of loyalty, counted.
- Satisfaction is an attitude about a specific experience, usually measured right after it. Satisfied customers can still leave if a competitor is cheaper or closer.
- Loyalty is the broader concept: repeat behavior backed by preference. High retention with low attitude is the spurious loyalty from the example.
Common mistakes in measuring loyalty
- Calling repeat purchase "loyalty" without checking attitude. It may be habit or lack of choice.
- Using a 12-month window for a product people buy weekly. Pick the window from the natural purchase cycle.
- Reporting NPS without response rate and respondent mix. In the example, respondents were far more often repeat buyers than the customer base.
- Mixing loyalty program membership with loyalty. Members joined because they already buy; the program's effect is the difference from comparable non-members, not the members' high repeat rate.
- Averaging over everyone. A 28% repeat rate can hide a small core that buys monthly and a large group that never returns; segment before acting.
How to see behavioral loyalty in TapCub
The behavioral half of the example can be measured in TapCub from purchase events; the attitudinal half cannot, because TapCub does not run NPS or other surveys.
- Send purchases as events or orders. In All-platform analytics › Users › Segments & tags, create a segment of type RFM on your purchase event and amount property. Customers are scored in quintiles and placed in 10 buckets, including Champions and Loyal; the segment is recomputed daily and moves between buckets are stored, so you can see how many loyal customers slipped to "at risk" this month.
- If purchases are on the order ledger, All-platform analytics › Business › Commerce & revenue shows RFM segments for the last 365 days with headcounts compared with 30 days earlier and the largest moves between segments.
- In All-platform analytics › Behavior › Behavior analysis, the lifecycle view splits each week or month into New, Returning, Resurrecting and Dormant, which shows whether repeat behavior is growing or being replaced by new customers. The retention view follows one cohort forward.
- Use a bucket as a cohort in a funnel or retention analysis to compare, for example, Champions with "need attention" customers on the same checkout funnel.
Anonymous visitors have no profile and do not enter segments, so loyalty analysis covers identified customers. For the attitude side, run a survey in a separate tool and compare its results with the RFM buckets of the same customers.
Sources
- Dick and Basu (1994), Customer Loyalty: Toward an Integrated Conceptual Framework, Journal of the Academy of Marketing Science 22(2) (relative attitude × repeat patronage; loyalty, latent, spurious and no loyalty; checked 2026-11-28)
- Oliver (1999), Whence Consumer Loyalty?, Journal of Marketing 63 (special issue) (definition of loyalty as deeply held commitment to rebuy; checked 2026-11-28)
- Bain & Company: Measuring your Net Promoter Score (0–10 scale, promoters 9–10, passives 7–8, detractors 0–6, NPS = % promoters − % detractors; checked 2026-11-28)
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Adoption Consultant
Explores customer onboarding, live conversations, and self-service, turning common usage questions into practical guidance and improvements.