Free auditStart free
GlossaryGlossary · SPA SEO

SPA SEO

SPA SEO is making a single-page application discoverable in search. See how Google renders JavaScript, crawlable links, status codes, and routing fixes.

3 min
read
3
sources
Oct 21, 2026
updated
Scaplet Editorial Team
author
In one line

SPA SEO is the work of making a single-page application discoverable and indexable in search. Google renders JavaScript with an evergreen Chromium, so SPAs can be indexed, but you must use real URLs, crawlable links, meaningful status codes, and unique titles. Google still recommends server-side or pre-rendering, since it speeds up pages and not all bots run JavaScript.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

Why SPAs are different

A single-page application loads one HTML shell and uses JavaScript to swap content as the user moves around. Google's JavaScript SEO guide says some sites use the app shell model, where the initial HTML does not contain the actual content and Google needs to execute JavaScript before it can see the page content.

Google processes JavaScript web apps in three phases: crawling, rendering, and indexing. Googlebot queues all pages with a 200 status code for rendering, unless a robots meta tag or header says not to index the page. A headless Chromium then renders the page when Google's resources allow, and the rendered HTML is what Google indexes. The wait can be a few seconds or longer.

02At a glance

Fixes that matter most

Problem

Fragment URLs such as #/products

What Google says
Googlebot can't reliably resolve fragment URLs
Fix
Use the History API so each view has a real path such as /products
Problem

Click handlers instead of links

What Google says
Google can only crawl <a> elements with an href
Fix
Use <a href>; JavaScript may still handle the click
Problem

Every route returns 200

What Google says
Client-side routing can make real status codes impractical, causing soft 404s
Fix
Redirect to a URL that returns 404, or add noindex to error views
Problem

One title for every view

What Google says
Unique descriptive titles help users pick the result
Fix
Set <title> and meta description per route; JavaScript is allowed
Problem

Canonical changed by script

What Google says
Don't change the canonical to something other than the HTML's value
Fix
Set it in the HTML, or set it only once in JavaScript
03Check it

Handle error views

Google's docs give two strategies to avoid soft 404 errors in client-side apps: redirect with JavaScript to a URL where the server answers 404, such as /not-found, or add a noindex robots meta tag to the error view with JavaScript.
Redirect approach from Google's docs
fetch(`/api/products/${productId}`)
  .then(response => response.json())
  .then(product => {
    if (product.exists) {
      showProductDetails(product);
    } else {
      window.location.href = '/not-found'; // server returns 404
    }
  });
04Explained

Rendering choice

Google says server-side or pre-rendering is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. Google's docs say dynamic rendering, where a server detects bots and serves them a server-rendered version, was a workaround and not a long-term solution, and recommend server-side rendering, static rendering, or hydration instead.

Whether you need it depends on the content. Pages behind a login don't need to rank. Public pages that must rank are the first candidates for server-side or static output.

05How it works

Check it in 2 minutes

  1. 1

    Inspect a live URL

    Paste a route into the URL Inspection tool and open the rendered HTML.

  2. 2

    Look for your content

    Confirm the headline, body text and links appear in the rendered HTML, not just in the shell.

  3. 3

    Check the links

    View source or the DOM and confirm navigation uses <a href> with real paths.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Understand JavaScript SEO basicsdevelopers.google.com · checked 2026-10-25
  2. 02Link best practices for Googledevelopers.google.com · checked 2026-10-25
  3. 03Dynamic rendering as a workarounddevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Can Google index a single-page app?

Yes. Google runs JavaScript with an evergreen version of Chromium and indexes the rendered HTML, but the page may wait in the rendering queue.

02Should I use hash URLs in a SPA?

No. Google says don't use fragments to load different page content, because Googlebot can't reliably resolve them. Use the History API.

03Is server-side rendering required for SPA SEO?

Not strictly, but Google still recommends server-side or pre-rendering because it makes the site faster and not all bots can run JavaScript.

04How do I avoid soft 404s in a SPA?

Redirect to a URL that returns a 404 status, or add a noindex robots meta tag to error views with JavaScript.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly