Programmatic SEO: When to Publish a Page and When to Prune It
Programmatic SEO gets described as a way to make more pages, and that is exactly why it so often goes wrong. A genuine data set and a genuinely thin data set both produce fifty thousand URLs. Nothing in the generation step tells you which one you have built. The difference only appears later, in Search Console, as a pattern of crawled but not indexed pages, and by then you have a hosting bill and an engineering team and a launch date already behind you.
The discipline that separates a good programmatic site from a bad one is not a better template. It is a written test, applied once per page type, before generation starts. This post is that test.
The economics of one generated page
Every indexable URL costs you four things, and a page has to earn back all four.
| Cost | What it actually is |
|---|---|
| Crawl cost | One more URL competing for discovery and fetch attention |
| Render cost | Server time, plus a queue slot if the page is client-rendered |
| Index cost | One more document in Google's index, displacing something else |
| Quality risk | The chance this pattern gets the whole site demoted to "crawled, not indexed" |
The first two are usually the ones teams think about, and they are the least important. Crawl cost is real but bounded: a crawler on a large site will keep fetching new URLs for a long time. Render cost is a hosting line item you can measure and budget. The third and fourth are the ones that actually decide whether the programme worked.
Index cost is the least intuitive. Google does not have a fixed quota of pages it will hold for your domain. What it has is a limited amount of attention, and every slot occupied by a page nobody searches for is a slot not occupied by a page somebody does. Adding pages is not free even when all of them are "valid", because valid and worth keeping are different properties.
Quality risk is the tail risk that should make a team most cautious. A pattern that Google decides is not worth indexing does not stay confined to itself. Sustained crawling of pages that get crawled and rejected is one of the clearest signals a large site can send about its own quality, and it degrades how the rest of the site is treated. There is no undo button.
The written test
Before you generate a page type, answer these in writing. Not in your head, and not in a Slack thread where somebody said "yeah it should be fine". In a document that a person who did not build the data set can read and disagree with.
- Name the query. Write out the actual search query this page is meant to answer, in the words a person would type. If you cannot write one sentence, you do not have a page, you have a dataset.
- Prove the query exists. Point to volume, to keyword data, to a support ticket, to a competitor ranking for it, or to an internal search log. Three sources is better than one. Zero is disqualifying.
- Show what is on the page that is not on the ten nearest pages. If the generated page differs from its siblings only by the value of two fields, it is a template fill, not a page.
- Name the page it competes with. Every generated page is a competitor for something. If it does not compete with a specific existing page for a specific query, it is additive decoration with a hosting cost.
- State the pruning trigger in advance. What event tells you this page type has stopped earning its slot, and who checks? Answer this before launch or you will never answer it.
Five questions. If you cannot answer all five in a paragraph each, the answer is not to generate a smaller batch. It is to not generate the page type.
When a data set supports real demand
Genuine programmatic demand comes from a data set where the variation itself is what the searcher cares about. The clearest examples:
- Job boards with location and role filters, where "accountant jobs Leeds" is a real query with real volume.
- Retailers with genuine stock at genuine scale, where a specific model in a specific size has demand behind it.
- Property and travel listings where the individual listing is the product.
- Support and documentation sites where each article answers a distinct question.
- Equipment, parts and B2B catalogues where the long tail is made of exact part numbers.
The test that distinguishes these from the bad cases is simple: if the query exists, the page satisfies it. A person searching for a specific part number is looking for that part number. The page exists because the search exists.
These data sets still need curation. Job boards with duplicate listings are a serious problem. Property sites with stale listings generate soft 404s by the thousand. The generation is justified; the hygiene is not automatic.
When a data set supports only near-duplicate pages
The failure mode is a dataset where the fields vary but the intent does not. Two thousand cities, each with a page saying "we deliver to X". Two hundred colours of the same product, each with a page saying the same thing in a different colour name. Every possible combination of three filters, each rendering the same twelve products in a different order.
These pages fail a specific structural test: template entropy. Ask what proportion of the visible text actually changes between sibling pages. If it is under about twenty percent, you do not have fifty thousand pages, you have one page with fifty thousand addresses. Google sees the same thing, and it is why the pattern gets crawled and rejected at a rate that looks absurd.
The trap here is that near-duplicate pages often look fine in isolation. Page 4,201 looks like a real page. You cannot tell it is junk without comparing it to page 4,202. Nobody ever compares them, which is why these programmes ship, look successful for a few weeks, and then flatten.
A second tell: engagement that does not scale. If 50,000 pages exist and the traffic distribution is the same shape as a 500-page site, the extra pages bought you nothing.
Canonical consolidation against deletion
Once a page type has shipped, you have three options and they are not equivalent.
Delete with a 410. Correct for pages that will never come back and have no replacement. It retires the URL cleanly and tells a crawler the page is gone on purpose. Use it for discontinued products, expired campaigns, retired content.
301 redirect to the closest equivalent. Correct when a genuinely better page exists and the intent maps cleanly. A colour variant that has been discontinued can point to the parent product. An old job listing can point to the current one.
Consolidate with canonicals. Correct when the URLs must keep working for users but only one should be indexed. This keeps the URL space intact and passes the ranking signal, at the cost of still asking Google to crawl every sibling.
The common mistake is reaching for canonicals because they are the least frightening option. Canonical consolidation is not a free alternative to deletion. You still pay crawl cost on every sibling, you still occupy the crawl queue, and you still have a pattern that is mostly non-indexed. It is the right tool when the pages have real distinct value or real external links. It is a stalling tactic when the pages have neither.
The rule of thumb: if you would be content to lose the URL entirely and never have anyone bookmark it, delete it. If someone might, canonicalise it.
Pruning a page type that has already shipped
This is the situation most teams find themselves in, and it is recoverable. The sequence below is how we would approach it, and it is the same shape as any large remediation.
Inventory first. Crawl and cluster before you decide anything. Clustering is what turns a scary number into a list of templates. On one of three sites measured while we were building this, 162,000 URLs collapsed into two to five clusters.
Sample each cluster. You do not need to inspect every URL to know what a pattern is doing. Sampling at 95% confidence plus or minus 10 percentage points, minimum 20, maximum 400. Patterns of 250 URLs or fewer get audited in full because the exact count is cheaper than the estimate at that size. Results land in Ghost pages, Rejected quality, Link bleeders (suspected duplicates), Other findings, and Not yet measured. A cluster sitting in Not yet measured is an open question, not a pass.
Decide per cluster, not per page. Every cluster gets one of five verdicts: keep as is, canonicalise to a parent, noindex, redirect, or 410. Deciding per page at 200,000 scale is not a plan.
Write the files. A redirect CSV, a noindex directive set, a canonical manifest, a robots.txt fragment, a micro-sitemap containing only what you kept. PruneSEO generates these and never applies them. Applying them belongs to you or your developer.
Stop the internal links. Redirects and noindexes do nothing if a thousand pages still link to the dead ones. An internal link plan is usually part of the same campaign.
Watch the recrawl, then measure again. A recrawl nudge is a hint, not a command, and sitemap submission is also a hint. Google takes weeks, not days, to act on a large structural change.
Google's URL Inspection quota of 2,000 per property per day is the practical constraint on all of this. Fifty days for a full pass. Plan the verification around that rather than expecting a verdict next week. The setup and monitoring side is in Running and monitoring crawls.
What to do before you generate anything
Write the five-question test down. Apply it to one page type. Have someone outside the team read the answer and argue with it. If they can argue successfully, you have saved yourself the cost of the largest mistake in programmatic SEO, which is not a bad template, it is a bad decision made once and then multiplied fifty thousand times.
If you want the broader view of scale before you commit, What is indexation waste covers the underlying accounting.