Sub topic 6
Group keywords into clusters
This chapter assumes you have a list of keywords from seed research, you can read a search results page (SERP), and you know that each keyword has a search intent. You will group those keywords so that one page can serve each group.
Why cluster
A keyword list may hold hundreds of phrases. "running shoes", "best running shoes" and "buy running shoes" look different, but a searcher wants roughly the same page for all three. If you give each phrase its own page, the pages compete with each other. If you put unrelated phrases on one page, the page serves none of them well.
A cluster is a group of keywords that one page can satisfy. Each cluster later becomes one row in the keyword map.
Three ways to decide what belongs together
| Method | How it works | Main weakness |
|---|---|---|
| Shared words | Group phrases that contain the same terms | Splits synonyms and merges phrases that only look alike |
| Manual review | You read the list and group by judgment | Slow on large lists |
| SERP overlap | Group keywords whose search results show the same URLs | Needs SERP data for every keyword |
SERP overlap is the most reliable of the three. If Google ranks mostly the same pages for two keywords, it treats them as one topic. One page can compete for both.
SERP-overlap clustering
Pick a threshold, the minimum number of shared URLs. A common starting point is 3 of the top 10 results. A higher threshold gives tighter, smaller clusters. A lower one gives looser, larger clusters.
The function below applies that rule. A keyword joins the first cluster whose first keyword it overlaps with enough. Otherwise it starts a new cluster.
def cluster_by_serp(serps, min_shared=3):
"""Group keywords whose search results share at least min_shared URLs.
serps maps each keyword to the set of URLs ranking for it.
A keyword joins the first cluster whose first keyword it overlaps with enough.
"""
clusters = []
for keyword, urls in serps.items():
for cluster in clusters:
if len(urls & serps[cluster[0]]) >= min_shared:
cluster.append(keyword)
break
else:
clusters.append([keyword])
return clusters
serps = {
"running shoes": {"a.com", "b.com", "c.com", "d.com"},
"best running shoes": {"a.com", "b.com", "c.com", "e.com"},
"trail running shoes": {"f.com", "g.com", "h.com", "i.com"},
}
print(cluster_by_serp(serps))
# [['running shoes', 'best running shoes'], ['trail running shoes']]"running shoes" and "best running shoes" share three URLs, so they form one cluster. "trail running shoes" shares none, so it gets its own.
The first keyword of each cluster acts as the anchor. Order matters, so sort your keywords by volume, highest first. Then the most important phrase anchors each cluster.
Check clusters against intent
Overlap alone can mislead. Two keywords may share URLs because a few large sites rank for everything. Review each draft cluster with the intent labels from the earlier chapter:
- Split a cluster that mixes informational and commercial intent, such as "how to choose running shoes" and "buy running shoes".
- Check that the page type fits. A cluster whose results are all category pages needs a category page, not an article.
- Move any phrase that does not fit the cluster's topic.
Common errors
- Threshold too low. Broad sites with generic results merge unrelated topics. Raise
min_shared. - Threshold too high. Near-duplicates end up in separate clusters, and later you create competing pages.
- Stale SERP data. Results change. Re-collect them before you trust old clusters.
- Comparing only to the anchor. The function above is simple and order-dependent. A keyword may be closer to a later member than to the anchor. For large lists, use a tool with a stricter method, and still review by hand.
Exercise
Keywords "trail shoes" and "off-road running shoes" share 5 of their top 10 URLs, but "trail shoes" shows mostly product pages and "off-road running shoes" shows mostly articles. Do you put them in one cluster? Explain.
Show answer
Not without review. The URL overlap suggests one topic, but the different result types suggest different intent (commercial versus informational). Keep them separate, or confirm by checking which page type dominates the combined results, before you assign one page to both.
Exercise
With min_shared=3, what happens to the clusters if you lower the value to 1, and why is that risky?
Show answer
More keywords join existing clusters, so clusters become larger and looser. It is risky because a single shared URL, such as a large retailer ranking for many terms, can merge unrelated topics onto one page.