Sub topic 12
Prioritizing groups by impact
A crawl can produce hundreds of duplicate clusters and dozens of thin page groups. You can't fix all of them first. This chapter shows how to rank groups so that effort goes where it changes crawling, indexing and traffic the most.
It assumes you have already built duplicate clusters with a preferred URL and triaged thin pages by template and intent. It also assumes you can read canonical, redirect, noindex and robots signals, and can group and sort data in pandas.
Rank groups, not URLs
Your unit of work is a group: a duplicate cluster or a set of thin pages that share a template. A cluster of 40 near-identical URLs is usually one problem with one fix. Ranking 40 rows separately hides that, and it scatters the same decision across your backlog.
Before ranking, make sure each row is one group with these fields:
- A group ID and a kind (
duplicateorthin). - The number of URLs and the number of indexable URLs in it.
- A value measure, such as clicks, impressions, revenue or conversions.
- An exposure measure, such as internal inlinks or sitemap presence.
- The current signal state: whether canonical, redirect, noindex or robots already handle it.
- A rough effort estimate for the likely fix.
What makes a group important
No single number decides priority. Four questions do most of the work.
| Question | Typical measure | What a high value means |
|---|---|---|
| How big is it? | Indexable URLs in the group, share of the crawl | Many URLs compete for crawling and indexing |
| How valuable is it? | Clicks, impressions, revenue from the group's URLs | Real traffic or income is at stake |
| How exposed is it? | Internal inlinks, sitemap inclusion, depth | Search engines meet these URLs often |
| Is it already handled? | Consistent canonical, redirect or noindex | Little or no new work is needed |
A fifth factor, effort, divides the result. A template change that fixes 5,000 URLs in one deploy beats a manual rewrite of 50 pages, even if the rewrite has slightly more value per page.
Size
Count indexable URLs, not all URLs. A group of 2,000 parameter URLs that all return noindex is large in the crawl but small in the index. Use size to estimate crawl waste and index bloat.
Value
Join crawl data to search or analytics data by the preferred URL and by every URL in the group. Sum clicks over the whole group. Duplicates often split traffic: no single URL looks important, while the group together is worth a lot. Ranking by each URL's clicks would miss that.
Exposure
Internal inlinks show how often crawlers are sent to a group. A duplicate group linked from the main navigation matters more than the same group reachable only through a deep faceted path. Sitemap inclusion is a related signal, because it tells search engines you consider those URLs important.
Current handling
Read the signals before scoring. A cluster where every variant has a canonical pointing at the same preferred URL, which returns 200 and is indexable, is largely handled. It still needs monitoring but not an urgent fix. A cluster with conflicting signals, such as a canonical pointing to a URL that redirects, is worse than an unhandled one, because search engines get contradictory hints.
A simple scoring model
A scoring model makes your reasoning explicit and repeatable. It doesn't have to be sophisticated. This version converts each factor to a percentile rank so that different units can be combined, weights them, divides by effort, and sets handled groups aside.
import pandas as pd
groups = pd.DataFrame({
"group_id": ["dup-001", "dup-002", "thin-tag", "dup-004", "thin-loc"],
"kind": ["duplicate", "duplicate", "thin", "duplicate", "thin"],
"indexable_urls": [4200, 12, 0, 35, 310],
"clicks_90d": [150, 2400, 40, 300, 900],
"inlinks": [18000, 90, 5200, 410, 1200],
"handled": [False, False, True, False, False],
"effort": [2, 1, 1, 3, 3], # 1 = a config or template change, 3 = needs content work
})
def pct(series):
return series.rank(pct=True)
groups["scale"] = pct(groups["indexable_urls"])
groups["value"] = pct(groups["clicks_90d"])
groups["exposure"] = pct(groups["inlinks"])
groups["impact"] = (
0.4 * groups["scale"] + 0.4 * groups["value"] + 0.2 * groups["exposure"]
)
groups["priority"] = groups["impact"] / groups["effort"]
groups.loc[groups["handled"], "priority"] = 0.0
ranked = groups.sort_values("priority", ascending=False)
cols = ["group_id", "kind", "indexable_urls", "clicks_90d", "effort", "priority"]
print(ranked[cols].round(2).to_string(index=False))The weights are a judgment call. Put more weight on value if the site earns money from search, and more on size if the main concern is crawl budget on a very large site. Write the weights down so the team can challenge them.
Why percentile ranks
Raw numbers span very different scales: URL counts in the thousands, clicks in the hundreds, inlinks in the tens of thousands. Percentile ranks put them on a common 0 to 1 scale. The trade-off is that ranks discard magnitude. A group with 12,000 URLs and a group with 4,200 may rank next to each other, though one is nearly three times larger. If magnitude matters, use a log transform instead, for example numpy.log1p, and then scale to 0 to 1.
A workflow for prioritizing
- Remove groups that are clearly handled, but keep them on a monitor list for the recrawl.
- Join value and exposure data to each group, using all member URLs.
- Score and sort.
- Review the top of the list by hand, and also review a sample from the bottom.
- Pass the ordered list to the remediation step, where each group gets a specific fix.
Edge cases that distort rankings
Missing value data. New or low-traffic sections often have zero clicks. A zero doesn't mean the group is harmless. It may mean the pages aren't indexed because of the duplication. Flag groups with zero clicks and high size separately, and check their index status before you rank them low.
One huge low-value group. A faceted navigation can create hundreds of thousands of URLs with no search value. A size-heavy model puts it first. Fixing it may still be right, because it can consume most of the crawl. Be explicit about the reason: the goal is crawl efficiency, not traffic recovery.
Thin pages that are meant to be short. A contact page or a store locator entry can fall under a word-count cutoff and still serve its purpose. The triage step should already have excluded these. If one slips into a ranked list, remove it by hand instead of letting the score lower its priority a little.
Shared root cause. Several groups can share one fix, such as a parameter that creates duplicates in five templates. Score them separately, then merge them into one backlog item. The combined item is usually larger than any single group.
Conflicting signals. A group with contradictory canonical and redirect signals deserves a priority bump even if its size and value are modest, because it is the most likely to cause search engines to pick the wrong URL.
Stale data. Clicks come from a time window, crawl data from a crawl date. If the site changed between them, the join may attach traffic to URLs that no longer exist. Check the share of group URLs that return 200 in the latest crawl before trusting the value column.
Presenting the ranking
Keep the final list short and readable. For each of the top groups, write down:
- the group ID and one sentence on what the group is,
- the numbers behind the score (URLs, clicks, inlinks),
- the current signal state,
- the suggested fix category and the effort estimate,
- the owner who must make the change, such as a developer, editor or SEO.
Stakeholders can disagree with a weight or an estimate and see directly how the order changes. That is a better conversation than disagreeing with a number you can't explain.
Exercise
A crawl has two duplicate clusters. Cluster A has 8,000 indexable URLs, 20 clicks in 90 days, and every URL has a canonical pointing to one preferred URL that returns 200. Cluster B has 60 indexable URLs, 3,000 clicks in 90 days, and a canonical that points to a URL that redirects. Which gets higher priority, and why?
Show answer
Cluster B. Cluster A is already handled by consistent canonical signals and has little traffic, so it goes on the monitor list. Cluster B is small but carries most of the traffic, and its canonical points to a redirecting URL, which sends conflicting signals. Fixing the canonical target is probably a low-effort change with high value at risk.
Exercise
In the scoring code, why is handled set to a priority of 0 after dividing by effort and not simply used as a weight in the impact formula?
Show answer
A handled group needs no new fix, so its priority should be zero regardless of its size or value. If handled were a weight, a very large handled group could still outrank a small unhandled one. Setting the priority to 0 removes handled groups from the backlog while keeping them in the table for monitoring.