Sub topic 2
Segment the audience for the season
What this chapter assumes
You should know basic marketing vocabulary (impressions, clicks, conversions, CTR). You should also know how paid search and social ads are bought, have sent a promotional email, and be able to read a web analytics report. The code uses plain Python with no extra libraries.
This chapter follows the goals and KPIs you set for the fixed window. It comes before the message and the channel roles, because both depend on knowing who you are talking to.
Why a seasonal campaign needs its own segments
A seasonal campaign has a hard end date. Evergreen campaigns can spend weeks learning who responds. A seasonal one cannot, so you decide up front which groups get which treatment.
Segmentation here has three jobs:
- Focus the budget. You spend where the goal is most reachable, not evenly across everyone.
- Fit the message. A loyal customer and a first-time visitor need different offers and different reasons to act.
- Pick the channel. Some groups are only reachable on some channels. A person who never opted in to email cannot receive your sequence.
Keep the number of segments small. Every segment needs its own message, creative, and reporting line. Three to five segments is workable for one team in one season. Ten is not.
Choose dimensions that you can act on
A dimension is only useful if you can both measure it and target it. Check both before you adopt it.
| Dimension | Example values | Measurable from | Targetable in |
|---|---|---|---|
| Relationship to you | prospect, first-time buyer, repeat buyer, lapsed | CRM, order history | Email (direct), social (custom audiences), search (customer match lists) |
| Recency and frequency | bought in last 90 days, 3+ orders | Order history | Email, social |
| Intent | searched "winter coat sale" | Search query data | Search keywords |
| Purchase purpose | for self, gift | Survey, past basket, query wording | Search keywords, message |
| Demographics and location | age band, region | Analytics, ad platform | Social, search location settings |
| Engagement | opened last 5 emails, never opened | Email platform |
Two cautions apply.
First, demographics are easy to target but often weak predictors of buying. Behavior (what someone did) usually separates segments better than attributes (who someone is).
Second, a dimension you can measure but not target is still useful for reporting. A dimension you can target but not measure is dangerous, because you cannot tell whether it worked.
Typical seasonal segments
Most seasonal campaigns for a retail or subscription business use a variation on this set.
- Loyal customers. Frequent, recent buyers. They need early access or a reward, not a deep discount. Discounting them gives away margin they would have paid anyway.
- Recent buyers. Bought once or twice lately. The goal is a second purchase. Cross-sell and complementary products work well.
- Lapsed customers. Bought before but not within your lapse window. They need a reason to return, and a stronger offer is often justified.
- Prospects. Know you or your category but have not bought. This group is the largest and the least certain.
- Seasonal gift buyers. Often a different person from your usual customer, shopping for someone else. They search with different words ("gift for dad under 50") and care about delivery dates.
You do not have to use all five. A business with a small customer file may collapse 1 to 3 into "existing customers" and keep prospects and gift buyers separate.
Build the segments from your own data
Define each segment with a rule that anyone on the team can read and reproduce. If two people apply the rule to the same file, they should get the same list.
The script below assigns each customer to one segment and counts how many in each can be reached by email. The reference date is fixed so that the output is the same every time you run it.
from collections import Counter
from datetime import date
TODAY = date(2026, 11, 26)
RECENT_DAYS = 180
customers = [
{"id": "c1", "orders": 4, "last_order": date(2026, 10, 20), "email_optin": True},
{"id": "c2", "orders": 1, "last_order": date(2026, 9, 15), "email_optin": True},
{"id": "c3", "orders": 2, "last_order": date(2025, 12, 2), "email_optin": True},
{"id": "c4", "orders": 0, "last_order": None, "email_optin": False},
{"id": "c5", "orders": 5, "last_order": date(2026, 11, 1), "email_optin": True},
{"id": "c6", "orders": 1, "last_order": date(2026, 2, 10), "email_optin": False},
]
def assign_segment(customer, today=TODAY):
if customer["orders"] == 0 or customer["last_order"] is None:
return "prospect"
days_since = (today - customer["last_order"]).days
if days_since > RECENT_DAYS:
return "lapsed"
if customer["orders"] >= 3:
return "loyal"
return "recent"
totals = Counter()
email_reachable = Counter()
for c in customers:
seg = assign_segment(c)
totals[seg] += 1
if c["email_optin"]:
email_reachable[seg] += 1
for seg in sorted(totals):
print(f"{seg}: total={totals[seg]} email={email_reachable[seg]}")
# lapsed: total=2 email=1
# loyal: total=2 email=2
# prospect: total=1 email=0
# recent: total=1 email=1The order of the checks in assign_segment matters. Lapsed is tested before loyal, so a customer with many old orders is lapsed, not loyal. Writing the rules as a strict sequence guarantees that each person lands in exactly one segment.
The output shows a common pattern. The lapsed group has two people but only one is reachable by email. For that group, paid social with a customer list, or search, may have to carry more of the load.
Match segments to channels
Segments connect to channels through reach and role. Reach is whether you can address the group on that channel at all. Role (covered in a later chapter) is what the channel is best at. For now, record reach.
| Segment | Paid social | Search | |
|---|---|---|---|
| Loyal | Strong (opted in, high open rate) | Exclusion or light reminder | Brand terms only |
| Recent | Strong | Retargeting, product-based | Brand and product terms |
| Lapsed | Partial (opt-in gaps) | Customer-list audience | Brand terms, returning-visitor adjustments |
| Prospects | Not available (no opt-in) | Interest and lookalike audiences | Generic and category terms |
| Gift buyers | Not available unless subscribed | Interest-based, gift-themed | Gift-intent terms |
Treat this as a hypothesis. Your data may show that lapsed customers respond better to social than to email, and you can change the table.
Size, overlap, and suppression
Check three practical issues before you hand segments to the next step.
Size. A segment must be large enough to produce measurable results within the window. If you expect 200 sends and a 2% conversion rate, you will see about four conversions. That is too few to compare against anything. Merge small segments or report them together.
Overlap. The same person can be in a customer list on social, search for your brand on Google, and receive your email. Because your segments are mutually exclusive in your own data, this is mainly a platform problem. Ad platforms build audiences on their own, and a loyal customer can still fall inside a broad prospecting audience. Upload your customer list as an exclusion to keep paying for prospecting from reaching existing buyers.
Suppression. Decide who must not receive a message. Common suppression rules:
- Anyone who bought in the last few days, so they do not get a "last chance" email right after purchasing.
- Anyone who has unsubscribed or never opted in to email. Respect your consent records and applicable privacy rules.
- Anyone on a customer-support escalation.
Write suppression rules next to the segment rules, not as an afterthought.
Common errors
- Too many segments. Each one multiplies creative and reporting work. If you cannot name the different message each segment gets, merge it.
- Overlapping rules. If a person can be both "recent" and "lapsed," your counts will not add up to your customer total. Test that segment sizes sum to the full list.
- Using last year's lists unchanged. Recency definitions go stale. Recompute segments at the start of the campaign, and again before each major send if the window is long.
- Segmenting only on attributes. Age and city are easy to pick but rarely drive purchase timing. Add at least one behavior-based dimension.
- Ignoring prospect intent. Search queries show what people want right now. A "gift" searcher and a "replacement" searcher need different pages and offers.
- Not tying segments to the KPI. If your goal is new-customer revenue, loyal customers should receive little paid spend. If your goal is total revenue, they matter much more. Refer back to the goals you set earlier.
What you hand to the next chapter
By the end of this step you should have:
- A short list of segments, each with a written rule.
- A size for each segment, including how many can be reached by email.
- A reach table showing which channels can address which segment.
- Suppression rules.
The next chapter uses this to write one core message and offer, with a variation per segment where it matters. The channel-roles chapter after that uses the reach table to decide what each channel is for.
Exercise
Your customer file has 1,000 people. Using the rules in this chapter, 120 are loyal, 180 are recent, 400 are lapsed, and 300 are prospects. Only 35% of lapsed customers have opted in to email. Your goal is to win back lapsed customers within the window. How many lapsed customers can the email sequence reach, and what should you do about the rest?
Show answer
35% of 400 is 140 lapsed customers reachable by email. The other 260 cannot receive the email sequence, so cover them through another channel: upload them as a customer-list audience on paid social, and make sure search has brand and returning-customer terms that capture them when they look for you. Also check that the four groups add up to 1,000 (120 + 180 + 400 + 300 = 1,000), which confirms the rules do not overlap.
Exercise
A teammate proposes splitting the audience into 12 segments by age band and region. Name two problems with this and one alternative.
Show answer
Problem one: each segment needs its own message and reporting, which a small team cannot sustain in a fixed window. Problem two: age and region are attributes, not behavior, and may not predict purchase timing, while small segments produce too few conversions to compare. Alternative: use 3 to 5 behavior-based segments (such as loyal, recent, lapsed, prospects, gift buyers) and apply region or age only as targeting filters where the platform supports them.