Measuring Customer Retention: Repeat Purchases With and Without Discount Codes
By Fatemeh Sheybani

To measure customer retention in an e-commerce store, we must determine which buyers repurchased within what timeframe, and what incentive drove their first repeat order. Growth in order volume or top-line revenue alone cannot provide this answer; new customer acquisition may simply be rising while existing buyers fail to return. The starting point is building a customer cohort based on first-purchase date and tracking those same individuals across an identical observation window. In Google's cohort exploration guide, cohort inclusion criteria and return criteria are also defined separately. In this article, we build this report for a hypothetical coffee shop, demonstrating what can be gleaned from purchases made with and without promo codes, and what still warrants further analysis.
The First-Purchase Cohort and Defining Repeat Orders
Customer segmentation must align with the core business question of the report. Google Analytics documentation notes that under an "any transaction" inclusion criteria, a user may belong to multiple time-based cohorts. While this setting serves certain inquiries, it does not constitute a true first-time buyer report. In our report, each customer enters the cohort only once, based on their initial paid order; subsequent orders are not treated as new entries. This analysis relies on the merchant's first-party order data and should not be confused with the default configurations of out-of-the-box analytics tools.
To accurately count customers, internal customer IDs should be reconciled across guest checkouts and registered accounts as far as possible; otherwise, a single person using multiple devices or accounts will be counted multiple times. Perform this identity resolution using minimal necessary data within internal systems, and never pass raw personally identifiable information (PII) into public-facing reports. The return criterion for this report is "the first subsequent paid, delivered, and non-returned order within the observation window." Page views, app opens, and cart additions reflect engagement, but they are not substitutes for a realized order. Even if a customer places multiple repeat orders, each individual is counted only once in the repeat purchase tally.
Observation Windows and Cancelled or Returned Orders
Before calculating conversion percentages, establish these four rules in the report’s definition:
- Measure the observation window from the exact timestamp of each customer's first purchase. A cohort whose members have not all had the full duration of this window cannot be compared with older, mature cohorts. Mark incomplete tranches as "in observation" rather than zero. Clearly specify the data cutoff date and the lag required for return and cancellation statuses to settle.
- If an initial paid order is subsequently cancelled or returned, do not quietly drop the customer from the cohort denominator; track their status separately. Similarly, a failed attempt at a repeat order does not qualify as a return; however, if that same individual later completes a valid repeat purchase within the designated window, they should be counted.
- Track coupon codes, automatic discounts, gift balances, and free shipping separately. "Without a promo code" does not inherently mean "free of financial incentives" or "at full price." To evaluate contribution margins, discount amounts and shipping costs must be assessed alongside net revenue and other operating expenses.
- Separate the incentive status of the first order from that of the first repeat order. A customer who originally purchased via a welcome code and later bought without one represents a repeat order without a code; this finding neither invalidates the impact of the initial discount nor classifies their original acquisition channel as organic.
A Hypothetical Example: A Coffee Shop's Repeat Purchase Report
Hypothetical Example: Consider an online shop selling whole-bean and ground coffee alongside container refill services. Its Farvardin cohort comprises 1,000 unique customers who placed their first paid order during that month. In this strictly illustrative scenario, every cohort member is evaluated through a 60-day window following their initial purchase, after delivery and return windows have cleared. This timeframe merely establishes a baseline for comparison in our example, not an industry-wide consumption benchmark. Each customer is classified into one of three mutually exclusive tiers based on their first qualifying repeat purchase. First-purchase discount status was logged separately, but the table below presents the cohort as a whole, without segmenting by the initial acquisition incentive.
| Repeat Purchase Behavior (Hypothetical 60-Day Window) | Unique Customers | Cohort Denominator | % of Farvardin Cohort | Category Definition |
|---|---|---|---|---|
| No qualifying repeat purchase | 650 | 1,000 | 65.0% | No valid repeat order within the window; cancelled or returned attempts alone do not count as a repurchase |
| First repeat purchase with promo code | 200 | 1,000 | 20.0% | First qualifying repeat order completed with a cart-level promo code |
| First repeat purchase without promo code | 150 | 1,000 | 15.0% | First qualifying repeat order completed without a promo code; other incentives must be audited separately |
| Total cohort | 1,000 | 1,000 | 100.0% | Every customer is counted in only one category |
Repeat Purchase Dynamics in a Hypothetical Coffee Buyer Cohort
The data is purely hypothetical and does not represent market statistics or sales forecasts. The denominator for each column is the 1,000 customers in that cohort, and the three categories collectively account for 100 percent. The absence of an order within this window does not imply definitive or permanent customer churn.
Repeat Purchase Behavior in a Hypothetical Cohort of Coffee Buyers
| Segment | Cohort percentage |
|---|---|
| No repeat | 65 |
| With promo code | 20 |
| Without promo code | 15 |
Hypothetical example: In this table, 350 out of 1,000 people—or 35 percent—made at least one qualifying repeat purchase within the 60-day window. The first repeat purchase was recorded with a promo code for 200 customers and without a code for 150 customers. Consequently, 200 out of the 350 returning buyers, or approximately 57.1 percent, used a promo code on that order. This share reflects how frequently the promo code appeared in orders; it does not demonstrate that these same individuals would not have purchased without receiving the code. The table also offers no definitive conclusions regarding their satisfaction, profitability, or retention in subsequent periods.
Correlation between discounts and purchases does not prove causation
Differences among historical cohorts may coincide with multiple concurrent changes. In research by Kohavi et al., controlled experiments are presented as a methodology for establishing causal relationships between modifications and user behavior. In contrast, a store's historical data table alone cannot isolate the impact of a discount. For instance, variations in customer acquisition channels, seasonality, product mix, inventory levels, or fulfillment quality can all correlate with repeat purchase rates. Evaluating these possibilities requires cross-referencing order logs with contemporaneous operational data; one cannot infer causality merely from percentage differences.
It is even possible that distributing the promo code was itself triggered by prior purchasing signals—such as the retailer sending codes exclusively to users who revisited a product page. In that scenario, the recipient group was fundamentally different from the outset. Distinguishing between actual behavior and stated intent remains useful, but actual purchases alone do not reveal underlying intent or causality. Thus, a discounted purchase may represent a high-value customer experience, just as an undiscounted purchase might have been influenced by another incentive entirely.
A controlled experiment to evaluate promotional offers
If a retailer wants to evaluate the impact of a new offer and possesses the infrastructure to run it reliably, it can conduct a randomized controlled trial. The study on controlled experiments emphasizes the random assignment of users to distinct variants. Each individual's group assignment must remain persistent, and outcomes must be evaluated against identical definitions and observation windows. Hypothetical framework: The following steps outline an illustrative setup for the same coffee retailer; this experiment has not been executed, and its figures are not universal benchmarks for all businesses.
- Hypothetical framework: Among opted-in customers who made their initial purchase 25 days ago and have not yet completed a qualifying repeat order, users are randomly assigned via internal IDs to two groups on a 50/50 basis. Each user remains in their assigned group throughout. Inclusion criteria and baseline parameters are established prior to allocation.
- Hypothetical framework: Both groups receive a reorder reminder with identical copy and timing. Only the treatment group also receives a 20 percent discount code valid for 7 days. This design evaluates the incremental effect of adding a promo code to the reminder, rather than the impact of the reminder versus baseline silence. Offer terms must be explicit, and existing brand commitments to customers must be upheld.
- Hypothetical framework: Repeat purchase outcomes between days 25 and 35 are measured against the total population assigned to each cohort, rather than solely those who opened the message or completed a transaction. Alongside conversion rates, net revenue after discounts, cost of goods sold (COGS), payment processing fees, shipping, and return costs are tracked to ensure that order volume gains are not mistaken for bottom-line economic improvement. This short observation window alone does not gauge long-term retention or the 60-day repeat rate shown in the table.
- Hypothetical framework: Analytical methodology, accessible sample size, observation windows, guardrail metrics, and stopping rules must be defined before launch. Avoid declaring winners based on daily volatility or preliminary indicators. If execution anomalies or customer experience degradation require termination, the shutdown and its root cause must be documented, and underpowered, incomplete tests must not be treated as conclusive.
What does this data still leave unanswered?
Even with rigorous data collection, several strategic uncertainties remain:
- The appropriate purchase window depends on the product and the customer. In our hypothetical coffee example, a 60-day window serves as an operational benchmark for comparison; the number of consumers in a household, order volume, and purchases from competing retailers can all shift the reorder cadence. A lack of orders within a specific window should not be equated with permanent churn.
- "Without a promo code" describes only a single attribute of an order. Automatic discounts, store credits, or free shipping may still apply. Without accounting for these mechanisms and their associated costs, an order cannot be deemed entirely un-incentivized, nor can order volume alone serve as a proxy for profitability.
- Small datasets and unbalanced cohorts undermine the reliability of results. Report cohort size, customer identification quality, and observation completeness alongside percentage metrics. When a robust controlled experiment or verified benchmark is unavailable, acknowledge the underlying uncertainty; an unverified, generic industry rate is no substitute.
Repeat Purchases Are Evident; The Role of Discounts Remains Unclear
At our hypothetical coffee shop, 350 out of 1,000 first-time buyers made a qualifying repeat purchase within the 60-day window: the initial reorders for 200 customers included a discount code, while 150 purchased without one. Regarding the remaining 650 customers, we know only that no such order was recorded within the timeframe. This defines the boundaries of the answer to our opening question: while repeat purchases clearly occurred, this report does not prove that promo codes caused customers to return, that purchases without codes stemmed from higher customer satisfaction, or that the business achieved sustainable profitability.
Consequently, this table alone does not provide sufficient justification to either scale or eliminate discounts across the board. Management should evaluate costs, service quality, and incentive dynamics—using the same definitions applied in this report—alongside cohort-level outcomes. If the targeted, controlled experiment described earlier can be executed with sufficient data and rigorous methodology, its findings could justify adjusting the promotional strategy. Until then, the most defensible decision is to maintain this distinction: repeat orders have been verified, but the true effect size of the discounts and the long-term persistence of this behavior remain unproven.
Related reading

Why Marketplace Inquiries Fail to Convert Into Completed Transactions
An operational playbook for tracking request-to-fulfillment drop-off in rental and service marketplaces: separating responsive capacity from listed inventory, correcting denominator bias, and pinpointing true transaction bottlenecks.

Launching a Marketplace: Should You Seed Supply or Demand First?
A practical guide to solving the chicken-and-egg problem in two-sided service marketplaces: analyzing the true bottleneck between verified capacity and committed demand, illustrated through a constrained, hypothetical test case.

The True Cost of Every Order: Calculating Contribution Margin in Online Commerce
An operational playbook for calculating order-level contribution margin and variable cost of goods sold (COGS) for e-commerce and consumer services founders, breaking down variable vs. fixed costs and demystifying hidden expense items.

Gauging True Market Demand Before Backing a Startup
An operational guide to evaluating market size and demand traction in consumer and platform startups—from verifying cohorts to separating actual demand from top-down macro claims.
Ratings & feedback
Be the first to rate this article.
Sign in to leave a comment or rating.