AI & ML

AI Visibility Scores Explained: What Ecommerce Developers Can Measure and Fix

· 5 min read
Community Article
Community articles are authored by SitePoint Premium contributors. Content is screened before publication, and SitePoint reserves the right to moderate or remove articles that violate our guidelines. Views expressed are those of the authors and do not necessarily reflect those of SitePoint.

AI Visibility Scores Explained: What Ecommerce Developers Can Measure and Fix

Published in
AI·
·Updated:

The AI briefing for Developers

Stay up to date with AI tools, model releases, and developer workflows that matter.

Weekly. Free. One click to leave.

Share this article

AI Visibility Scores Explained: What Ecommerce Developers Can Measure and Fix
SitePoint Premium
Stay Relevant and Grow Your Career in Tech
  • Premium Results
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
Start Free Trial

7 Day Free Trial. Cancel Anytime.

Ask an AI assistant for the best wireless earbuds under $200, and you'll get a short list of four or five products with a sentence or two about each. There's no page two and nothing to scroll past. If your product is on that list, an AI has just recommended it to a shopper who is ready to buy. If it isn't, that shopper may never know you exist.

That shift has given rise to a new metric: the AI visibility score, a measure of how often, and how accurately, AI assistants mention a brand when people ask shopping questions. This article explains what the score measures, how you can calculate a basic version yourself, and, most importantly for developers, which technical changes to a store actually influence it.

Key takeaways

  • An AI visibility score tracks how often your brand and products appear in AI shopping answers, and how accurately they're described.
  • You can build a simple version with a fixed prompt set and a short script.
  • Crawler access, server-rendered product data and accurate structured data are the parts developers control directly.
  • Independent sources, especially genuine customer reviews, strongly shape what AI assistants say.

Why AI Answers Change Product Discovery

Traditional SEO is about ranking pages: the shopper sees a list of results and chooses where to click. AI assistants work differently. They draw on many sources, such as retailer listings, reviews, forum threads and editorial roundups, and combine them into a single answer. Many shoppers never visit a store page during their research.

This creates a measurement gap. You can rank well in classic search and still be missing from AI answers, and your analytics won't tell you. There's no impressions report for a conversation inside a chat app. An AI visibility score is an attempt to fill that gap.

There is one partial exception. Google's documentation on AI features in Search notes that sites appearing in AI Overviews and AI Mode are included in Search Console's Performance report, so you do get some data for Google's AI surfaces.

What the Score Measures

There's no single industry standard yet, but most approaches combine a similar set of signals:

  • Mention rate: how often your brand appears in answers to relevant shopping questions.
  • Product coverage: which of your products get recommended when people ask about your categories.
  • Position: whether you're named first, mentioned in passing or listed last.
  • Competitor share: how often competitors appear for the same questions, and ahead of whom.
  • Accuracy: whether the assistant describes your prices, features and policies correctly.

The last point is easy to overlook. Being mentioned with the wrong price or a feature you discontinued last year can do more harm than not being mentioned at all.

Calculating a Basic Score Yourself

The method behind most visibility tools is straightforward: send a fixed set of realistic shopper prompts to several AI models, then analyse the answers. You can build a basic version in a few dozen lines of Python.

Start with prompts that reflect how real customers ask questions, including comparison and "is it worth it" questions, not just category searches. Because AI answers vary from one request to the next, run each prompt several times rather than once.

import re
from collections import Counter

PROMPTS = [
    "What are the best running shoes for flat feet?",
    "Which running shoes have good arch support under $150?",
    "Is YourBrand worth the price for marathon training?",
]

BRANDS = ["YourBrand", "CompetitorA", "CompetitorB"]


def ask(model: str, prompt: str) -> str:
    """Send one prompt to one AI assistant and return its text answer.
    Implement this with the official SDK for each provider you test."""
    raise NotImplementedError


def find_mentions(answer: str, brands: list[str]) -> dict[str, int]:
    """Return each brand mentioned in the answer, with the position of its first mention."""
    found = {}
    for brand in brands:
        match = re.search(rf"\b{re.escape(brand)}\b", answer, re.IGNORECASE)
        if match:
            found[brand] = match.start()
    return found


def visibility_report(models, prompts, brands, runs=3):
    total = 0
    mentioned = Counter()
    named_first = Counter()

    for model in models:
        for prompt in prompts:
            for _ in range(runs):  # answers vary, so sample each prompt several times
                answer = ask(model, prompt)
                total += 1
                found = find_mentions(answer, brands)
                mentioned.update(found.keys())
                if found:
                    named_first[min(found, key=found.get)] += 1

    for brand in brands:
        print(f"{brand:<12} mentioned {mentioned[brand] / total:6.1%}"
              f"   named first {named_first[brand] / total:6.1%}")

The output gives you two simple numbers per brand: how often it was mentioned, and how often it was the first brand named. A run might look like this:

YourBrand    mentioned  44.4%   named first  16.7%
CompetitorA  mentioned  38.9%   named first  27.8%
CompetitorB  mentioned  11.1%   named first  11.1%

Run the same prompt set monthly and store the results, so you can see whether your changes are moving the numbers. Accuracy is harder to automate; the simplest approach is to save the answers that mention you and review them by hand for wrong prices, features or policies.

If you'd rather not maintain this yourself, dedicated platforms such as Yotpo Discover automate the prompt testing and reporting at a larger scale. Whichever route you take, the technical fixes below are what actually change the results.

Technical Factor 1: Let the Right Crawlers In

An AI assistant can't recommend what it can't read. Check that your robots.txt, CDN rules and bot protection don't block the crawlers that power AI search features.

Different companies use different crawlers for different purposes, so read each provider's documentation. OpenAI's crawler documentation, for example, separates OAI-SearchBot, which surfaces sites in ChatGPT search, from GPTBot, which collects content that may be used for model training. They're controlled independently, so you can allow one and block the other:

# Appear in ChatGPT search results
User-agent: OAI-SearchBot
Allow: /

# Opt out of model training
User-agent: GPTBot
Disallow: /

For Google, AI Overviews and AI Mode use the regular Googlebot, so standard crawl access is what matters. Google's separate Google-Extended token applies to AI training and grounding in some of its other products, not to Search AI features.

One more common trap: aggressive bot-protection rules at the CDN level can block legitimate crawlers even when robots.txt allows them. Check your firewall and bot-management logs as well.

Technical Factor 2: Put Product Facts in the HTML

Imagine a shopper asks for "a machine-washable merino sweater". If your product's material and care instructions only exist inside an image, a PDF size guide or a tab that loads with JavaScript, an AI system may never see them.

Two practical rules:

  • Keep key attributes in text. Materials, dimensions, compatibility, care instructions and specs should be in the page's HTML, not baked into product images.
  • Server-render important content. Many crawlers fetch the raw HTML and may not execute JavaScript the way a browser does. If your product details only appear after client-side rendering, test what a non-browser client receives.

A quick check from the command line shows whether an attribute is present in the raw HTML:

curl -s https://example.com/products/merino-sweater | grep -i "machine washable"

If the phrase is visible in your browser but grep finds nothing, that content is being added client-side.

Technical Factor 3: Make Structured Data Accurate and Complete

Structured data gives machines an unambiguous description of each product. Use the schema.org Product type with offer details, and keep it in sync with what's visible on the page:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Merino Crew Sweater",
  "sku": "MCS-NAVY-M",
  "brand": { "@type": "Brand", "name": "YourBrand" },
  "material": "100% merino wool",
  "description": "Machine-washable merino crew-neck sweater.",
  "offers": {
    "@type": "Offer",
    "price": "89.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": "4.7",
    "reviewCount": "312"
  }
}
</script>

Google's product structured data documentation explains which properties support product snippets and merchant listings, including shipping, returns and variants. Validate your markup with the Rich Results Test after every template change.

It's worth being realistic here. Google states that no special schema or AI-specific files are required to appear in its AI features, and that structured data should match the page's visible text. Structured data isn't a magic switch; its value is in making your product facts consistent and easy to parse wherever they're read.

If you sell through Google, keep your Merchant Center feed accurate too. Prices and stock levels that disagree between your feed, your markup and your page are exactly the kind of inconsistency that leads to inaccurate AI answers.

Beyond Code: Independent Sources Matter

Nobody outside the AI companies knows exactly how models choose which brands to recommend, but a pattern is clear. Assistants lean heavily on sources that look independent: long-running customer reviews, forum and community discussions, retailer listings and editorial roundups. Your own product copy carries less weight on its own.

That makes genuine customer content one of the strongest signals you can influence. A few practical, developer-friendly steps:

  • Make reviewing easy. Send a post-purchase review request once the customer has had time to use the product, and keep the form short and mobile-friendly.
  • Display reviews as crawlable text, not inside an iframe or a widget that only loads with JavaScript.
  • Answer real questions. Collect the questions customers ask support and in reviews, then publish clear, factual answers on product and FAQ pages.
  • Never fake it. Planted reviews and staged forum posts break platform rules and consumer protection laws, and damage trust when they're discovered.

A Simple Monthly Process

If you're starting from zero, this routine is enough to make progress:

  1. Write 20 to 30 prompts that reflect real shopper questions in your category.
  2. Run them across the AI assistants your customers use, and record which brands appear.
  3. Review the answers that mention you and flag anything inaccurate.
  4. Fix technical problems first: crawler access, server-rendered attributes and structured data are usually the quickest wins.
  5. Work on review volume and on-site answers to common questions.
  6. Repeat the same prompt set every month and track the trend.

Conclusion

As more shoppers ask an assistant before they buy, being one of the few names in that answer becomes a real competitive advantage. An AI visibility score turns that into something you can measure. For developers, the work is familiar: let the right crawlers in, put product facts in plain HTML, keep structured data accurate, and make it easy for real customers to talk about what they bought. Measure monthly, fix what the data shows, and let the score tell you whether it's working.

proton_pass_2026_11_footer
Source: SitePoint Team · www.sitepoint.com