If your online store displays its products with JavaScript, ChatGPT may not see them at all. That means AI can’t recommend your products, even if they’re the best in their category.
I’ve audited the AI visibility of many online stores, and in this article I’ll walk you through where to start if you want AI to mention your brand and send visitors to your site. Follow this order:
- Make sure AI bots can access your site.
- Fix JavaScript rendering so bots see the same content as users.
- Measure your visibility and optimize your content based on what you find.
Watch the video (in Finnish) or read the summary below.
1. Make sure AI bots can access your site
If AI bots can’t get to your site, they can’t read anything about your brand or your products. It sounds obvious, but it’s surprisingly often left unchecked.
Check your robots.txt
Check that your robots.txt file doesn’t block the bots of AI companies. The most important ones are:
- OpenAI: OAI-SearchBot (ChatGPT search), ChatGPT-User (fetches made on a user’s request) and GPTBot (model training)
- Anthropic: Claude-SearchBot, Claude-User and ClaudeBot
- Perplexity: PerplexityBot
- Google: Googlebot. Google-Extended only covers Gemini training, not AI Overviews or AI Mode, which use the regular Googlebot.
You can decide separately whether to allow training bots. Search bots, however, should be let in, because they fetch information for AI answers in real time.
Check your CDN and firewall too
robots.txt isn’t the only place where bots get blocked. A CDN or firewall can block AI bots even if nobody has touched robots.txt. Cloudflare, for example, started blocking AI crawlers by default on new sites in 2025.
So check your CDN settings and server logs. Do you see visits from AI bots, and are they getting your pages or being blocked?
2. Fix JavaScript rendering
AI bots usually don’t read JavaScript. If your products, links or text only appear on the page through JavaScript, AI may not see them.
Why Google sees it but AI doesn’t
Modern and larger online stores often use a lot of JavaScript to render content on the client side, meaning in the user’s browser. The user sees everything, but the same content isn’t necessarily in the source code, the server-side render.
Googlebot reads the source code first. There it finds the menu, links, and category and product texts, if they’ve been included. If something is missing, Google comes back later, renders the JavaScript and finds, for example, the products on a category page.
AI bots don’t work like this. They usually only read the source code. That’s why everything important needs to be there: product names, links, category texts and the menu.
Example: a bestseller category
Say you have a bestseller category with your store’s most popular products. If those products are rendered with JavaScript and aren’t in the source code, AI doesn’t know which products belong to the category. So it can’t tell anyone about them.
Test it yourself in two minutes
Ask Claude or ChatGPT: “Which products are in this store’s category [URL]?” If the AI can read the page, it will list the products. If it can’t, it will usually tell you so.
Then ask a follow-up: “How do you know about our products if you can’t see them in the category?” The answer often reveals that the AI is using other sources, such as your articles and their internal links. It’s essentially navigating its way through your site. It does find an answer, but it takes more time and tokens, which makes it more expensive for the AI.
Compare the answer with what’s actually on the page, since AI can also guess products. This test is a quick indication, not a technical audit.
Fix it without your own developer
If your site is large and you don’t want to fix everything yourself, you can use a prerendering tool such as prerender.io. It serves bots a pre-rendered version of the page, so the JavaScript content is visible to both AI bots and Googlebot.
What matters most is that AI can see your products and everything else currently hidden behind JavaScript. Otherwise, the rest of your optimization won’t pay off.
3. Measure your AI visibility
Once bots can see your site, find out where your brand currently appears in AI answers. Free tools will get you a long way.
- Google Search Console: the AI report shows how many impressions your pages have had in Google AI Overviews and AI Mode.
- Bing Webmaster Tools: Bing provides data from Copilot and Microsoft’s partners.
- Google Analytics: filter referral traffic and use a regex to pick out AI tools such as ChatGPT, Claude, Perplexity and Gemini. Track monthly whether traffic from them is growing.
- Semrush or Ahrefs: check whether your pages appear as sources in AI search.
Example regex filter for Google Analytics:
chatgpt\.com|openai\.com|claude\.ai|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com
Track your own prompts
For optimization work, you need prompt tracking. I currently use Surfer AI Tracking, where you add the prompts you want to follow.
Pick, for example, your 30 most important products or product categories and create prompts around them. The tracking shows how your site and brand appear compared to your competitors.
By grouping the prompts, you can also see which product groups are highly visible and which are weak. The weakest groups are a good place to start optimizing.
Find out which pages AI uses as sources
Before you write anything new, look at what kinds of pages appear as sources in AI answers. They tell you which type of content is worth investing in.
Go through each prompt and ask:
- Are the sources product pages, category pages, or articles and other informational pages?
- Are they brands’ and stores’ own pages, or third-party sites such as blogs, top lists and “best of” articles?
Top lists and comparisons show up as sources often, because AI tools like to surface them.
Fan-out queries reveal what AI is looking for
When AI answers a prompt, it breaks the question into several smaller searches and uses them to gather background information. These are called fan-out queries. Surfer, at least, shows them directly.
Fan-out queries show you what information AI needs to answer. If the same queries come up across many prompts, include them in your own content.
Optimize your own site first
Optimizing your own site always pays off, even if you’re also aiming for visibility on other sites. AI often looks for confirmation of its answer directly on the brand’s own site.
Based on the sources:
- If your own page is already a source, optimize it.
- If it isn’t a source at all, improve the content or create a new page. If the sources are articles, write an article on the topic.
You can use agentic tools for the analysis. Find out what your competitors’ pages include and what information your page needs so that AI can give a complete answer from it.
How to write an article AI will pick up
- Answer the question right at the start of the text, ideally in the introduction.
- Write list, comparison and review articles, or explain how your own products solve this exact problem.
- Write directly and cut the filler, so the answer is easy for AI to extract.
- Cover the topics that came up in the fan-out queries.
Don’t forget your product data
For an online store, text is only part of the picture. AI shopping features such as Google’s AI Mode and ChatGPT shopping use product feeds and structured data. At minimum, check these:
- Product schema on product pages: name, price, availability, reviews and product identifiers such as GTIN.
- Your Google Merchant Center feed is up to date and covers your full range.
- A product feed for other AI platforms too, such as ChatGPT, where possible.
Build brand mentions on other sites
If AI’s sources are mostly third-party pages, your own site isn’t enough. The goal is to get your brand onto the pages AI already uses as sources.
- Use your prompt tracking to find which top lists, comparisons and blogs rank highest among the sources.
- Work on getting your brand or products onto those lists.
- Build brand mentions and publications that talk about your brand.
When your brand is discussed across multiple sources, AI is more likely to mention it in its answers too.
In short: where to start
- Ensure access. Check robots.txt, your CDN and firewall, and test whether AI can see your pages.
- Fix JavaScript. Get products, links and text into the source code yourself or with a prerendering tool such as prerender.io.
- Measure and prioritize. Track prompts for your key products and services, identify the sources and fan-out queries, and decide where to start with content.
Only then is it worth investing in content: get your own site in shape, get your product data in order, and build brand mentions on other sites.
Need help?
I help online stores and B2B companies audit their AI visibility and work out exactly where to start. Read more about my services at dahlinseo.agency, or find me on LinkedIn and my YouTube channel. If you have questions, leave a comment.