A headless storefront splits your shop in two. The back end holds the catalog, the prices, and the orders. The front end is a separate website that pulls that data and shows it to shoppers. The split gives you design freedom, and it moves work that a hosted platform used to do for you into your own front end code. If that code does not serve complete pages to crawlers, AI systems cannot read your products.

Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path.

Headless is a developer build, not a setting you switch on in an admin. The owner still decides what the store must do, and the marketer still writes the product facts and the content, but the readable part lives in code.

What this guide covers

This guide covers the full job in order. First, confirm what a crawler actually receives from your storefront. Second, choose a rendering approach that serves complete pages. Third, rebuild the crawl basics the platform used to provide: sitemap, robots file, links, and canonical addresses. Fourth, put structured data in the page itself. Fifth, keep prices and stock fresh, and check after every release.

Google says its generative AI features run on the same core ranking and quality systems as regular Search, so the pages that earn a place in Search are the pages that can be retrieved for an AI answer. A headless store that serves complete HTML, with the facts in the page, can be retrieved. A store that serves an empty shell and builds the page in the browser cannot be read by every crawler.

Who does each step

Marketer work is writing product titles and descriptions, prices and stock rules, policies, and content, and checking the live pages in a browser. Developer work is everything in the front end code: the rendering approach, the sitemap, the robots file, the structured data, the links, the redirects, and the release checks. The owner work is deciding the approach, approving the checks, and refusing a launch that skips them. On a hosted platform those basics shipped with the platform. On headless, they ship only if someone builds them.

Step 1: confirm what a crawler actually receives

Before you change anything, look at what your storefront sends to a visitor that runs no JavaScript. Open a product page in your browser, turn JavaScript off, and reload. If the product name, price, stock status, and description are still there, a crawler that does not run JavaScript can read the page. If the page is blank, or shows only a loading message, a crawler that does not run JavaScript sees nothing.

Google can run JavaScript, but it does so in a separate rendering step after the first crawl. Google Search Central says Googlebot queues pages for rendering, that a page may stay in that queue for a few seconds or for longer, and that server side rendering or pre-rendering is still a good idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. Many AI crawlers do not run JavaScript at all. A page that needs JavaScript to show its price is a page those crawlers cannot price.

Ask your developer for a second check: fetch a product page with a plain command line tool that does not run JavaScript, and compare what it returns with what the browser shows. If the two disagree, the gap is the work.

Step 2: choose a rendering approach that serves complete pages

Rendering is the choice of where the page is built. With client side rendering, the server sends a near empty shell, and JavaScript in the browser builds the page. With server side rendering, the server builds the full page for each request. With static rendering, the pages are built ahead of time and served as complete HTML. Google Search Central describes all three, and it recommends server side rendering or pre-rendering for pages that must be found, because the content is in the first response.

For a shop, the rule is simple. Product pages, category pages, and content pages that you want cited must arrive as complete HTML, with the title, the description, the price, the stock status, the links, and the structured data already in the response. Reserve client side rendering for places no crawler should index, such as the account area and the checkout. If your team built the storefront with client side rendering only, that is the fix, and it is a rebuild of the rendering layer, not a setting.

Do not claim a specific framework behaves a certain way unless its own docs say so. Frameworks change, and the same framework can be set up in more than one rendering mode. Ask your developer to name the rendering mode for each page type, in writing, and to show the test from step one passing for each type.

Step 3: rebuild the crawl basics the platform used to provide

On a hosted platform, the sitemap, the robots file, the canonical tags, and the redirects shipped with the platform. On headless, your front end must provide each one.

Start with the sitemap. Google says a single sitemap is limited to 50MB uncompressed or 50,000 URLs, and larger sites must split into multiple sitemaps, optionally under a sitemap index file. Your developer should generate the sitemap from the catalog, not by hand, and it should list only the canonical addresses you want shown in search results, with full absolute URLs. Submit it in Google Search Console. Google says submitting a sitemap is only a hint, and it does not guarantee Google will download the sitemap or use it for crawling.

Next, the robots file. It must allow the crawlers you want, including the AI search crawlers such as OAI-SearchBot and PerplexityBot, and block only what should not be crawled, such as the cart, the checkout, and the account pages. Check it in a browser, and confirm the sitemap line in it points to the live sitemap address. Then the links. Google says it can only discover your links if they are HTML elements with an href attribute, so product and category links must be real links, not buttons that run JavaScript with no address. Finally, the canonical address. Each product should have one canonical address, and every other address for the same product should point to it.

