IndexLaunch

Guide

Programmatic SEO: Get Template Pages Indexed

Publishing thousands of template pages is easy; this guide shows how to make them worth indexing and how to get search engines to actually crawl them.

Why most programmatic pages never get indexed

Search engines don't index everything they find. When hundreds or thousands of pages share one template and differ only by a swapped-in keyword, most of them end up as "Discovered – currently not indexed" or "Crawled – currently not indexed". Scale magnifies whatever quality signal each page sends — good or bad.

Stay on the right side of Google's spam policies

Google's policy on scaled content abuse targets many pages generated primarily to manipulate rankings rather than help users — whether they're written by people, by AI or by scripts. Programmatic SEO is fine when each page answers a real query with genuinely different, useful information. It becomes a problem when the only thing that changes is the city or keyword in the headline.

Make every page worth indexing

  • Give each page unique data that matters to the searcher — prices, specifications, availability, local details, reviews — not just a new heading.
  • Don't publish pages with empty or near-empty results; hold them back until there's real content, or noindex them.
  • Consolidate near-duplicates into one stronger page and point canonical tags at it, rather than letting similar pages compete.

Build internal links crawlers can follow

A page nobody links to is hard to discover and looks unimportant. Organise programmatic pages into crawlable hubs — category and index pages with plain HTML links — and link related pages to each other. Avoid lists that only appear after JavaScript runs or behind infinite scroll.

Use sitemaps to show scale, not to force it

Split large page sets into several sitemaps under a sitemap index, grouped by section, so coverage reports show which templates are indexing well. Each sitemap file is limited to 50,000 URLs or 50 MB uncompressed. Only list canonical, indexable URLs, and keep lastmod accurate so updates stand out.

Launch in batches and watch the data

Publishing 50,000 pages at once gives you no signal and can swamp your crawl budget. Release a representative batch first, check Search Console's page indexing report after a few weeks, and fix the template before scaling. If a batch mostly lands in "Crawled – currently not indexed", the issue is page value, not discovery.

Speed up discovery once pages are good

Once the template earns indexing, speed matters: submit updated sitemaps, and push new or changed URLs to search engines that support IndexNow (Bing, Yandex, Naver, Seznam and Yep) so each batch is found in minutes rather than weeks. Faster discovery helps good pages; it won't rescue weak ones.

Decide which generated pages deserve to exist

Before anything is published, sort every URL the template could produce into one of four buckets. Doing this in the data layer, not by hand afterwards, is what keeps a programmatic site from drowning in thin pages.

SituationActionHow to implement
Enough unique data to answer the query on its ownIndexSelf-referencing canonical, listed in the sitemap, linked from a hub page.
Useful to visitors but too thin or similar to rankKeep for users, noindex<meta name="robots" content="noindex">, left out of the sitemap.
Near-duplicate of a stronger pageConsolidate301 to the stronger page, or canonical to it if both must stay live.
No data at all (zero results, empty location)Do not publishReturn 404 or 410. A 200 page that says “no results” tends to be reported as a soft 404.

Set the threshold with numbers you can query. For example: a location page is indexable only if it has at least a set number of listings, a text field that is not boilerplate, and at least one data point that differs from its neighbours. Store the decision as a field on the record so templates, sitemaps and internal links all read the same value.

// pseudo-code in the page template
const indexable = record.listingCount >= MIN_LISTINGS && record.hasUniqueSummary;

<head>
  <link rel="canonical" href={canonicalUrl(record)} />
  {!indexable && <meta name="robots" content="noindex, follow" />}
</head>

// sitemap generator
const urls = records.filter(isIndexable).map(canonicalUrl);
Driving robots meta and sitemap inclusion from one field.

Do not combine noindex with a robots.txt block on the same URLs. Google has to crawl a page to see its noindex; if robots.txt stops the crawl, the URL can stay indexed from links alone. The robots.txt vs noindex guide covers when to use each.

Keep filters and parameters out of the crawl

Programmatic sites usually sit on top of a database with filters: price, sort order, page size, date ranges. Each combination can create a new URL, and crawlers can spend their time there instead of on the pages you want indexed. Google retired the URL Parameters tool in Search Console in 2022, so you have to control this on the site itself.

User-agent: *
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?view=
Disallow: /search?

