Headless Shopify and AI crawlers: what bots see on a Hydrogen storefront

Most AI crawlers do not run JavaScript. What that means for headless and Hydrogen storefronts, which Shopify AI features differ, and what to check.

In short

Most AI crawlers, including OpenAI's and Perplexity's, do not run JavaScript, so they only see what a storefront sends in its first HTML response. A headless or Hydrogen store that renders product text on the server is fine. One that loads descriptions, prices or reviews in the browser after the page loads can look empty to them. Custom storefronts also get a reduced Shopify knowledge base, where you add facts yourself, so check what reaches the agents through Shopify Catalog and the knowledge base.

In our experience, brands go headless for speed and design freedom. Those are good reasons. Going headless also moves a lot of decisions, including what a bot sees, from Shopify's themes to your own code.

Our reading is that, for AI visibility, this cuts both ways. A well built headless store can be cleaner for crawlers than a theme with ten apps. A badly built one can serve them a loading spinner.

Most AI crawlers do not run JavaScript

A Vercel and MERJ analysis found that none of the major AI crawlers, OpenAI's and Perplexity's included, render JavaScript, with Gemini and Applebot as the exceptions. The non-rendering crawlers see the HTML the server sends, not what scripts add afterward.

So a useful test for any storefront is the same: open the page source, not the browser's inspector, and search for your product description, price and a review sentence. If they are in the source, the crawlers can read them. If they appear only after scripts run, most AI crawlers cannot. Why your Shopify product is not showing up in AI search covers the same test for themes.

What we see break on headless stores

The patterns below are from our own audits, not a measured survey.

ContentCommon headless patternWhat crawlers see
Product descriptionFetched client-side after loadNothing, or a placeholder
Price and availabilityLoaded from an API in the browserMissing or stale
ReviewsInjected by a review widget scriptMissing
FAQ and tabsContent loaded when a tab is clickedMissing
Structured dataAdded by client-side codeOften missing for non-rendering crawlers
Meta title and descriptionSet per route on the serverUsually fine

Our recommendation is the same everywhere: render the content that decides a purchase on the server, in the first response.

Hydrogen specifics

Shopify's Hydrogen SEO documentation covers the parts Shopify provides. SEO tags are set per route and rendered in the document head. The base template includes sitemap and robots.txt routes, both cached for 24 hours by default, so changes can take up to a day to appear. On Oxygen, robots.txt is served only in production with a custom domain. Non-production deployments shared through a link or bypass token get a robots.txt that disallows all bots, which we find sensible for staging and surprising if a preview URL is ever the one you share widely.

Two things to confirm on a Hydrogen store:

  • Your robots.txt route explicitly allows the crawlers behind ChatGPT, Perplexity, Gemini and Google AI Mode. AI crawlers explained lists them.
  • Product text, price, availability and reviews are in the server-rendered HTML, not streamed or fetched after the first response.

Shopify's AI features on custom storefronts

Some of Shopify's AI tooling works differently on custom storefronts:

We think that last point is worth stressing. When we started with Pipa Skin Care, 17 of 18 products had no product type. A beautiful custom front end would not have fixed that. Admin data is the same whatever renders it.

A short checklist

CheckHow
Product text in first HTMLView source, search for a description sentence
Price and stock in first HTMLView source, search for the price
Reviews in first HTMLView source, search for a review sentence
Structured data server-renderedView source, search for application/ld+json
robots.txt allows AI crawlersOpen /robots.txt on the production domain
Sitemap lists all productsOpen /sitemap.xml
Catalog data complete in adminCategory, type and attributes on every product
Knowledge base facts addedSales channels, Agentic, Knowledge base

Questions we get about this

Is headless worse for AI visibility than a Shopify theme?

Not inherently, in our view. It depends on what the server sends. A headless store that renders everything on the server can be cleaner than a theme full of client-side apps.

Do I need prerendering for AI crawlers?

Only if your storefront currently sends empty HTML for product content. We think server-side rendering of the content that matters is the cleaner fix. For Google, its guide to AI features says there are no additional requirements or special optimizations for AI Overviews or AI Mode: the page must be indexed and eligible to show with a snippet.

AAnna Kapp

Article by

Anna Kapp
GEO Research & Customer Success

Anna Kapp looks after Alethia's customers and leads the team's GEO research, helping Shopify brands understand and improve how ChatGPT, Perplexity, Gemini and Google AI Mode recommend them. She also drives Alethia's own GEO and helps shape a better product with every insight she brings back. She loves turning complex topics into simple, clear explanations and connecting small details to the bigger picture. Outside work, you'll find her surfing, planning her next trip or hunting for the best black coffee in whatever city she's in.

No commitment

See how AI is selling your products.

Get your free Alethia AI report and see where your brand stands across the AI platforms your customers are already using.