Step 4: put structured data in the page itself

Structured data is the machine-readable version of your product facts, usually written as JSON-LD, and on a headless store it must be generated from the same product data as the visible page. Google says adding Product structured data lets product information appear in richer ways in Search results, including price, availability, review ratings, and shipping information.

The block must be in the initial HTML, not injected by JavaScript after the page loads. If it arrives only after rendering, a crawler that does not run JavaScript never sees it, and a crawler that does must wait for the rendering step. Your developer should generate the block on the server, from the same record that fills the visible price and stock, so the two can never disagree. Confirm the block states the product name, the price with its currency, the availability, and the product identifier, and confirm those facts match what the page shows to shoppers. Test a product with several options too, because templates can behave differently for different product types.

If the block is missing or wrong, the fix is in the front end code, not in an app. One clean block, from one source, is the goal. Do not paste a second block on top of a broken one. Fix the template, then retest the same product and one product of each type.

Step 5: keep prices and stock fresh, and check after every release

A headless storefront can go stale in two places at once. The catalog can change in the back end, and the front end can keep serving an old built page. If your store uses static rendering, a price change must trigger a rebuild of the affected pages, or shoppers and crawlers will keep seeing the old price. If it uses server side rendering, the page is built per request, so the price is fresh, but the build must still read the live record, not a cached copy that never expires. Ask your developer to describe, in plain words, what happens when a price changes. There is no vendor formula for how fast an AI system picks up a price change, so do not accept a promised time.

Add four checks to your release routine. Fetch a product page with JavaScript off and confirm the facts are there. View the page source and confirm one clean structured data block. Confirm the sitemap lists the new or changed addresses and the robots file still allows the crawlers you want. Confirm a price change in the back end appears on the live page, in the structured data, and in the feed.

Machine-readable version you can copy

This section gives you two copy-ready blocks, built only from fields and addresses verified in the vendor docs linked in Sources. Replace the example values with your own facts.

First, an XML sitemap entry. The format comes from Google's sitemap guide, which shows a urlset with a loc element holding the full absolute URL. The lastmod element is optional, and Google says it uses the value only if it is consistently and verifiably accurate, so leave it out unless your build writes true modification times.

code
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/products/potted-fern</loc>
  </url>
</urlset>

Second, a Product JSON-LD block. The type, the name, the offers block, the price, the price currency, and the availability value come from the schema.org Product and Offer pages and from Google's Product structured data guide. This block must be in the initial HTML, not injected by JavaScript after load.

code
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Potted fern, medium pot",
  "offers": {
    "@type": "Offer",
    "price": "24.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}
</script>

Worked example: a plant nursery that found an empty shell

Take a small plant nursery that moved to a headless storefront for a faster design. The owner loved the new look, and sales in the browser were fine. When she turned JavaScript off and reloaded a product page, the page was blank except for a loading message. A crawler that does not run JavaScript saw nothing: no plant name, no price, no stock. Her developer confirmed the storefront used client side rendering for the catalog, and rebuilt the product and category pages to serve complete HTML from the server. The team generated a sitemap from the catalog, fixed the robots file so the AI search crawlers were allowed, changed the product links to real links, and set one canonical address per product. They generated the Product structured data on the server, from the same record as the visible price. A shopper then asked an AI assistant for a potted fern in a medium pot that was in stock. The assistant could check the product page, confirm the price and the stock, and name the nursery.

Frequently Asked Questions

Can Google read a headless storefront?

Google can run JavaScript, but it does so in a separate rendering step after the first crawl, and Google says a page may stay in that queue for a few seconds or for longer. Many AI crawlers do not run JavaScript at all. Serve product and category pages as complete HTML.

Is client side rendering ever right for a shop?

Yes, for places no crawler should index, such as the account area and the checkout. It is not right for product pages, category pages, or content pages you want cited.

Do I still need structured data if the page looks complete?

Yes. The visible page is for shoppers. The structured data block is the machine-readable version of the same facts, and it must be in the initial HTML, generated from the same product record as the visible price and stock.

How do I know the fix worked?

Turn JavaScript off and reload a product page. If the name, price, stock, and description are there, the page is readable without rendering. Then view the source, confirm one clean structured data block, and confirm a price change appears on the live page.