Sitemap: https://www.example.com/sitemaps/index.xml
robots.txt: stop crawling of sort and filter combinations that have no search value.
  • Pick one URL pattern per indexable page, such as /plumbers/leeds/, and never link to the parameter version of it.
  • If a filtered view deserves its own page (“emergency plumbers in Leeds”), give it a clean path and real content, then treat it as a normal template page.
  • Use robots.txt only for URLs that are not already indexed and never need to be. For URLs already in the index, let Google crawl them and see a noindex or a redirect first.

Test rules before deploying them with the robots.txt checker. One stray wildcard can block a whole template. Google's guide to managing crawl budget on large sites explains why wasted crawling matters at this scale.

Structure sitemaps so they report on each template

The point of splitting sitemaps is diagnosis. If every template has its own sitemap, Search Console can tell you which template Google is choosing not to index.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemaps/city-pages-1.xml</loc>
    <lastmod>2026-10-28</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemaps/city-service-pages-1.xml</loc>
    <lastmod>2026-10-30</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemaps/comparison-pages-1.xml</loc>
    <lastmod>2026-10-15</lastmod>
  </sitemap>
</sitemapindex>
A sitemap index with one child sitemap per template (and per batch).
  1. Submit the index file in Search Console under Indexing → Sitemaps. Child sitemaps appear beneath it.
  2. Open Indexing → Pages and use the filter at the top to switch from All known pages to a specific sitemap.
  3. Compare indexed vs not indexed per template. If one template is mostly “Crawled – currently not indexed” while another indexes well, the gap is in that template's content.

Google ignores <priority> and <changefreq>, and uses <lastmod> only when it is consistently accurate. Set it from the date the page's data actually changed, not the date the sitemap was regenerated. See Google's sitemap documentation and our XML sitemap best practices.

What makes a template page worth indexing

Google's helpful content guidance asks whether a page provides original information or analysis and substantial value compared with other pages in results. For template pages, that translates into a few concrete tests:

  • Remove the variable. Strip the city or product name out of two pages and diff the text. If what remains is nearly identical, the pages are interchangeable to a search engine too.
  • Lead with the data. Put the unique part (the table, prices, counts, map, local details) near the top, rendered in HTML, not loaded later by a script.
  • Answer the next question. A page for “X vs Y” should say which is better for whom, not just list two spec sheets side by side.
  • Vary the copy by data, not by synonyms. Text that changes because the numbers change is useful. Text that is spun to look different is the pattern scaled content abuse policies describe.
  • Render on the server. If the content comes from a client-side API call, check what Googlebot sees with URL Inspection → Test live URL → View tested page. See JavaScript SEO and indexing.

Worked example: rolling out 3,000 city pages

Troubleshooting a programmatic rollout

What you seeLikely causeWhat to do
Most URLs in “Discovered – currently not indexed”Google knows the URLs but has not prioritised crawling them. Weak internal linking or a slow server.Link pages from hubs that are crawled often, check Settings → Crawl stats for response time and errors.
Most URLs in “Crawled – currently not indexed”Google fetched them and judged them not worth indexing.Improve the template’s unique content or reduce the page set.
“Duplicate without user-selected canonical”Pages too similar to each other, often thin variants.Consolidate, or add canonicals pointing to the main version.
Soft 404Empty or near-empty result pages returning 200.Return 404/410 or add real content.
Crawl requests spent on parameter URLsFilters, sorts or tracking parameters linked internally.Remove those links and disallow the patterns in robots.txt.

Use server logs to see what Googlebot actually crawls

Search Console samples; your logs do not. Count Googlebot requests per template path to see whether crawling reaches new batches at all. Verify that hits claiming to be Googlebot really are, since the user agent is easy to fake:

$ host 66.249.66.1
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com.

$ host crawl-66-249-66-1.googlebot.com
crawl-66-249-66-1.googlebot.com has address 66.249.66.1
Reverse DNS then forward DNS: a genuine Googlebot IP resolves to googlebot.com or google.com and back.

Common mistakes

  • Publishing every row in the database because the template makes it free.
  • Listing noindexed or redirected URLs in the sitemap.
  • Hub pages that paginate with JavaScript only, so deep pages have no crawlable path.
  • Rewriting the template and regenerating all lastmod dates on the same day.
  • Judging a batch after a few days. Indexing decisions for new pages often take weeks.

For a quick check of individual pages, the indexability checker tests status code, robots rules and canonical in one pass, and the sitemap checker flags non-indexable URLs in a sitemap. The background on why Google skips pages is in Crawled – currently not indexed and crawl budget explained.

Want your next page found faster than organic crawling alone?

IndexLaunch sends every URL you submit to multiple search engines the moment you queue it.

No card required · credits never expire

Or run a free indexability check on any page →