Sub topic 5
Find Keyword Cannibalization
What this chapter assumes
You can open the Performance report in Google Search Console and filter by query and page. You can read a CSV file and run a short Python script. You have already built a content inventory and checked whether a traffic drop is real, as covered in earlier chapters. This chapter produces a list of cannibalization candidates for the decision framework in the next chapter.
What cannibalization is
Keyword cannibalization means two or more URLs on your site compete for the same query, and the search engine has to pick between them. Search Console does not report it as an error. You infer it from data.
Several URLs ranking for one query is not automatically a problem. A site can legitimately hold two results on one results page, and a guide and a product page can serve different needs behind the same words. The real problem is that the pages are interchangeable for the searcher. The signals are then split, and Google may swap which URL it shows from week to week.
Typical symptoms:
- The ranking URL for an important query changes over time, and average position moves up and down with it.
- Neither page reaches the top results, although the topic is well covered on the site.
- Internal links and external links point to different pages about the same subject.
- A newer, thinner page outranks the older, stronger page.
Get query and page data together
You need rows that pair a query with the page that received impressions for it. The Search Console interface can show this one query at a time. Filter by query, then open the Pages tab. For a whole site, use the Search Console API or a Looker Studio export, because the interface export is capped at about 1,000 rows. Export these columns: Query, Page, Clicks, Impressions.
Use a date range of at least 3 months, so seasonal swings and one-off ranking tests do not dominate. Remember that Search Console omits some anonymized queries, so your totals will be slightly lower than the real numbers.
A first-pass script
This script lists every query for which more than one URL received clicks.
import csv
from collections import defaultdict
# CSV exported from Search Console with columns: Query, Page, Clicks, Impressions
clicks_by_query = defaultdict(lambda: defaultdict(int))
with open("gsc_query_page.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
clicks_by_query[row["Query"]][row["Page"]] += int(row["Clicks"])
for query, pages in clicks_by_query.items():
if len(pages) > 1:
ranked = sorted(pages.items(), key=lambda item: item[1], reverse=True)
print(query)
for page, clicks in ranked:
print(f" {clicks:>5} {page}")The += matters. If your export has one row per query, page and date, or per device and country, the script adds them up per query and page pair.
This version has two weaknesses. Filtering on clicks hides pages that show up in results but rarely get clicked, and those are often the pages that dilute your main page. It also reports noise: a URL with 2 impressions for a query is not a competitor.
A better filter: impressions and share
Use impressions to detect competition and set a minimum share so that trivial URLs drop out.
import csv
from collections import defaultdict
MIN_QUERY_IMPRESSIONS = 100 # ignore rare queries
MIN_PAGE_SHARE = 0.10 # a page needs 10% of the query's impressions
stats = defaultdict(lambda: defaultdict(lambda: {"clicks": 0, "impressions": 0}))
with open("gsc_query_page.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
entry = stats[row["Query"]][row["Page"]]
entry["clicks"] += int(row["Clicks"])
entry["impressions"] += int(row["Impressions"])
for query, pages in stats.items():
total_impr = sum(p["impressions"] for p in pages.values())
total_clicks = sum(p["clicks"] for p in pages.values())
if total_impr < MIN_QUERY_IMPRESSIONS:
continue
contenders = [
(url, p) for url, p in pages.items()
if p["impressions"] >= MIN_PAGE_SHARE * total_impr
]
if len(contenders) < 2:
continue
contenders.sort(key=lambda item: item[1]["impressions"], reverse=True)
print(f"{query} ({total_clicks} clicks, {total_impr} impressions)")
for url, p in contenders:
print(f" {p['clicks']:>5} clicks {p['impressions']:>7} impr {url}")Sort the output by total impressions before reviewing it, so you spend your time on queries that matter. Tune both thresholds to your site's size. A small site may need 20 impressions and a 20% share.
Triage each candidate
A flagged query is a candidate, not a verdict. Work through each one with these questions.
- Open the live results. Search the query in a private window. Do the results look like one intent, such as "how to do X", or a mix? If the results show only guides, a product page of yours that appears is probably a mismatch and not a competitor.
- Compare the page purposes. Read the title, H1 and first screen of each URL. If you cannot state in one sentence how they differ for the reader, they overlap.
- Check the trend. In Search Console, filter by the query and plot each page's position over time. Two lines that alternate, with one rising as the other falls, are the classic pattern.
- Check links. Look at which URL your internal links and external backlinks point to. Splits here explain why neither page dominates.
Cases that look like cannibalization but are not
- Branded queries. Your homepage, an about page and a product page may all appear for your company name. That is normal and usually beneficial.
- Sitelinks and double listings. Google sometimes shows two URLs from one domain together for a strong query. If both get clicks and the combined result is stable, leave them.
- Different intent behind the same words. "Python dictionary" can be a tutorial and a reference page. Both can rank without harming each other.
- Parameter and duplicate URLs. Tracking parameters, print versions and trailing-slash variants of one page produce multiple URLs for one query. That is a duplicate-URL problem, solved with canonical tags and redirects in later chapters, not a content problem.
- Very low volume. Two URLs splitting 40 impressions is rarely worth action.
Where the pages tend to differ
When you review a confirmed overlap, the pages usually fall into one of these shapes. Each shape points to a different decision in the next chapter.
| Pattern | Typical cause | Likely direction |
|---|---|---|
| Old and new post on the same topic | A yearly "tips" post republished under a new URL | Merge into one, redirect the old URL |
| Two thin posts, each partly covering the topic | Content written per keyword variant | Merge into one fuller page |
| One strong guide and one weak page that sometimes outranks it | A weak page with a better title match | Differentiate the weak page or fold it into the guide |
| Different intent, same words | Guide versus product or category page | Leave both, sharpen titles and internal links |
Record what you find
Keep a sheet with one row per cluster. Include the query group, the URLs involved, clicks and impressions per URL for the period, which URL you want to win, and your triage outcome. Treat the clicks and impressions as your baseline, because the measurement chapter compares against them after you change anything.
Exercise
Your script flags the query "email newsletter template". Page A (a tutorial) has 900 impressions and 40 clicks. Page B (a downloadable template library) has 700 impressions and 85 clicks. A live search shows mostly template galleries. What should you do before deciding to merge them?
Show answer
Check the intent and the trend before merging. The live results are mostly galleries, so Page B matches the dominant intent, and Page A may be appearing for a different need. Compare the two pages' purposes, plot each page's position over time for the query, and see which URL gets the links. If the tutorial serves a distinct "how to" intent, keep both and sharpen the tutorial's title and internal links. If the two are interchangeable and their positions flip, send them to consolidation review, with Page B as the likely survivor given its higher clicks.