Sub topic 10
Segmenting data by period, source, and cohort
This chapter assumes you can read the headline numbers on your Udemy or Teachable dashboard: visitors, conversion rate, enrollments, net revenue, and completion rate. It also assumes you can do percentage arithmetic. If those terms are unfamiliar, review the earlier chapters on metric vocabulary and traffic and conversion first.
Why totals hide the story
A single all-time number blends very different situations. A 3% conversion rate might mean every source converts at about 3%. It might also mean one source converts at 12% and another at 1%. The total gives you no basis for deciding what to change.
Segmenting means splitting one metric into groups and comparing the groups. Three splits cover most of what a course creator needs:
- Period: the same metric across different time windows.
- Source: the same metric for visitors or students who arrived by different routes.
- Cohort: the same metric for groups of students who enrolled at the same time.
Segmenting by period
Both platforms let you choose a date range on their reports. Udemy's performance views offer preset and custom ranges. Teachable's reports have date filters, though which reports and filters you get depends on your plan. Check what your account offers rather than assuming.
Useful period comparisons:
- This period against the previous period of equal length. Compare 28 days with the prior 28 days. Unequal lengths make totals misleading, so compare rates or per-day averages when lengths differ.
- This period against the same period last year. This is the only comparison that controls for seasonality, which a later chapter covers in detail.
- Before and after a change. Compare the 4 weeks before a new title, price, or promotion with the 4 weeks after.
Align periods to whole weeks where you can. Weekend traffic often differs from weekday traffic, so a window of 10 days can contain two weekends in one period and one in the other.
Segmenting by source
A traffic source is the route a visitor took to your course page. The labels differ by platform and by how your account is set up.
| Aspect | Marketplace (Udemy) | Own school (Teachable) |
|---|---|---|
| Typical source groupings | Platform-driven traffic (search, recommendations, platform promotions) and traffic you brought yourself (instructor links, coupons) | Direct visits, referrals, and channels you set up, such as email, ads, or affiliates |
| Who controls the traffic | Mostly the platform's own discovery system | Mostly you |
| Depth of source detail | Grouped categories; you often cannot see individual visitor paths | Depends on plan, tracking, and integrations you configure |
| Revenue meaning of a source | Revenue share often depends on how the student arrived | You keep the sale price minus fees |
Confirm the exact labels and revenue rules in your own account, because they change over time.
Source segmentation matters because sources differ in both volume and quality. A source with few visitors and a high conversion rate may deserve more effort than a large source that converts poorly. Volume tells you where the traffic is. Rate tells you how well each source converts. Revenue per visitor combines both.
A worked source comparison
The script below takes figures a creator might copy from a traffic report and computes conversion and revenue per visitor for each source.
sources = [
{"source": "Search", "visitors": 700, "enrollments": 21, "revenue": 315.00},
{"source": "Email list", "visitors": 100, "enrollments": 12, "revenue": 150.00},
{"source": "Social", "visitors": 400, "enrollments": 4, "revenue": 40.00},
]
total_visitors = sum(s["visitors"] for s in sources)
total_enrollments = sum(s["enrollments"] for s in sources)
print(f"Overall conversion: {total_enrollments / total_visitors:.1%}")
for s in sources:
conversion = s["enrollments"] / s["visitors"]
per_visitor = s["revenue"] / s["visitors"]
share = s["visitors"] / total_visitors
print(
f"{s['source']:<11} traffic share {share:>4.0%} "
f"conversion {conversion:>5.1%} revenue/visitor {per_visitor:.2f}"
)It prints:
Overall conversion: 3.1%
Search traffic share 58% conversion 3.0% revenue/visitor 0.45
Email list traffic share 8% conversion 12.0% revenue/visitor 1.50
Social traffic share 33% conversion 1.0% revenue/visitor 0.10The overall figure of 3.1% looks healthy. The breakdown shows that your email list produces more than three times the revenue per visitor of search, and social produces very little. A reasonable next step is to grow the email list. Another is to check whether social visitors are the wrong audience for the course page.
Segmenting by cohort
A cohort is a group of students who share a starting point, most often the month they enrolled. Cohorts answer questions about behavior over time, such as whether students who joined after you rewrote the first section progress further than earlier ones.
Cohort analysis usually needs an export, because dashboards rarely group students this way. Column names vary by platform and plan, so check your own file. The example assumes columns for an enrollment date and a progress percentage.
import csv
import io
from collections import defaultdict
raw = """student_id,enrolled_on,progress_percent
s1,2026-08-03,100
s2,2026-08-15,60
s3,2026-08-20,100
s4,2026-09-02,30
s5,2026-09-11,0
s6,2026-09-25,100
s7,2026-09-28,10
s8,2026-09-30,0
"""
cohorts = defaultdict(lambda: {"enrolled": 0, "completed": 0})
for row in csv.DictReader(io.StringIO(raw)):
month = row["enrolled_on"][:7]
cohorts[month]["enrolled"] += 1
if float(row["progress_percent"]) >= 100:
cohorts[month]["completed"] += 1
for month in sorted(cohorts):
c = cohorts[month]
rate = c["completed"] / c["enrolled"]
print(f"{month}: {c['enrolled']} enrolled, {c['completed']} completed, {rate:.0%}")It prints:
2026-08: 3 enrolled, 2 completed, 67%
2026-09: 5 enrolled, 1 completed, 20%The September cohort looks much worse. Before concluding that something went wrong, check the age of each cohort. If you exported this on September 30, the August students have had one to two months to finish and the September students have had days. Comparing cohorts fairly means comparing them at the same age, for example "progress 30 days after enrollment". Many exports do not include that directly, so you may need to filter to students who have been enrolled for at least that long.
Combining segments carefully
Each extra split divides your data into smaller groups. A creator with 36 enrollments in a month who splits by three sources and two price points ends up with groups of around 6 students. Percentages computed from groups that small mostly show noise.
A practical approach is to segment one dimension at a time and to go deeper only when the group is large enough to support it. As a rough working rule, treat a group with fewer than 30 to 50 observations as a hint to investigate, not as a result. This is a judgment threshold, not a statistical guarantee. The chapter on common traps covers sample size in more detail.
When you do combine splits, use a meaningful pair. Source by period is useful for seeing whether a drop in enrollments came from one channel. Source by cohort shows whether students from a particular channel finish more often.
A routine for segmenting
- Start with a question. For example: "Why did enrollments fall last month?" A question tells you which split to use.
- Check the totals first. Confirm visitors, enrollments, and revenue for the period, so you can verify your segments add up to them.
- Split by one dimension. Compare rates and counts for each group.
- Verify the sums. If the sources do not add up to the total, some traffic is likely grouped under an "other" or "unknown" label. Note it rather than ignoring it.
- Check group sizes. Mark any group too small to trust.
- Write down the finding and the next test. A finding like "Email converts at 12%" leads to a next step, such as sending to the list again.
Common mistakes
- Mixing up counts and rates. A source can have the most enrollments and the lowest conversion at once.
- Comparing unequal periods. A 31-day month against a 28-day month changes every total.
- Ignoring that sources overlap. A student may visit from social media, then return through search and enroll. Platforms usually credit one source, so source totals reflect the platform's attribution rule, not a full account of what influenced the sale.
- Treating cohorts as equal in age. See the cohort section above.
- Segmenting until nothing is left. Small groups tell you little.
Exercise
A creator sees 2,000 visitors and 60 enrollments in a month, an overall conversion of 3.0%. By source, Search has 1,500 visitors and 36 enrollments, and Social has 500 visitors and 24 enrollments. Which source converts better, and what is each source's conversion rate?
Show answer
Search converts at 36 / 1,500 = 2.4%. Social converts at 24 / 500 = 4.8%. Social converts better, even though Search brings three times as many visitors and more total enrollments in this case. The two groups add up to the totals (2,000 visitors, 60 enrollments), which confirms nothing is missing.
Exercise
A creator compares two enrollment cohorts exported on the same day. The cohort that enrolled 3 months ago shows 55% completion. The cohort that enrolled 5 days ago shows 4% completion. The creator concludes that a recent change to the course made it worse. What is wrong with this conclusion, and how should the comparison be made fairer?
Show answer
The cohorts are at different ages. Students who enrolled 5 days ago have had very little time to finish, so low completion is expected whatever the course quality. A fairer comparison measures both cohorts at the same age, such as progress 30 days after enrollment, and leaves out students who have not yet been enrolled that long. The creator should also check the size of each cohort before reading much into the percentages.