Sub topic 7
Lay out the keyword map
This chapter assumes you can read a CSV file, know what a URL, category page, and article page are, and have already grouped keywords into clusters. Here you decide which columns the map has and how to fill them so the map stays usable as the site grows.
One row per page
A keyword map is a table with one row per page. A page is either an existing URL or a planned one. Each row carries one primary keyword, which is the single query the page is built to rank for. Supporting keywords are close variants and related queries that the same page can satisfy.
One row per page keeps the map checkable. If a keyword appears as the primary keyword in two rows, you have planned two pages to compete for the same query. That is a problem you can catch before anyone writes a word.
The core columns
A minimal map needs these columns.
| Column | What it holds | Why it exists |
|---|---|---|
| url | The page address, or the planned address | The unique key for each row |
| page_type | Category, article, product, home, and so on | Shows which kind of page fits the keyword |
| primary_keyword | One keyword per page | Gives the page a single clear target |
| supporting_keywords | Variants from the same cluster | Guides headings and body copy |
| intent | Informational, commercial, transactional, or navigational | Checks that the page type matches the search intent |
| status | Existing or planned | Separates current pages from gaps |
| notes | Free text | Records the next action |
You can add volume, difficulty, or priority columns later. Start small. Every column you add is a column you must keep current.
A worked example
This map covers a running shoe store. The first two rows are existing pages. The third row is a planned page, so it has no live URL yet and its URL is only a proposal.
url,page_type,primary_keyword,supporting_keywords,intent,status,notes
/running-shoes/,category,running shoes,"best running shoes; buy running shoes",commercial,existing,needs new intro copy
/blog/how-to-choose-running-shoes/,article,how to choose running shoes,"running shoe fit; running shoe size guide",informational,existing,link to category
/running-shoes/trail/,category,trail running shoes,"trail shoes; off-road running shoes",commercial,planned,no page yetNote two choices. The supporting keywords sit in one cell, separated by semicolons, because the CSV already uses commas. The article targets an informational query and the category targets a commercial one, so the two pages do not compete even though both mention running shoes.
Choosing the primary keyword
From each cluster, pick the keyword that best describes the whole group. Prefer the phrase that searchers use most and that fits the page's intent. Volume is a useful tiebreaker, but it is an estimate, so do not let a small difference decide the choice. Everything else in the cluster becomes a supporting keyword.
Check the map with a script
Because the map is plain CSV, you can test it. This script reads the file and reports any primary keyword assigned to more than one URL.
import csv
from collections import defaultdict
pages_by_keyword = defaultdict(list)
with open("keyword_map.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
key = row["primary_keyword"].strip().lower()
pages_by_keyword[key].append(row["url"])
for keyword, urls in pages_by_keyword.items():
if len(urls) > 1:
print(f"{keyword!r} is the primary keyword of {len(urls)} pages: {urls}")The strip().lower() call matters. Without it, "Running Shoes " and "running shoes" would count as different keywords and the duplicate would slip through.
Common layout errors
- Putting several primary keywords in one cell. This hides which query the page is really for.
- Leaving out the status column. Planned pages then look like live ones, and gap analysis becomes guesswork.
- Using a keyword as a primary when the intent does not match the page type, such as a blog post for a purchase query.
- Mixing spellings and capitalization, which breaks duplicate checks.
Exercise
A map has two rows with the primary keyword "trail running shoes": one is /running-shoes/trail/ and the other is /blog/best-trail-running-shoes/. What does your duplicate-check script report, and what should you do?
Show answer
It reports "trail running shoes" as the primary keyword of 2 pages. Decide which page fits the intent. If the keyword is commercial, keep the category page as primary and give the article a different informational primary keyword, such as "how to choose trail running shoes".