Why we made our own website readable to Google and AI

By Custom Software Solutions ·

This site looked fine to everyone who visited it. To a lot of the software that reads websites on Google's and AI tools' behalf, it was almost empty. We found out when an AI tool fetched our homepage and reported that there was no text on it.

Here's what was wrong, how we found each problem, and what we changed. If your site is built with a modern JavaScript framework, some of it probably applies to you.

The pages arrived blank

Like a lot of modern sites, ours is an app that builds each page in the browser. A person never notices: the page appears a moment after it loads. But the HTML the server actually sends is an empty box with a script attached.

Google's crawler runs the script and sees the page. Many others don't. The crawlers behind AI tools like ChatGPT, Claude and Perplexity mostly read the raw HTML, and so do link previews when someone pastes your address into a message. To them, every page was blank.

The fix was to render every marketing page ahead of time, when the site is built, and send that finished HTML inside the box. Visitors still get the app. Crawlers get the words.

The fix that never ran

We built that, tested it locally, and shipped it. A few weeks later, another check showed the live pages were still empty.

The step that rendered the pages was in a build script our host never ran. Locally everything worked, so nothing looked wrong. The fix was to attach it to a step the host always runs, and make the build fail if any page didn't render, so it can't quietly go missing again.

The lesson is an old one: check the live site, the way a crawler sees it, not your own copy.

Every address said "found"

Our server answered "page found" for any address at all, even ones that had never existed. The app then showed a not-found message or sent people to the homepage. People were fine. Google saw old addresses that should have been gone, all looking like copies of the homepage, and flagged them as redirects and duplicates.

Now the server knows which pages are real. Anything else gets a proper "not found" and a note asking search engines not to index it. Pages we've removed on purpose, like old blog posts, redirect to the closest live page instead.

The counters said zero

Our homepage and one of our case studies have numbers that count up when you scroll to them. They counted up from zero. So the pre-rendered page, the one crawlers read, said zero, and one case study claimed a load time of under zero seconds.

The counters now start at their real values and only rewind to zero in a visitor's browser, just before they count up. Crawlers read the real number.

Telling machines what's on the page

With the words in place, we made the rest easier to read:

  • Structured data tells search engines who we are, where we work, and how each page fits into the site, and links to our Google Business Profile.
  • A sitemap that builds itself, with a real last-changed date for every page, instead of a hand-written file that was months out of date.
  • An llms.txt file, a plain summary of the business and links to every page, for AI tools that look for one.

Check your own site

You don't need to read code to check for most of this:

  • Paste a link to one of your pages into a text message or a Facebook post. Does the preview show the right title and picture?
  • In Google Search Console, look for pages marked "Crawled – currently not indexed" or "Duplicate". Those are worth asking about.
  • Type a made-up address on your site, like yoursite.co.nz/no-such-page. You should get a "not found" page, not your homepage.
  • If your site has counters or animated numbers, ask your developer what they say before they animate.

We made the same fixes for a client's site after moving it off Wix. There's more on that, and a checklist, on our page about showing up on Google.

Custom Software Solutions NZ services · Case studies