We run the website for Party Lab Atlanta, a small company that offers bounce house rentals around metro Atlanta. The site has about 120 pages: a page for each inflatable, a page for each city we deliver to, and a blog. In November we found out that Google was ignoring 13 of those pages. The cause was one line of code that nobody had looked at since the site was built.
This is what went wrong, how we found it, and what we changed. None of it needed a paid tool.
The symptom: pages Google knew about and never read
Search Console has a report called Pages. It lists every address Google has seen on your site and says whether it is in the index. Most people look at the totals on top. The useful part is further down, in the list of reasons.
Ours had a group marked “Discovered – currently not indexed”. That label means Google knows the address exists and has decided not to fetch it yet. Thirteen pages sat there: several city pages, a few product pages and some guides. Some had been waiting for weeks.
Our first guess was the usual one: the pages must be too thin. A few of the city pages did share a lot of text, so the guess was reasonable. It was also incomplete.
The cause: every page claimed to be new on every build
A sitemap is a file that lists your pages for search engines. Each entry can carry a “lastmod” date, which says when the page last changed. Google can use that date to decide what to fetch again.
When we opened our sitemap, every one of the 122 entries showed the same date and time, down to the second. It was the moment of the last deploy.
The site is rebuilt each time we publish something, and we publish a blog post several times a week. The code that writes the sitemap filled in “now” for every page on every build. So with each build the whole site told Google that all 122 pages had just changed. Almost none of them had.
Google’s documentation is direct about this. It uses the lastmod value only if it is “consistently and verifiably accurate”. Ours was neither. A date that is wrong for 121 pages out of 122 teaches a crawler to ignore the field, and then the one page that really did change has no way to say so.
The fix, in three parts
First, real dates. We made a small file that holds the true last-changed date of each page, and the sitemap now reads from it. When a page’s content changes, its date changes. When it does not, the date stays put.
Where do true dates come from on a site that never recorded them? From the version history. For each page we took the most recent commit that changed its main content, not the header or the footer. On a sister site, 88 of 108 pages turned out to carry a date older than their real last change.
Second, we asked Google to look again. Search Console lets you request indexing for single addresses, about ten a day. We spent those on the 13 skipped pages.
Third, we gave the weakest city pages content of their own: local park rules, distances, the details a visitor in that town needs.
All 13 pages were in the index within days.
What we cannot claim
We changed the dates and asked for a fresh look in the same week, so we cannot say which of the two did the work. Our reading is that the request got the pages fetched, and the truthful dates are what should keep them fetched. The pages got in before the new local text was live on all of them, which tells us thin content was not the main blocker.
The mistake we made while fixing it
A date lives in more than one place. On our site it was in three: the sitemap, the structured data inside each page, and the line a reader sees under the headline. We fixed the sitemap first and stopped there. A later check found 64 of 69 blog posts where the page’s own data still gave the first publishing day while the sitemap gave a newer one. Two sources that disagree are no better than one that is wrong. Now all three read the same file.
How to check your own site in ten minutes
- Open yoursite.com/sitemap.xml in a browser. If every lastmod is identical, or all of them show today, you have this problem.
- Pick a page you have not touched in months and find it in the file. Does its date match?
- In Search Console, open Pages and read the list of reasons, not only the totals. Look for “Discovered – currently not indexed”.
- If your site was built from a template, check every site built from it on the same day. A sister site of ours had the same fault from the same starter code.
- After the fix, request indexing for the pages that matter most, a few per day.
A sitemap is a set of promises to a search engine. Ours made the same false promise 122 times with every build, and the search engine seems to have stopped listening. One small file with true dates in it changed that.
Previously in Business news: Why Overconfidence May Be an Investor’s Biggest Blind Spot When It Comes to Scams
