Blog / Tools & automation /

Building a content inventory from a sitemap and CMS export

Your sitemap says the site has 412 pages. Your CMS export says 389. The crawl finds 440. Who’s right?

Probably none of them on their own. And that’s useful.

A sitemap and a CMS export can both claim to describe your website while disagreeing about what’s live. One includes pages nothing links to. The other leaves out redirected URLs or whole content types. Combine them into a content inventory and you get a far better starting point for audits and migrations. Just track where each URL came from.

An inventory isn’t just a list of addresses. It’s a working map of which pages exist, what they do, who owns them and what needs to happen to them. It’s only useful if you keep the differences visible instead of tidying them away.

Collect the sources separately

Export published content from the CMS, covering the content types that matter: pages, posts, products, resources and other public records. Include the CMS ID, title, type, status, canonical and last modified date where you can. Leave drafts out unless you’re specifically reviewing planned content.

Download the XML sitemap and crawl the public site. The sitemap shows which URLs the site wants search engines to see. The crawl shows what a crawler can reach through links. Neither is a full map of every historical URL. Add Search Console pages or an analytics landing-page export if they surface important URLs the others missed.

Keep each input on its own sheet, or keep a source column. Don’t paste everything into one list and lose track of where it came from. When a URL shows up in one source and not another, that difference might be the very problem you need to look at. When I build one of these, the mismatches are the first rows I read, because they’re usually the most interesting ones in the whole sheet.

Normalise without losing the original

Add a normalised URL field for comparing and deduplicating. Decide how to handle case, trailing slashes, protocol, hostname and parameters. Keep the original URL untouched beside it. Overwriting every original with a cleaned-up version erases the evidence of inconsistent links.

Don’t treat every query parameter as junk. Some are tracking noise. Others change the page or form a meaningful URL. Look at examples before stripping them. Likewise, don’t merge two hostnames or paths until you know whether they serve different content or behave differently with canonicals.

Use crawl status codes to separate live pages, redirects, errors and blocked resources. A URL in the CMS might not be public. A URL that redirects can still matter as a migration source. Mark these states. Don’t delete them from the inventory.

Add decisions people can act on

Useful columns: URL, source, content type, title, status code, indexability, canonical target, owner, purpose, last reviewed date, performance context and recommended action. Write a definition for each field so reviewers use them the same way. A blank owner should mean “needs assigning”, not “go ahead and guess”.

Actions might include keep, improve, merge, redirect, remove or investigate. Add a reason, and a destination for any URL that’s moving. Be wary of letting low traffic decide a page’s fate on its own. A page can support customers, sales or legal obligations without getting much search traffic.

Content metrics need context. Search Console impressions and clicks answer different questions from analytics sessions or key events. State the date range and source. If a page has no data, separate “no data found” from “zero activity”. Missing records can come from tracking gaps, or from the page simply not being in the export.

Reconcile conflicts instead of hiding them

Compare the lists by URL and flag anything that appears in only one source. Look into sitemap URLs that return errors, CMS pages missing from the crawl, and crawled pages left out of the sitemap. Check whether each difference is deliberate, like a noindex page or a private utility page, before you change anything.

Review canonical and redirect relationships. Two URLs might be one page, or they might be separate versions that need different treatment. Record both the source URL and the intended canonical or destination. That matters most before a redesign, when every old URL needs a one-to-one migration decision.

Keep the inventory alive

Give it an owner and a refresh date. Use it during content reviews, redesign planning and technical audits, or it’ll go stale fast. After a migration, compare the new crawl with the planned destinations and log what’s still unresolved.

Avoid false precision in inventory scores

Teams sometimes add a single content score to prioritise work. A score can help sort a big inventory, but it shouldn’t hide patchy data. If it mixes traffic, backlinks, freshness and business value, document the weighting and the source of each input. A low score doesn’t make a page safe to delete. I don’t trust a score I can’t explain to the page’s owner.

Keep human review for decisions that depend on context. A page might serve an audience analytics doesn’t capture, meet a legal requirement or be linked from a partner site. Write those reasons down so the next review doesn’t repeat the same digging. If nobody can confirm a page’s purpose, mark it “investigate” instead of assigning a confident action.

When the inventory feeds a redesign, freeze the decisions before implementation and log the exceptions. Then the launch team can see what was removed on purpose and what simply got missed.

A sitemap is a useful input, but it can’t tell the whole story of your content. Pull your three sources side by side this week. Which one disagrees most with what you thought the site contained, and what’s that gap telling you?