Sub topic 11
Measuring brand visibility in AI answers
This chapter assumes you know the difference between model memory and retrieval, and that you have read the chapters on naming consistency, structured data and third-party corroboration. Those chapters describe signals you can change. This chapter covers how to check whether the changes show up in what AI assistants say.
Why measurement is different here
A search engine ranking is a position on a page, and many tools report it. An AI answer is generated text. It can differ every time you ask, and it differs between products, between model versions and between users. There is no single "rank" to read.
What you can measure is a mention rate: out of N sampled answers to a set of prompts, in how many does the brand appear? A mention rate is an estimate from a sample. Treat it like a poll, not like a ranking.
Three properties of the output shape every design choice below.
- Non-determinism. The same prompt can return different answers on different runs.
- Variation by context. Location, language, conversation history, and whether the product used live retrieval all change the answer.
- Opacity. You see the answer, not the reasons behind it. A mention tells you the brand appeared, not which signal caused it.
What to measure
Pick metrics that match the questions you care about.
| Metric | What it tells you | Weakness |
|---|---|---|
| Mention rate | Share of answers that name the brand | Ignores whether the description is accurate |
| Citation rate | Share of answers that link to your domain | Only available in products that show sources |
| Share of voice | Your mentions divided by all tracked brands' mentions | Depends on which competitors you track |
| Position in answer | Whether the brand is named first, in a list, or last | Lists are often unordered or reshuffled between runs |
| Accuracy | Whether stated facts (category, location, product) are correct | Needs manual or rubric-based review |
| Sentiment | Whether the framing is positive, neutral or negative | Coarse, and subjective if scored by hand |
Mention rate and citation rate answer different questions. A brand can be named from model memory with no link, which reflects parametric knowledge. A citation shows that retrieval pulled one of your pages. Recording both helps you tell which mechanism is working.
Designing the prompt set
The prompt set is the instrument. A poor one gives a precise-looking number that means nothing.
Build it from the questions real buyers ask. Split it into types, because each type tests a different signal.
- Category prompts. "What are the best tools for X?" These test co-occurrence between your brand and the topic. The brand name is not in the prompt.
- Comparison prompts. "Compare A and B for small teams." These test whether the model knows the brand well enough to describe it against a rival.
- Brand prompts. "What is Example Analytics?" These test entity recognition and disambiguation. A wrong answer here, such as describing a different company with a similar name, points to a naming or identity problem.
- Problem prompts. "How do I track dashboards across teams?" These test whether the brand appears for the underlying need.
Keep brand prompts separate from category prompts when you report. Mixing them inflates the rate: any answer to "What is Example Analytics?" will name the brand.
Write each prompt in several phrasings. People ask the same question many ways, and a brand that appears for one wording may vanish for another. Fix the final list and version it, so you compare like with like over time.
Sampling
Because answers vary, run each prompt several times. A single run is an anecdote.
- Run each prompt at least 10 to 20 times per product and settings combination for a rough estimate.
- Record the date, product, model name if shown, and whether web search was on.
- Use a clean session each time. Earlier turns in a conversation steer later answers.
- Space runs out and repeat the whole study on a schedule. Model updates and index changes shift results.
The uncertainty in a mention rate depends on the sample size. A rough 95% margin of error for a rate p over n runs is 1.96 × sqrt(p × (1 − p) / n). With n = 20 and p = 0.5, the margin is about 22 percentage points. A move from 40% to 50% on 20 runs is within noise. With n = 100 the margin falls to about 10 points. Plan sample sizes with this in mind before you promise anyone a trend.
Runs of the same prompt are not fully independent in practice, for example when a product caches answers. Treat the formula as a lower bound on the real uncertainty.
Collecting the answers
You can collect answers by hand, through each product's API, or with a commercial tracking tool. Each has costs.
- Manual is cheap and good for a first look. It does not scale, and the interface you see may differ from what others see.
- API is repeatable and scriptable. API models often lack the web search, personalisation and system prompts of the consumer product, so results may not match what customers see. Check whether the API offers a search or grounding option and record whether you used it.
- Commercial tools save effort. Their methods are often undisclosed, so ask how many runs they use, which products they query, and how they match brand names.
Whatever you choose, save the full raw answer text, not only the extracted number. You will want to re-analyse old answers when you add an alias or fix a matching bug.
Counting mentions with a script
The script below counts how many saved answers mention each brand under any of its known name variants. The alias list matters: this is where the naming work from earlier chapters pays off, because a brand that is called three things needs all three matched.
import re
from collections import Counter
ALIASES = {
"Example Analytics": ["Example Analytics", "ExampleAI"],
"Rival Corp": ["Rival Corp"],
}
def count_mentions(answers):
counts = Counter()
for text in answers:
for brand, names in ALIASES.items():
pattern = r"\b(?:" + "|".join(re.escape(n) for n in names) + r")\b"
if re.search(pattern, text, flags=re.IGNORECASE):
counts[brand] += 1
return counts
answers = [
"Example Analytics and Rival Corp both offer dashboards.",
"Many teams choose ExampleAI for reporting.",
"Rival Corp is a common alternative.",
]
counts = count_mentions(answers)
for brand in ALIASES:
print(brand, counts[brand], "of", len(answers))Running it prints:
Example Analytics 2 of 3
Rival Corp 2 of 3Each answer counts at most once per brand, however many times the brand appears in it. That makes the output a mention rate per answer, not a count of repeated names.
Limits of this matcher
String matching is a starting point. Know where it fails.
- False positives. A common-word brand, or a name shared with another company, matches text that is not about you. Review a sample of matches by hand.
- False negatives. Misspellings, translated names and possessive forms such as "Example Analytics's" can slip through depending on the pattern.
- Name collisions. If a rival's name contains yours, a plain match counts the rival's mention as yours. The word boundaries in the pattern help, but not for every case.
- Context blindness. "Unlike Example Analytics, most tools lack X" is a mention, but it is not the kind you want. The script cannot tell.
For accuracy and sentiment, add a review step. A person can score a sample against a short rubric, or a second model can pre-label answers that a person then spot-checks. If you use a model as a grader, check its labels against human labels on a sample first.
Reading the results
A mention rate by itself rarely says what to do. Compare it across slices.
Use the diagram below to follow the loop from measurement to action.
Some patterns and what they usually suggest:
- Named in brand prompts, absent in category prompts. The model knows the entity but does not associate it with the topic. Look at co-occurrence and third-party coverage.
- Wrong facts in brand prompts. Check naming consistency, structured data, and public entity records for conflicting information.
- Cited in search-enabled products but absent without search. Retrieval is working; presence in model memory is weak. That is slow to change.
- Mentioned without a link. Expected in many products. A mention is still a signal, but it will not show in link-based analytics.
- Rival named in your category prompts. Study which sources the answers cite for that rival. Those are the places the evidence lives.
These are hypotheses. The data is correlational, and you cannot isolate one cause.
Tying changes to outcomes
If you change markup, fix names, or earn coverage and the rate rises, that does not prove the change caused it. Models update, indexes refresh, and competitors move.
Some ways to make the inference stronger:
- Keep a change log with dates and compare against the sampling dates.
- Track a control set: prompts about topics you did not touch. If those move too, the cause is likely outside your work.
- Track a few competitors as a baseline. A rise in your rate alongside a general rise for everyone points to a product change.
- Wait for enough runs after a change before drawing conclusions. Retrieval-based answers can react within days or weeks. Changes to model memory depend on the next training update, which you cannot see or schedule.
Common errors
- Reporting a single run as a result.
- Mixing brand prompts and category prompts in one rate.
- Changing the prompt set between reports and comparing the numbers anyway.
- Comparing API results to what customers see in the consumer product.
- Forgetting to record whether web search was on.
- Treating mention rate as revenue. No study here shows that a given mention rate produces sales; measure business outcomes separately.
- Optimising for the prompts you measure. If you tune pages to your own test prompts, the metric improves while real coverage may not.
Exercise
You run 20 samples of a category prompt and your brand appears in 8 answers. After adding Organization markup, you run another 20 samples and it appears in 11. A colleague says the markup worked. Using the margin of error formula, what do you say, and what would you do next?
Show answer
The rates are 40% and 55%. The margin of error for n = 20 near p = 0.5 is about 22 points, so a 15-point change is within noise. The markup may have helped, but this data does not show it. Next, increase the runs to 100 or more per period, check that the same product, settings and web-search state were used, add control prompts you did not touch, and track a competitor baseline. Also note that markup mainly affects retrieval and entity records, so check whether citations to your pages changed as well.
Exercise
Your script reports a 70% mention rate for "Example Analytics", but the prompt set is mostly "What is Example Analytics?" and similar questions. What is wrong with the figure, and how would you fix the reporting?
Show answer
Brand prompts name the company, so answers almost always mention it, which inflates the rate. Split the results by prompt type and report category, comparison, problem and brand prompts separately. Use the category and problem prompts for the main visibility figure, and use brand prompts to check accuracy and disambiguation.