Blog

Single Page App SEO: What Google Sees and How to Fix It

November 29, 2026

Single page app SEO works when every page that should rank sends real HTML on first load, with its own URL, title and links. Google can run your JavaScript. If the first HTML is an empty shell, though, your content waits for a second rendering pass, and some bots may never make that pass.

You don't need to rebuild your app. Most of the work is deciding which pages need to be found on Google and making sure those pages don't wait on JavaScript. This guide is for founders and site owners as well as developers. It gives you a test you can run yourself, the fixes to ask for and the rendering choice to make.

Want articles that bring search traffic to your SaaS without writing them yourself? Start free and get your SEO plan. No card needed.

Is a single page app bad for SEO?

No, but it's easier to get wrong. A single page application (SPA) loads one HTML file, then JavaScript builds every view in the browser. Open "view source" on a typical React, Vue or Angular SPA and you'll often find an almost empty <div id="root"> and a few script tags.

Google handles this in two steps. First it crawls the page. Any page that returns a 200 status then goes into a rendering queue, where a headless Chromium runs the JavaScript (Google Search Central). That works, but the content only exists after rendering. Social preview bots and AI crawlers may not run your JavaScript at all, so assume they only read the first HTML. If that HTML is empty, ChatGPT or Perplexity may have nothing to quote from your page.

So the real problem isn't "SPA vs Google." The problem is that your marketing pages are built like app screens.

SSR, static, prerendering or client-only: which one to pick

This choice matters more than anything else in this guide. Here's how the four options compare for SEO.

Rendering What bots get on first load Good for Watch out for
Client-side only An empty shell. Content appears after JS runs Logged-in dashboards, tools behind a login Pages you want to rank
Server-side rendering (SSR) Full HTML built for each request Product pages, pricing, content that changes often Server cost and complexity
Static generation (SSG) Full HTML built at deploy time Blog, landing pages, docs, features You have to rebuild to update content
Prerendering service A rendered HTML snapshot served to bots Older SPAs you can't migrate yet Snapshots must match what users see

Which one to use:

  • SaaS with an app and a marketing site: keep the app client-side and move every public page to static generation or SSR. Next.js, Nuxt, Astro and SvelteKit all support this.
  • Content or e-commerce site built as a pure SPA: switch to SSR or static generation. Prerendering is a short-term fix, not a plan.
  • Legacy SPA with no budget to migrate: prerender now, then plan the move. Serve bots the same content users see. Otherwise it starts to look like cloaking.

Running a SaaS where the product is the SPA but the traffic should come from Google? See how we handle SEO for SaaS sites. The crew writes researched articles with their sources and publishes them on the part of your site you connect, ideally a static or server-rendered blog.

The 5-minute test: what Google sees on your SPA

You can check this yourself before you ask a developer anything.

  1. View the source. Right-click a key page and choose "View page source" (not "Inspect"). Search for a sentence from your main heading. If it isn't there, the page needs JavaScript to show its content.
  2. Inspect the URL in Search Console. Paste the address into URL Inspection and run "Test live URL". Then open "View tested page" and look at the rendered HTML and the screenshot. If text is missing there, Google isn't getting it either.
  3. Check the titles. Open three different pages and compare the titles in the browser tabs. If they're all the same, every view shares one title and description.
  4. Click a link, then reload. If the reloaded URL shows the wrong page or an error, your routes aren't real URLs.
  5. Try a URL that doesn't exist. Go to /this-page-does-not-exist. If you see a "not found" message in a normal page layout with no noindex, you have a soft 404.

Our free SEO checker is a quick way to check the basics of a page before and after the fixes.

SPA SEO checklist: the fixes to ask your developer for

Send this list to your developer or agency. Each item comes from Google's JavaScript SEO basics.

  • One clean URL per view. Use the History API (/pricing), never fragments (/#/pricing). Google can't reliably resolve fragment URLs.
  • A unique title, meta description and canonical for every view. If JavaScript injects the canonical, it must match the one in the original HTML and be the only canonical on the page.
  • Links as <a href>. Googlebot finds links through <a> elements that have an href. It can't see a div or button that only has a click handler.
  • Real 404s. For a missing page, redirect to a URL where the server returns a 404, or add a noindex robots meta tag to the error view.
  • No noindex that JavaScript removes later. If Google sees noindex in the first HTML, it may skip rendering, so removing it with JavaScript won't reliably work.
  • A sitemap with every public URL, and a robots.txt that doesn't block your JS or CSS files.

Keep the pages that should rank out of the app

Most SPA guides skip this advice. Your blog, feature pages, pricing and service pages don't have to be part of the app.

One setup that works: the app runs on app.yoursite.com, and the marketing site and blog run on the main domain as static HTML. Another: the blog sits in a /blog subfolder built by a static generator. Either way, the pages people should find are fast and crawlable, and every bot can read them. The app team can also ship without touching SEO.

If you're still building your content plan, our SaaS SEO strategy guide covers which pages to create first.

Core Web Vitals and page views in an SPA

SPA owners often fall into two measurement traps.

The first is Core Web Vitals. In Chrome's field data (CrUX), an SPA's metrics are tied to the URL where the visitor first landed, even if they move through many views afterward (DebugBear). A slow dashboard can drag down the numbers reported for your landing page.

The second is analytics. Route changes don't reload the page, so a basic tag may count only one page view per session. Make sure your analytics tool sends a page view on every route change. Otherwise your blog will look like it gets a fraction of its real traffic.

How AI SEO Crew handles this

AI SEO Crew writes researched articles with their sources and publishes them on the site you connect. That can be WordPress, Webflow, Wix, Framer, Shopify, GitHub (Next.js, Astro, Hugo, Jekyll) or any other site by webhook. After publishing, it resubmits your sitemap in Search Console and pings IndexNow.

For an SPA, connect the part of your site that serves HTML, like a static or server-rendered blog, as this guide recommends. Google and other bots can then read the articles on first load.

Your app can stay a SPA while your content brings in the traffic. Start free and see your SEO plan. No card needed.

Frequently asked questions

Can Google crawl and index a single page application?

Yes. After crawling, Google renders JavaScript with a headless Chromium, so it can index SPA content. Rendering happens in a queue, though, and script errors or blocked resources can leave Google with an empty page.

Do I need server-side rendering for single page app SEO?

Not for every page. The pages you want to rank, like the blog, pricing and features, need SSR or static HTML. Logged-in app screens can stay client-side.

Is prerendering considered cloaking?

Not if the snapshot shows bots the same content users see. It becomes a problem when the version for bots has different text or links. Treat prerendering as a bridge until you can move to SSR or static generation.

How do I give each view of my SPA its own title and meta description?

Use your framework's head manager to set the title, description and canonical on each route. Examples are the metadata API in Next.js and useHead in Nuxt. Then check the result with URL Inspection in Search Console.