Single Page Application SEO: How to Test What Google Can See
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.
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 links, metadata and missing routes
| 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
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.