Sub topic 7
Understanding missing, weak, shared, and strong keywords
This chapter assumes you can read a keyword report and know the basics of organic search, SERPs, and ranking position. You have already pulled a gap report in Semrush or Ahrefs. Now you will sort its rows into categories, because each category calls for a different action.
Why categories matter
A raw gap report mixes very different situations. A keyword where you rank 4th and a competitor ranks 3rd needs a small page update. A keyword where you have no page at all needs new content. Treating both the same wastes effort.
The categories compare your position with your competitors' positions for each keyword. Semrush and Ahrefs use slightly different labels in their interfaces, so the definitions below are the working model used in this tutorial.
The categories
| Category | Your ranking | Competitors | Typical action |
|---|---|---|---|
| Missing | None | At least one ranks | Create a new page or add a section |
| Weak | You rank, but below a competitor | At least one ranks higher | Improve the existing page |
| Shared | You and competitors all rank | Positions are close | Low priority, defend and monitor |
| Strong | You rank above every competitor | Competitors rank lower or not at all | Protect, and link internally |
Semrush also has a "Unique" view, which shows keywords only one domain ranks for. Ahrefs offers similar filters through its "Target ranks in top" and "Competitors rank in top" settings. Unique keywords where only you rank are a subset of your strong keywords.
How the logic works
The sorting is a comparison of positions. This diagram shows the decision for one keyword.
Shared is not a separate branch here. It describes keywords where everyone ranks and the positions are close, so it overlaps with weak and strong. You decide the cutoff, for example a difference of three positions or fewer.
Reproducing the logic in code
The same rules fit in a few lines of pandas. This version assumes a table with one column of positions per site, where an empty value means the site does not rank. The site names me, a, and b match the export script later in this tutorial.
import pandas as pd
gap = pd.DataFrame(
{
"me": [None, 8, 2, 5],
"a": [3, 4, 6, 5],
"b": [7, None, 9, 6],
},
index=["crm software", "crm pricing", "crm demo", "crm tips"],
)
competitors = ["a", "b"]
best_rival = gap[competitors].min(axis=1)
def label(row, rival):
if pd.isna(row["me"]):
return "missing" if pd.notna(rival) else "none"
if pd.isna(rival):
return "strong"
if rival < row["me"]:
return "weak"
if rival > row["me"]:
return "strong"
return "shared"
gap["category"] = [label(row, best_rival[i]) for i, row in gap.iterrows()]
print(gap)Here "crm software" is missing, "crm pricing" is weak because competitor a ranks 4th against your 8th, "crm demo" is strong, and "crm tips" is shared because you tie with competitor a at position 5.
Common mistakes
- Counting a missing keyword as an opportunity without checking intent. A competitor may rank because of a page type you do not offer. The next chapters cover filtering and intent.
- Ignoring weak keywords. Moving a page from position 8 to position 3 often takes less work than creating a new page, and the page already has links and history.
- Comparing different countries. Positions from one database cannot be compared with another.
- Treating strong as finished. Competitors can overtake you, so recheck these on a schedule.
Exercise
A keyword shows you at position 12, competitor A at position 5, and competitor B not ranking. Which category is it, and what is the first action you would consider?
Show answer
It is weak, because you rank but a competitor ranks higher. The first action is to review and improve your existing page for that keyword (content depth, intent match, internal links) rather than creating a new page.
Exercise
In the pandas example, what category would a keyword get if you rank 3rd and both competitors do not rank?
Show answer
Strong. Your position is set and no competitor ranks, so the label function returns "strong". It also counts as a unique keyword for your site.