Sub topic 5
Auditing search visibility: keywords, backlinks and technical basics
This chapter assumes you have set audit goals, chosen a competitor set, and know which public data sources you may use. It also assumes you can read a CSV export and run short Python scripts. Here you will audit three parts of a competitor's search footprint: the keywords they rank for, the sites that link to them, and the technical basics of their pages.
The working model
Search visibility comes from three things that you can inspect from the outside.
- Keywords show what the competitor is found for.
- Backlinks are links from other sites. They show who vouches for the competitor.
- Technical basics decide whether search engines can crawl and index the pages.
Keywords
Export the competitor's ranking keywords from an SEO tool, and export your own the same way. Then compare the two lists. Terms they rank for and you do not are your keyword gap. Terms you both rank for show where you compete head to head.
import csv
def load_keywords(path):
with open(path, newline="", encoding="utf-8") as f:
return {row["keyword"].strip().lower() for row in csv.DictReader(f)}
ours = load_keywords("our_keywords.csv")
theirs = load_keywords("competitor_keywords.csv")
gap = sorted(theirs - ours) # they rank for it, we do not
shared = sorted(theirs & ours) # both rank for it
print(f"Keyword gap: {len(gap)} terms")
for kw in gap[:10]:
print(" -", kw)
print(f"Shared terms: {len(shared)}")The script normalizes each term with strip() and lower(). Without this step, "Running Shoes" and "running shoes " count as different terms and inflate the gap.
A raw gap list is only a starting point. Check each term for search intent, which is the reason behind the search. A competitor may rank for many informational terms when your goal is sales, so filter by intent before you act on the list.
Backlinks
Backlinks work as a rough measure of authority. Look at three things:
- The number of referring domains. This counts unique linking sites, and it is more useful than the raw link count.
- The quality and relevance of those domains.
- The pages that attract links, such as research, tools, or guides.
Links that come from a few strong, relevant sites matter more than thousands of links from low-quality directories. Look at the competitor's top linked pages and ask why people link to them. The answer often points to a content format you could match.
Technical basics
Check the competitor's public pages for signals you can see without special access:
robots.txtand the XML sitemap, which show what they want crawled.- Page titles, meta descriptions and heading structure.
- HTTPS, mobile-friendly layout and page speed.
- Structured data (schema markup), which can earn rich results.
Common errors
| Error | Why it misleads | Fix |
|---|---|---|
| Comparing exports from different tools | Each tool uses its own database and method | Use one tool for all brands |
| Counting total backlinks | A few sites can create thousands of links | Use referring domains |
| Ignoring intent | Gap terms may not match your goals | Filter by intent and business value |
| Skipping normalization | Case and spacing create false gaps | Lowercase and strip terms |
Exercise
Your keyword gap script reports 4,000 terms the competitor ranks for that you do not. Give two checks you should make before treating the list as opportunities.
Show answer
First, confirm that both exports came from the same tool and were normalized (lowercase, whitespace stripped), so the gap is not inflated by formatting or database differences. Second, filter the terms by search intent and business relevance, because many gap terms will not match your goals.