Website & app builders · E-commerce platform · Checked 2026-10-18
Shopify SEO for ChatGPT, Perplexity & AI search
Built your site with Shopify? Here is what Shopify's own documentation says about how AI crawlers see it, and the exact settings for robots.txt, llms.txt, structured data and your sitemap. Sources are listed at the bottom.
Is your Shopify site visible to AI? Check it free
Paste your live URL. RankRoot checks your robots.txt rules for the ChatGPT, Perplexity and Claude crawlers, whether your page text is in the HTML without JavaScript, and your llms.txt and JSON-LD.
Free, no signup. 20+ checks across ChatGPT, Perplexity, Claude, Google AI and AI agents.
How Shopify delivers pages to crawlers
Shopify's developer docs say "Shopify renders Liquid templates server-side on every page request", and recommend rendering essential content in Liquid and HTML rather than client-side JavaScript. If a framework is needed, Shopify points to server-side rendering with Hydrogen. Headless storefronts are outside Liquid, so check those separately.
Why it matters: many AI crawlers don't run JavaScript. If your text only appears after scripts run, they may see an empty page.
Make your content readable without JavaScript
- Keep product details, hero content and navigation in Liquid and HTML. Shopify says moving them into client-side JavaScript delays loading and harms SEO.
- Turn off password protection when you launch. Shopify notes crawlers can't reach a store in private mode.
- Run the free audit on your store's primary domain.
robots.txt: let AI search crawlers in
- Every store has a default
robots.txtthat Shopify says works for most stores. You can usually leave it alone. - To customize it: Online Store > Themes > ... > Edit code > Add a new template > robots > Create template. This creates
robots.txt.liquid. - Open your current
/robots.txtfirst. If no group names OAI-SearchBot, PerplexityBot or Claude-SearchBot, those crawlers follow theUser-agent: *group, and you may not need a template at all. - In the template, keep the Liquid loop over
robots.default_groupsand add your own groups after it. Shopify strongly advises against replacing the template with plain text, because rules can go out of date. - Shopify warns this is an unsupported customization, its support can't help with it, and mistakes can lose you all traffic. Save a copy of your current
/robots.txtfirst and compare.
{% for group in robots.default_groups %}
{{- group.user_agent -}}
{% for rule in group.rules %}
{{- rule -}}
{% endfor %}
{%- if group.sitemap != blank -%}
{{ group.sitemap }}
{%- endif -%}
{% endfor %}
User-agent: GPTBot
Disallow: /Which bots to allow or block: robots.txt for AI crawlers and the AI crawler list.
Add llms.txt
- You may not need to do anything. Shopify serves
/llms.txtby default by mirroring/agents.md, its canonical agent-discovery file. - To change the agent-facing content for
/agents.md,/llms.txtand/llms-full.txttogether, add anagents.md.liquidtemplate. - Only if
/llms.txtmust differ from/agents.md: Online Store > Themes > ... > Edit code, right-click Templates > New File, name itllms.txt.liquid. It accepts text, Markdown and Liquid, but only therequestandagentsobjects are available (noshop,collectionsorarticles). - The file is served at your bare primary domain, without a locale or Markets prefix. Check it with the llms.txt validator.
Add JSON-LD and head code
- Theme head code lives in
layout/theme.liquid, inside<head>. Shopify's SEO docs put title, meta description and canonical tags there. - For products and articles, Shopify's
structured_dataLiquid filter outputs schema.org JSON-LD (Product or ProductGroup, and Article). Many themes already include it, so check your page source before adding a second copy.
<script type="application/ld+json">
{{ product | structured_data }}
</script>Sitemap
- Shopify generates
sitemap.xmlautomatically at the top level of each of your domains, with links to products, primary product images, pages, collections and blog posts. - Verify your domain in Google Search Console and submit
sitemap.xml. If you use international domains, submit each one.
Common mistakes
- Replacing robots.txt.liquid with plain text. Shopify says rules may go out of date and mistakes can cost all your traffic.
- Adding a User-agent group for an AI crawler and forgetting it no longer follows the
*group. A crawler uses only the most specific group that names it, so repeat any Disallow lines you need (such as cart and checkout paths) in that group. - Launching with password protection on. Crawlers can't read a store in private mode.
- Adding llms.txt.liquid when agents.md.liquid would do. Shopify recommends agents.md.liquid for most customizations.
- Duplicating Product JSON-LD that the theme already outputs.
Rather have this done for you?
The AI Visibility Employee looks after AI visibility for your Shopify site every month, fully by email, no calls:
- Weekly tracking of how ChatGPT, Perplexity, Gemini and Claude mention you for your buyers' questions
- 4 answer-ready pages a month, published through our WordPress plugin or a GitHub pull request, or delivered as drafts you add in Shopify
- Ongoing llms.txt, robots.txt and JSON-LD fixes wherever your setup allows them, and a monthly report
$149/month, cancel anytime. The first 10 customers pay $99/month with code FOUNDING10.
See the AI Visibility EmployeeFAQ
Does Shopify have llms.txt?
Yes. Shopify serves /llms.txt by default by mirroring /agents.md. You can customize it with an agents.md.liquid or llms.txt.liquid theme template.
Is my Shopify store visible to ChatGPT?
Shopify renders Liquid themes on the server, so crawlers get full HTML. Make sure the store isn't password-protected and robots.txt doesn't block AI search crawlers. Shopify also notes that blocking AI crawlers affects only open-web discovery, not Shopify Catalog data sent to activated agentic storefronts.
How do I edit robots.txt on Shopify?
Create a robots.txt.liquid template in your theme (Online Store > Themes > Edit code > Add a new template > robots), keep the default Liquid groups, and add your rules after them.
Does Shopify add product schema automatically?
Shopify provides a structured_data Liquid filter that outputs Product and Article JSON-LD. Whether your store uses it depends on your theme, so check the product page source.
Sources
- Shopify Dev: Theme performance best practices (server-side Liquid) (read 2026-10-18)
- Shopify Dev: Render essential content in Liquid and HTML, not JavaScript (read 2026-10-18)
- Shopify Help: Editing robots.txt.liquid (read 2026-10-18)
- Shopify Dev: robots.txt.liquid (read 2026-10-18)
- Shopify Dev: llms.txt.liquid (read 2026-10-18)
- Shopify Dev: agents.md.liquid (read 2026-10-18)
- Shopify Dev: Add SEO metadata to your theme (read 2026-10-18)
- Shopify Dev: structured_data Liquid filter (read 2026-10-18)
- Shopify Help: Finding and submitting your sitemap (read 2026-10-18)
Facts checked against Shopify's documentation on 2026-10-18. RankRoot is not affiliated with Shopify. Settings move around; if a step has changed, email rankroot.support@proton.me.
Other builders
Lovable · Bolt.new · Replit · v0 · Framer · Webflow · Wix · Squarespace · WordPress · Ghost · GitHub Pages · Carrd · Hostinger AI Builder · Notion Sites · Netlify · Vercel · Cloudflare Pages & Workers