BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
Data Science

Cluster analysis: What it is and how SEOs use it

Cluster analysis sorts items such as customers or keywords into groups of similar ones, with no groups given in advance. SEOs use it to plan pages.

Monthly searches · cluster analysis
12.1k
Keyword research data
cluster analysis
Cluster analysis: What it is and how SEOs use it
Click the image to view it full size

Cluster analysis (or clustering) is a way of finding groups in data that nobody has labeled. You describe each item with a few measurable features, choose how to measure similarity, and an algorithm puts similar items together and different items apart. The items can be customers, products, pages or keywords.

The key word is "unlabelled". In classification, you start with known groups ("spam" and "not spam") and teach a model to sort new items into them. In cluster analysis, you don't know the groups yet. The method suggests them, and you decide whether they mean anything.

How the algorithm decides what is similar

Every clustering method needs two choices from you:

  • The features. What describes each item? For customers that might be order count and average spend. For keywords it might be the words themselves, their meaning, or the pages that rank for them.
  • The distance. How far apart are two items? Most methods treat features as coordinates and measure the distance between points.

Features on very different scales distort that distance. If one feature is yearly spend (in thousands) and the other is visits per month (under 20), spend decides almost everything. Scale the features to comparable ranges before you cluster.

The main methods and when to use them

If your situation is... A good starting method What to know
You can guess how many groups you want K-means You must set the number of clusters. It works best when groups are roughly round and similar in size.
You want to see how groups nest inside each other Hierarchical clustering It builds a tree (a dendrogram) by merging or splitting groups step by step. You cut the tree at the level that makes sense.
Groups have odd shapes, and some items fit nowhere DBSCAN (density-based) It finds dense areas of any shape and leaves isolated items out as outliers instead of forcing them into a group.

The scikit-learn clustering guide compares these and other methods side by side, with the assumptions each one makes.

How to check that the clusters are real

An algorithm always returns groups, even for random data. So the result needs testing before you act on it.

Start with a number. The silhouette score compares how close each item is to its own cluster with how close it is to the next nearest one. It runs from -1 to +1: values near +1 mean tight, well-separated groups, and values around 0 mean the groups overlap. Try several cluster counts and compare the scores.

Then apply the human test. Can you give each group a plain name, such as "one-time buyers" or "pricing questions"? Would you treat each group differently? If two clusters would get the same treatment, merge them. If you can't describe a cluster, it's probably noise.

Finally, re-run the analysis when your data changes. Customer behavior and search results both shift over time.

Where cluster analysis shows up in SEO

The most common use is keyword clustering: grouping a long keyword list so that each group becomes one page. Say you have "running shoes for flat feet", "best shoes for flat feet running" and "flat feet trainers". These are one need, so one page should answer them. Writing three separate pages would split your effort and invite keyword cannibalization, where your own pages compete for the same searches.

Two kinds of similarity are common for keywords:

  • Meaning. Keywords are turned into numeric vectors (embeddings) that place similar phrases close together, the idea behind vector search.
  • Shared search results. If two keywords show many of the same pages in the top results, searchers probably want the same thing.

Clusters also help with site structure. A set of related clusters can become a hub page with supporting articles, which is how many sites build topical authority and plan around semantic SEO.

Outside search, marketers cluster customers into segments by behavior, then write different emails, offers or landing pages for each segment.

Limits to keep in mind

  • The output depends on your inputs. Different features, scaling or methods give different groups. There is no single correct clustering.
  • The number of clusters is a choice. Scores help, but the final count should match what you can actually act on.
  • Clusters describe, they don't explain. A cluster of high-spending customers tells you who they are, not why they spend. Use it as a starting point for questions.
Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.