
Customer retention grows repeat sales when you build it on your own numbers and then contact each customer at the moment they are likely to need you again. Three figures from your order export get you started: average order value, purchase frequency and gross margin. From them you get customer value and the share of customers who come back, which tells you how much any loyalty offer is worth paying for.
Next comes a written post-sale plan of six messages: a thank-you, a delivery check, a usage tip, a review request, a replenishment reminder timed to when the product runs out, and a win-back message for people who have gone quiet. Each one goes out on the channel that suits it, with the customer's consent, within WhatsApp's rules and the data protection laws of Egypt and Saudi Arabia. We checked every source on 27 November 2026; policies change, so confirm them when you set things up.
Work out customer value from your orders
Customer value is the profit a customer leaves you over the whole relationship, and you can calculate it from the last 12 months of orders. The order export from your store or sales system is enough. Here is a hypothetical example for a store selling coffee beans, in whatever currency you sell in:
| Figure | How to calculate it | In the hypothetical example |
|---|---|---|
| Average order value (AOV) | Total sales divided by the number of orders | 1,200,000 over 4,000 orders = 300 |
| Purchase frequency | Orders divided by distinct customers | 4,000 over 2,500 customers = 1.6 orders a year |
| Gross margin | Sales minus cost of goods, divided by sales | 40% |
| Profit per customer per year | AOV times frequency times margin | 300 times 1.6 times 40% = 192 |
| Simple customer lifetime value (CLV) | Yearly profit times the years a customer stays | 192 times 2 years = 384 |
The years a customer stays is the weakest number in that table because it is a guess. If you have less than two years of data, use one year. A smaller figure stops you paying for value that never arrives.
Take sales net of VAT and returns, and count only orders that were actually delivered. In Egypt this matters a lot: refused cash-on-delivery orders inflate the order count and hide the real margin. If you pay for shipping and payment fees, take them out of the margin too, as in why ROAS alone is not enough.
Then put customer value next to what you pay to win a new customer. If acquisition cost in our example is 250, a customer only covers it in their second year. The full method is in how to calculate and lower your customer acquisition cost. Every second order from an existing customer brings that payback closer without new ad spend.
Pull your repeat purchase rate from the order file
Repeat purchase rate is the number of customers who bought two or more times, divided by all customers in the same period. In a spreadsheet:
- Export orders with order number, date, customer phone or email, status and total.
- Remove cancelled, refused and returned orders.
- Put every phone number in one format, starting with the country code and with no spaces. In cash-on-delivery stores the phone number is often the only customer ID, and one number typed two ways turns one customer into two.
- Build a pivot table with customers as rows, and as values the count of orders, the earliest date, the latest date and the total spent.
- Count the customers with two or more orders and divide by all customers.
In the hypothetical example, 700 of 2,500 customers bought more than once, a rate of 28%.
One common mistake pushes the figure down. Someone who placed a first order last week has had no time to come back. So measure a single cohort, the customers whose first order was 3 to 12 months ago, and track it each quarter.
Add one more figure, because it sets the timing of everything else: the gap between first and second order. Work it out for repeat customers and take the median, the middle value once the list is sorted, so one customer who came back after a year does not skew it. Say the median in our example is 35 days.
Segment customers into new, repeat and lapsed
Segments let you send each customer a message that fits them instead of one blast to the whole list. Add a column for days since last order to the pivot table and label each customer. This split uses the 35-day median from the example; swap in your own:
| Segment | Definition in the example | Goal | Key message |
|---|---|---|---|
| New | One order, last order within 35 days | A second order | Usage tip, then a replenishment reminder |
| Repeat | Two or more orders, last order within 70 days | Keep them | Reminder when the product runs out, early access to new products |
| Lapsed | No order for more than 70 days, twice the usual gap | Learn why and win them back | Ask what happened, then a limited offer if needed |
Customers who bought once and have not returned after 70 days count as lapsed, but they get a different message. Ask about that first experience, because the problem is usually the product or the delivery.
A spreadsheet works up to a few thousand customers if you refresh it weekly. Store platforms can do the same split. In Shopify you build a segment from the customer segments page using a template or your own filters, with order count and amount spent as columns. In Salla, customer groups can add customers automatically by number of orders or total purchases, and each group can have its own payment methods and shipping companies.
If your sales team follows up by phone and customers slip through, the signs that a spreadsheet is no longer enough are in when does your company need a CRM.
A post-sale retention plan with timing for each message
The plan is six messages, each with one job and a set time. The timings below are a working suggestion; adjust them to the gaps between orders in your data. The template category column applies to WhatsApp and is explained in the next section:
| Message | When | Best channel | WhatsApp template category | What it says |
|---|---|---|---|---|
| Thank-you and order confirmation | Right after the order | WhatsApp or email | Utility | Order number and expected delivery date |
| Delivery check | A day after delivery | Utility, since it concerns a specific order | Did it arrive in good shape, and who to contact if not | |
| Usage tip | 3 to 5 days later | Usually marketing | One way to get the best result from the product | |
| Review request | 7 to 14 days later | Email or WhatsApp | Utility only if tied to that order | The review link, sent to every customer |
| Replenishment reminder | A few days before the product runs out | WhatsApp or SMS | Marketing | The same product with a direct order link |
| Win-back | After twice the usual gap with no order | Email, then WhatsApp | Marketing | Ask why, then a time-limited offer |
The replenishment reminder does more than any other message in the plan, and most store owners skip it. Its timing comes from the product cycle: how long one pack lasts. Get it from your data as the median gap between two orders of the same product, then send the reminder three or four days earlier. In the coffee example, a 30-day median for the same bag puts the reminder on day 26 or 27.
Give each message one job. Keep discounts out of the delivery check: a customer whose parcel arrived damaged does not want an offer, and WhatsApp reclassifies a template that mixes service with promotion as marketing.
For review requests, Google's content policy bans rewards such as discounts or gifts in exchange for reviews, and bans asking only happy customers. Send the request to everyone who received an order. Message templates and how to get your review link are in how to ask for Google reviews and respond.
These messages repeat with every order, so they are good candidates for automation straight from the order system. What suits an automatic reply on WhatsApp and what should stay with your team is covered in what to automate in WhatsApp Business and what to leave to people, and how to pick a first automation project in where to start with business process automation.
WhatsApp, email and SMS rules to check before you send
Each channel has rules on who you may contact and how, and WhatsApp has the strictest. The WhatsApp Business Messaging Policy, last updated on 23 September 2026, requires that the person gave you their number and opted in to your messages, and that you honour any request to stop, whether it comes on WhatsApp or anywhere else. Meta's opt-in guidance says the opt-in must name your business clearly and state that the person is agreeing to messages from it, and recommends a separate opt-in for each category of message.
- Template categories: according to Meta's template category guidelines, a utility template is non-promotional and triggered by something the customer did, such as an order confirmation, a shipping update or a survey about a specific order. A general request for feedback is not approved as utility. Offers, discount codes and abandoned-cart reminders are marketing.
- Cost: Meta charges for each delivered message, at a rate set by the message category and the recipient's country code, per its pricing page. Since 1 October 2026, utility messages sent in reply to a customer are charged again.
- Per-user marketing limits: WhatsApp may cap how many marketing templates one person receives from all businesses, based on how they engage, according to the per-user limits page. A message blocked this way fails with error code 131049, and the page advises waiting 24 hours before resending.
In practice, send the replenishment reminder only to customers whose date is close, never to the whole list on the same day. A reminder that lands on time gets read; a blast uses up the customer's attention and you pay for every delivery.
Email is the cheapest channel for longer content such as usage tips. Google's sender guidelines require everyone sending to Gmail accounts to set up SPF or DKIM and keep reported spam below 0.3%, ideally below 0.1%. Anyone sending more than 5,000 messages a day also needs DMARC, one-click unsubscribe and a visible unsubscribe link in the body.
SMS is short and works for reminders to customers who do not use WhatsApp. In Saudi Arabia it is governed by the CST's Regulations for Curbing Spam Messages and Calls, approved by decision 493/1444 on 17 October 2022, and messages go through a licensed provider under a registered sender name, so ask your provider about the rules for promotional messages. In Egypt, a marketing text falls under the electronic marketing rules of the data protection law covered below.
Loyalty and referral offers and what they cost your margin
Every discount comes out of your margin, so before you offer one, work out how many extra orders it needs to pay for itself. The formula: the extra orders needed equal the discount divided by margin minus discount. With the 40% margin from the hypothetical example:
| Discount | Profit on a 300 order after the discount | Extra orders needed to break even |
|---|---|---|
| 5% | 105 instead of 120 | 14% |
| 10% | 90 | 33% |
| 15% | 75 | 60% |
| 20% | 60 | 100%, double the orders |
Those extra orders have to come from customers who would not have bought without the discount. Anyone who was going to reorder anyway has simply taken profit off the table.
So I always start with a reminder and no discount, then test the discount on half of the lapsed segment and keep the other half as a control group that never sees the offer. After a month, compare orders between the two halves. The difference is what the discount really did.
Points programmes work the same way. If customers earn points worth 5% of what they spend, the most they can cost is 5% of sales, which is 12.5% of gross profit at a 40% margin. The real cost depends on how many points get redeemed, so track redemptions monthly.
Referrals are easier to judge. If you give the existing customer 30 and the friend 30 off a first order, the new customer costs 60, and their first order still earns 90 after the discount instead of 120 in our example. Compare that 60 with your acquisition cost from ads. If it is lower, referrals are an acquisition channel worth growing.
Consent and data protection in Egypt and Saudi Arabia
Both countries require consent before marketing messages, an easy way to stop them, and a record that proves consent. What follows is general information from the official texts, not legal advice.
- Egypt: Personal Data Protection Law No. 151 of 2020 was issued in 2020, as the Ministry of Communications reports. Article 17 bans electronic direct marketing unless there is prior consent, the sender is clearly identified with a valid address, the message says it is marketing, and there is an easy way to opt out. Article 18 requires the sender to keep consent records for three years from the last message, per an unofficial English translation of the law.
- Saudi Arabia: Article 25 of the Personal Data Protection Law requires the recipient's consent to advertising material and a clear way to stop it. Article 28 of the Implementing Regulations adds that consent is required where there has been no prior dealing with the recipient, and asks for the sender's name to be shown clearly, an opt-out that is free and at least as easy as opting in, stopping as soon as asked, and keeping proof of consent.
In practice, add a marketing consent checkbox at checkout, separate from the terms and not ticked in advance. Give your customer sheet three columns: consent, its date and its source. When someone withdraws, remove them from every marketing segment the same day; order messages such as confirmations and shipping updates carry on. If you work in health or finance, talk to a lawyer before launch.
Your next step
This week, export the last 12 months of orders and work out the five figures in the first table, the repeat purchase rate for one cohort, and the median gap between first and second order. Then write the six messages and start with two: the delivery check, and the replenishment reminder for customers who have opted in. Two months later, recalculate the rate and compare it with your first figure.
This plan is one stage of a wider marketing sequence, set out in where to start with digital marketing for your company. If you want post-sale messages wired to your order system so they go out on time without manual work, that is what PlanKit's business automation service does. For a marketing plan that covers both winning and keeping customers, see the digital marketing service or the digital marketing solutions page.