Single Page Application SEO: How to Test What Google Can See

2 January 2026 (Updated on 14 November 2026) 3 min read Technical SEO

Test the URL as someone landing from Google would

Open an important route directly in a fresh browser tab. Fetch its initial HTML and compare it with the rendered page. A route can work after clicking through from the homepage and still fail when loaded directly. Run the same checks on a valid route, a removed route and a deliberately invalid path.

How a single page application loads JavaScript

The JavaScript rendering guide explains where client-side rendering, server rendering and prerendering fit.

Before and after: make the first response useful

Consider a store where the initial HTML includes only an app shell and a category control. Client code populates the product name and changes routes after the app starts.

<title>Store</title>
<div id="app"></div>
<button data-route="/products/">Browse products</button>

After server rendering or prerendering, a valid product’s initial response includes a page-specific title and canonical, the product content and a crawlable link. Hydration can still add interactive controls.

<title>Trail Running Shoes | Example Store</title>
<link rel="canonical" href="https://example.com/products/trail-shoes/">
<main id="app">
  <h1>Trail Running Shoes</h1>
  <p>Lightweight trail shoes with a grippy sole.</p>
  <a href="/products/">Browse all products</a>
</main>

Google can render JavaScript. This setup makes those elements available before the app fetches data or runs client code. Confirm the rendered canonical still matches the initial one.

Test What to look for
Fetch the initial HTML with a GET request Record the status, title, canonical, robots directives, main content and native links.
Reload the route directly in a browser Inspect the rendered DOM and network errors. Check whether blocked scripts or a failed data request hide the content.
Run Search Console’s live URL test Compare rendered HTML and screenshots with the intended page. Check the indexed view separately for what Google last processed.
Open an invented product URL Prefer a server-side 404 for a missing route. For a client-rendered fallback that responds with 200, Google documents redirecting to a server-side 404 or adding noindex to the error view.
Inspect routing Give distinct public content distinct URLs via the History API. Use meaningful hrefs and test deep links before client-side navigation.

Review performance after testing crawlability

Loading JavaScript in route-specific chunks

Split bundles by route and defer optional widgets. Keep the product description and important navigation available on a direct load. Use the Core Web Vitals testing workflow to check whether hydration or long tasks hurt the experience. See Google’s JavaScript SEO guidance.

Frequently Asked Questions

Can Google index a single page application?
Google can render JavaScript. Public routes should work on direct requests and expose their main content, links and indexing directives.
How do you test SPA crawlability?
Compare the initial GET response with the browser’s rendered DOM and the rendered HTML from a live URL Inspection.
What should a missing SPA route return?
Prefer a server-side 404. For a fallback that serves 200, Google documents using a server-side 404 destination or adding noindex to the error view.
Jimmy Harris

Written by

Jimmy Harris

Technical SEO Specialist

Jimmy Harris is a technical SEO specialist focused on improving website performance, crawlability, and search visibility through practical, data-driven optimisation.

He works at the intersection of development and marketing, helping teams resolve complex technical issues such as site architecture, page speed, structured data, and indexing challenges. Jimmy specialises in translating SEO requirements into clear technical actions, ensuring websites are built in a way that search engines and users both understand.

With a strong background in performance optimisation and large-scale site audits, Jimmy takes a problem-solving approach to SEO, favouring measurable improvements over guesswork.

Technical SEO audits Site architecture and internal linking Core Web Vitals and performance optimisation Indexing and crawl budget management Structured data and schema implementation
View author profile