Sub topic 16
Measuring AI Search Visibility
This chapter assumes you have read the earlier chapters on retrieval-augmented generation, query fan-out, passages and citation. It also assumes you can read a short Python script. You will learn what can be measured about your visibility in AI answers, what cannot, and how to build a measurement routine that survives noisy results.
Why this is harder than rank tracking
In classic search, a keyword has a position on a results page. You can check it daily and chart it. AI search breaks that model in four ways.
- The output is generated text. There is no fixed list of ten results. Your brand may be named, linked, paraphrased without credit, or absent.
- The answer varies between runs. The same prompt can produce different wording and different sources each time. How much it varies depends on the product, so treat variation as normal.
- The searches are hidden. If a system fans one prompt out into several sub-queries, you usually cannot see them. Some products show a list of sources or searches. Others show only a few links. Do not assume you see everything the system retrieved.
- Context changes the answer. Location, conversation history, account settings and product version can all affect what appears. You rarely know which ones did.
So a single check of "Do we appear for this prompt?" is an anecdote, not a measurement. A measurement is a rate over many runs, with a stated uncertainty.
What you can observe
Separate the signals by how directly you observe them.
| Signal | How you get it | Main weakness |
|---|---|---|
| Mention | Brand name appears in the answer text | Says nothing about links or traffic |
| Citation | Your URL appears among the shown sources | The system may have read pages it did not show |
| Citation position | Order of sources in the interface | Display order may not reflect importance |
| Sentiment or framing | Human or model-assisted reading of the answer | Subjective, needs a written rubric |
| Referral visits | Web analytics, server logs | Many answers produce no click, and referrer data is inconsistent |
| Competitor share | The same checks run for rivals | Depends on the prompt set you chose |
Mention and citation are different outcomes. A page can be cited for a supporting fact while the brand is never named. A brand can be named from the model's training memory with no retrieval at all. Track both, separately.
Designing the prompt set
Your results can only be as good as your prompts. Build the set deliberately.
- Start from topics, not keywords. For each topic you care about, list the questions a buyer would type or speak. Use the sub-query types from the earlier chapter as a checklist: definitional, comparative, constraint-based (price, size, region), and expert-angle questions.
- Cover the funnel. Include broad discovery prompts ("best running shoes for flat feet") and narrow late-stage ones ("stability vs motion control shoes overpronation").
- Write natural phrasing. Real users write full sentences in chat products. Include several phrasings of the same intent.
- Freeze the set. Version it. If you change prompts between months, you cannot compare the months.
- Include prompts where you expect to be absent. Otherwise you will only ever measure your strengths.
Tag every prompt with its topic, intent, and funnel stage so you can slice results later.
Sampling and logging
Run each prompt many times, on each product you care about, on a schedule. For each run, store the raw material, not just your yes/no judgement:
- date and time, product name, and any visible model or mode label
- the exact prompt text
- the full answer text
- the list of cited URLs, in displayed order
- whether the brand was mentioned, and whether your domain was cited
- the account, location, and settings used
Storing the full answer lets you re-code results later with a better rubric. Interfaces also change without notice, so a dated log is the only way to tell a real change in visibility from a change in the product.
Automated collection raises practical issues. Some products forbid automated querying in their terms of service, and others offer an official API that behaves differently from the consumer interface. Check the terms before you scale up, and do not treat API results as identical to what users see.
Turning runs into a rate
If you ran a prompt 20 times and your domain was cited 6 times, your citation rate is 30%. With only 20 runs, that figure is uncertain. A confidence interval shows how uncertain. The Wilson interval is a standard choice for proportions and behaves well with small samples.
import math
def wilson_interval(hits, runs, z=1.96):
"""Return an approximate 95% confidence interval for hits / runs."""
if runs == 0:
return (0.0, 0.0)
p = hits / runs
denom = 1 + z**2 / runs
centre = (p + z**2 / (2 * runs)) / denom
margin = z * math.sqrt(p * (1 - p) / runs + z**2 / (4 * runs**2)) / denom
return (max(0.0, centre - margin), min(1.0, centre + margin))
runs = [
{"prompt": "best running shoes for flat feet", "cited": True},
{"prompt": "best running shoes for flat feet", "cited": False},
{"prompt": "best running shoes for flat feet", "cited": False},
{"prompt": "best running shoes for flat feet", "cited": True},
]
hits = sum(1 for r in runs if r["cited"])
low, high = wilson_interval(hits, len(runs))
print(f"cited {hits}/{len(runs)} runs, 95% interval {low:.2f} to {high:.2f}")
low, high = wilson_interval(6, 20)
print(f"6/20 gives an interval of about {low:.2f} to {high:.2f}")The second line prints roughly 0.15 to 0.52. A true rate anywhere in that range fits 6 citations out of 20 runs. If next month you see 9 out of 20, the intervals overlap heavily, and you should not report that as growth.
This gives a working rule: report a change only when the intervals clearly separate, or when the change persists across several periods and many prompts.
Connecting visibility to outcomes
Citation and mention rates are leading indicators. To connect them to business results, add three sources.
- Referral analytics. Look for visits whose referrer or campaign tags identify AI products. Expect undercounting. Some products strip referrers, and some answers satisfy the user without a click.
- Server logs. Crawler and fetch requests from AI-related user agents show which pages are being fetched. A fetch tells you a page was requested. It does not tell you the page was used in an answer or cited.
- Self-reported attribution. Add "How did you hear about us?" with an AI-assistant option. It is crude, but it catches influence that no referrer records.
Treat all three as partial. Agreement among several weak signals is more convincing than any one of them.
Common errors
- Reading one run as truth. One answer is one sample from a varying process.
- Changing the prompt set mid-stream. This makes trends meaningless.
- Counting citations as endorsements. A page can be cited as a source the answer disagrees with.
- Inferring fan-out from the answer. The visible sources are a subset of what may have been retrieved. Treat any sub-query reconstruction as a hypothesis.
- Crediting your last content change. Model updates, index changes and competitor edits happen at the same time. Without a comparison group, causation is a guess.
- Ignoring zero results. If you never appear for a prompt, the diagnosis belongs in your coverage audit, not in a chart.
A practical reporting layout
A monthly report can stay small:
- Prompt set version and number of runs per prompt and product.
- Mention rate and citation rate per topic, each with its interval.
- Competitor citation rates for the same prompts.
- Notable changes in product behaviour you observed.
- Referral and log trends, labelled as partial.
- Content changes shipped that month, listed beside the metrics rather than claimed as their cause.
Exercise
Your domain was cited in 3 of 10 runs of a prompt in March and 5 of 10 runs in April. Your manager wants to report that visibility rose by two thirds. What do you say, and what would you do to get a stronger answer?
Show answer
The rise is not reliable. With 10 runs each, the intervals for 30% and 50% overlap widely, so the difference is within normal run-to-run variation. Report the rates with their intervals and call the change inconclusive. To strengthen it, increase runs per prompt, add more prompts on the same topic, keep the prompt set frozen, and check whether the change holds in the next period and in other products. Also log whether the product or its settings changed between the two months.
Exercise
A page is fetched often by an AI-related crawler according to your server logs, but it never appears among cited sources in your sampled runs. List two possible explanations without claiming which is true.
Show answer
First, the fetch may serve training or indexing rather than answering live questions, so it does not imply use in answers. Second, the page may be retrieved but outranked or dropped at the reranking or synthesis stage, so it is never shown. A third possibility is that your prompt set does not match the questions that would lead to that page. The logs alone cannot distinguish these.