Sub topic 11
Where Segmentation Data Comes From
This chapter assumes you know the four bases of segmentation (demographic, geographic, psychographic, behavioural) and the typical variables inside each. It also assumes you know the basic segment criteria: measurable, accessible, substantial, differentiable. Here you learn where the data behind those variables comes from, how reliable each source is, and how to match a source to a base.
Why the source matters
A segment is only as good as the data used to draw it. A marketer can define "young urban professionals who value convenience" in one sentence. Deciding which customers actually belong to that group requires records, answers, or observations about real people. Each source has a different cost, speed, accuracy, and legal footing.
The first criterion for an effective segment is that it be measurable. Data sources are how you measure. If you cannot get data for a variable, you cannot use it as a basis, however appealing the idea is.
Primary and secondary data
Marketing research splits data into two broad kinds.
- Primary data is collected for the current question. Examples are a survey you design, interviews, or an experiment you run.
- Secondary data already exists and was collected for another purpose. Examples are census tables, industry reports, and your own sales records.
Secondary data is usually cheaper and faster, so most projects start there. Primary data costs more but can be shaped to the exact variables you need. It is often the only way to measure attitudes and values.
| Row | Primary data | Secondary data |
|---|---|---|
| Collected for | This specific question | A different purpose |
| Cost | Higher | Lower |
| Speed | Slower | Faster |
| Fit to your variables | High | Often partial |
| Typical example | Lifestyle survey | Census population tables |
First-party, second-party, and third-party data
Digital marketing adds another classification, based on who collected the data and how you obtained it.
- First-party data is data you collect directly from your own customers and audience. Examples are purchase history, website activity, app usage, loyalty-card scans, and support tickets.
- Second-party data is another organisation's first-party data, shared with you by agreement. A hotel chain might share booking patterns with an airline partner.
- Third-party data is collected by an organisation with no direct relationship to your customers and then sold or licensed. Data brokers and some survey panels supply it.
First-party data is generally the most accurate for your own customers, because it describes what they actually did with you. It is also the cheapest to keep current. Third-party data can reach people who are not yet your customers, but it is often less accurate and less up to date. It also faces growing legal and technical limits, such as consent rules and browsers restricting tracking.
Sources by segmentation base
The same source can feed more than one base, but each base has natural sources.
| Base | Common sources | Typical variables obtained |
|---|---|---|
| Demographic | Census and national statistics, registration forms, customer databases, panel surveys | Age, gender, income band, education, household size |
| Geographic | Postal addresses, delivery data, IP-based location, census regions, weather and climate records | Region, city size, population density, climate zone |
| Psychographic | Surveys, interviews, focus groups, social media listening, syndicated lifestyle studies | Values, interests, lifestyle, personality traits, attitudes |
| Behavioural | Transaction records, web and app analytics, loyalty programmes, CRM systems | Purchase frequency, spend, brand loyalty, benefits sought, occasion |
Demographic data
Demographic data is the most available. Government census and survey results are secondary data, and they are usually free. They describe whole populations, which makes them good for sizing a segment. They do not tell you which individuals are in your customer base.
Inside your own business, demographic variables come from sign-up forms, account profiles, and delivery or billing records. Customers often skip optional fields, and some fields such as income are rarely given honestly or at all. Many firms use bands ("£30,000–£49,999") because people answer a band more willingly than an exact figure.
Geographic data
Geographic data is usually the easiest to collect and the most accurate. An address or postcode is a fact, not an opinion. Delivery records, store locations, and shipping data give you addresses. Web analytics estimates location from IP addresses, which is good at country level and weaker at city level. Mobile devices can report precise location, but only with the user's permission.
Geographic data also joins well with other data. A postcode can be matched to a census area, which then supplies average income, age profile, and housing type for that neighbourhood. This is called geodemographic segmentation, and it is a common way to enrich address lists. Its weakness is that the neighbourhood average is applied to every household in it.
Psychographic data
Psychographic variables describe inner states, so you cannot read them from a database field. You have to ask or infer.
- Surveys ask people to agree or disagree with statements ("I prefer to pay more for products that last"). Answers are grouped statistically to find clusters of similar respondents.
- Interviews and focus groups give depth and the customer's own words, but only from small samples.
- Social media listening analyses public posts to find topics, tone, and interests. It is fast, but the people who post are not a random sample.
- Syndicated studies are lifestyle research products that research firms sell to many clients. They save you running your own survey but may not use categories that suit your product.
Psychographic data costs the most per respondent and goes stale as attitudes change. It is also the base where self-report is least reliable. People answer how they would like to be seen, and what they say they will do often differs from what they do.
Behavioural data
Behavioural data records what people did. Sources include point-of-sale systems, e-commerce order histories, app event logs, loyalty cards, and email click records. Because it comes from actual actions, it is usually more trustworthy than stated intentions.
Behavioural data has its own limits. It shows what happened but not why. A customer who stopped buying may have switched brand, moved house, or simply no longer needs the product. Two customers with identical purchase histories may have different motives. Behavioural data about your own customers also says nothing about people who never bought from you.
How the sources fit together
The diagram shows why a combined profile usually needs several sources. Your customer database may supply demographic, geographic, and behavioural fields. A separate survey is usually needed for psychographics. Joining them requires a shared identifier, such as a customer ID or an email address given in the survey.
A worked example
A meal-kit company wants to find a segment worth targeting. It has these questions and uses these sources.
- Who lives where? The company uses delivery postcodes from its order system (geographic) and joins them to census data on household size and age profile (demographic).
- How do customers order? The order history gives frequency, average basket size, and the day of the week (behavioural).
- Why do they order? An email survey asks customers to rate statements about cooking confidence, time pressure, and interest in healthy eating (psychographic).
- What do we link? Survey answers are matched to order history using the customer ID.
The result is a profile such as: households of two to three people in mid-sized towns, ordering weekly, who report high time pressure and low cooking confidence. No single source could have produced that description.
Building a behavioural segment from raw records
Behavioural segmentation is the easiest base to demonstrate in code, because the data is already structured. The following Python program, using only the standard library, groups customers by recency and frequency of purchase.
from collections import defaultdict
from datetime import date
today = date(2026, 11, 28)
orders = [
("c1", date(2026, 11, 20), 45.0),
("c1", date(2026, 11, 2), 30.0),
("c1", date(2026, 10, 15), 60.0),
("c2", date(2026, 6, 1), 80.0),
("c3", date(2026, 11, 10), 25.0),
("c4", date(2026, 11, 25), 20.0),
("c4", date(2026, 11, 12), 35.0),
]
history = defaultdict(list)
for customer, order_date, amount in orders:
history[customer].append((order_date, amount))
for customer in sorted(history):
records = history[customer]
count = len(records)
spend = sum(amount for _, amount in records)
days_since = (today - max(d for d, _ in records)).days
if days_since > 60:
segment = "lapsed"
elif count >= 3:
segment = "frequent"
else:
segment = "occasional"
print(f"{customer} {segment} orders={count} spend={spend:.2f} last_order_days={days_since}")Running it prints:
c1 frequent orders=3 spend=135.00 last_order_days=8
c2 lapsed orders=1 spend=80.00 last_order_days=180
c3 occasional orders=1 spend=25.00 last_order_days=18
c4 occasional orders=2 spend=55.00 last_order_days=3The thresholds (60 days, 3 orders) are assumptions. In practice you would set them from the distribution of your own data, for example by looking at how long customers typically go between orders.
Checking data quality before you segment
Before drawing segments, test the data against these questions.
- Coverage: What share of customers have a value for this variable? A field filled in for 20% of records will produce a segment that describes only those 20%.
- Accuracy: Was the value verified (a delivery address) or self-reported (an income band)?
- Recency: When was it collected? Addresses, incomes, and attitudes all change.
- Representativeness: Does the sample match the population you want to describe? Survey respondents and social media posters are often not typical.
- Consent and legal basis: Were people told how the data would be used? Rules such as the GDPR in Europe and similar laws elsewhere limit what you may collect, combine, and keep. Some categories, such as health, religion, or ethnicity, are specially protected.
Common errors
- Using census averages as individual facts. A postcode's average income does not mean each household earns that amount.
- Treating stated attitudes as behaviour. A customer who says they want sustainable products may still buy the cheapest option.
- Segmenting only on what is easy to collect. Data you already have tends to drive the choice of base, even when another base would suit the decision better.
- Merging sources with mismatched definitions. One dataset's "young adult" may mean 18–24 and another's 18–34. Check definitions before joining.
- Forgetting non-customers. Your own records cover only people who already bought. A segment you have not yet reached will not appear in them.
The next chapter examines how these data weaknesses become wider risks, including stereotyping, stale profiles, and over-segmentation.
Exercise
A fitness-app company wants to segment by "motivation for exercising" (for example health, appearance, social contact). Which base is this, which data source would you choose, and why is the app's own usage log not enough?
Show answer
Motivation is a psychographic variable (values and attitudes). The best source is primary data, such as an in-app survey or interviews, asking users to rate statements about why they exercise. The usage log is behavioural data. It shows how often and when people exercise but not why, so it can only hint at motivation. A good design links survey answers to the usage log through the user ID.
Exercise
A retailer assigns each customer the average household income of their postcode area and uses it to define a "high-income" segment. Name the type of segmentation, one benefit, and one data-quality risk.
Show answer
This is geodemographic segmentation, which joins geographic data (postcode) to demographic data (census averages). A benefit is that it enriches an address list cheaply, with no need to ask customers about income. The risk is that an area average is applied to every household in it, so many people in the "high-income" segment will not actually have high incomes, and the segment will be inaccurate.