Sub topic 11
Checking whether you are being cited
This chapter assumes you have read the earlier chapters on how AI search systems choose sources and on page structure. You should be comfortable with percentages and with running a short Python script. You should also know what a web server access log is.
Once your pages carry original data, attributed quotes and well-contextualised statistics, you need to know whether anything changed. No AI search tool gives you a dashboard like a search console, so you have to build your own evidence. This chapter covers what to measure, how to sample answers, how to read your server logs, and how to avoid fooling yourself with small or noisy results.
Why this is hard to measure
Three properties of AI answers make measurement different from checking a search ranking.
- Answers vary between runs. Asking the same question twice can produce different wording and different sources. A single check proves very little.
- Answers vary between users. Location, account history, language and the tool's own settings can change what appears.
- The selection logic is undisclosed. Each system chooses sources by its own rules, and those rules change without notice. You can observe outcomes, but you cannot see why they happened.
So your measurements are samples, not facts about a fixed ranking. Report them as ranges, repeat them over time, and be cautious about attributing a change to any one edit.
What counts as being cited
Keep these signals separate. They mean different things, and mixing them hides what is working.
| Signal | What it shows | How you find it | Main limit |
|---|---|---|---|
| Citation | The answer links to your URL as a source | Read the source list or footnotes in the answer | Some tools show no sources at all |
| Brand mention | The answer names you without a link | Read the answer text | Cannot be traced to a page |
| Figure reuse | The answer repeats your number or quote | Search the answer for your specific figures | The number may be shown without attribution |
| Referral visit | A person clicked through from an AI tool | Referrer field in your analytics or logs | Many answers produce no click, and some referrers are stripped |
| Crawler fetch | An AI-related bot requested your page | User-agent field in your logs | A fetch is not a citation |
Figure reuse is the signal most specific to this tutorial. If your survey says "median 3.5 hours saved per week among 412 team leads" and an answer repeats that figure, your claim survived extraction. Check whether the population and date came with it. If the number appears without them, the claim may not be self-contained enough, which is a page problem you can fix.
The measurement loop
Step 1: Build a prompt set
A prompt set is a fixed list of questions that a person might ask when your content should be the answer. Write it before you start, and do not edit it casually, because changing prompts breaks comparisons over time.
Include three groups:
- Topic questions where your data is relevant, such as "how many hours do teams save with workflow automation?"
- Specific-figure questions that only your research can answer well, such as "what share of team leads save 5 hours a week or more?"
- Brand questions that name your organisation or your named experts, to see how you are described.
Twenty to forty prompts is enough to start. Record the exact wording, because small wording changes can change which sources appear.
Step 2: Sample the answers
For each prompt and each AI tool you care about, run the check several times, for example five times on different days. Use a fresh session without prior conversation, since earlier messages influence answers. Where a tool offers a way to turn off personalisation or memory, turn it off so runs are comparable.
For each run, record:
- the date, the tool and the exact prompt
- whether your URL was cited (yes or no)
- whether your brand was mentioned
- whether your figure or quote appeared, and whether it kept its population and date
- the other sources cited, which shows who you compete with
Store this in a plain CSV file. A spreadsheet works as well.
date,tool,prompt,cited,brand_mentioned,figure_reused
2026-11-02,tool_a,hours saved by workflow automation,yes,yes,yes
2026-11-02,tool_a,hours saved by workflow automation,no,no,no
2026-11-02,tool_b,hours saved by workflow automation,no,yes,noStep 3: Summarise with an interval, not a single rate
If you check 20 times and are cited 6 times, "30%" sounds precise but is not. A confidence interval shows how much a small sample can mislead. The script below reads the log and prints a citation rate per tool with a 95% Wilson interval, which behaves sensibly with small counts.
import csv
from collections import defaultdict
from math import sqrt
def wilson(k, n, z=1.96):
"""95% Wilson score interval for k successes in n trials."""
if n == 0:
return 0.0, 0.0
p = k / n
denom = 1 + z * z / n
centre = (p + z * z / (2 * n)) / denom
half = z * sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / denom
return centre - half, centre + half
counts = defaultdict(lambda: [0, 0]) # tool -> [cited, total]
with open("citation_checks.csv", newline="", encoding="utf-8") as f:
for row in csv.DictReader(f):
tool = row["tool"]
counts[tool][1] += 1
if row["cited"].strip().lower() == "yes":
counts[tool][0] += 1
for tool, (k, n) in sorted(counts.items()):
low, high = wilson(k, n)
print(
f"{tool}: cited in {k} of {n} runs "
f"({k / n:.0%}, 95% interval {low:.0%} to {high:.0%})"
)With 6 citations in 20 runs, the interval runs from roughly 15% to 52%. A later result of 8 in 20 sits well inside that range, so it is not evidence that an edit worked. Only a shift that moves clear of the earlier interval, or that repeats across several rounds, deserves attention.
Step 4: Read your server logs
Logs show two different things that are easy to confuse: people arriving from AI tools, and bots fetching your pages.
Referrals appear in the referrer field. Hostnames for AI tools change over time and differ by product, so start by listing the referrer hosts you actually see, then build your own list from that. Some visits arrive with no referrer at all, so referral counts are a lower bound.
Crawler fetches appear in the user-agent field. A fetch tells you a bot requested the page. It does not tell you the page was used in an answer.
This script reads a standard combined-format access log and counts both. The hostnames and bot names are examples, so replace them with what your own logs and each vendor's current documentation show.
import re
from collections import Counter
from urllib.parse import urlparse
LINE = re.compile(
r'"(?:GET|HEAD) (?P<path>\S+) [^"]*" (?P<status>\d{3}) \S+ '
r'"(?P<referrer>[^"]*)" "(?P<ua>[^"]*)"'
)
# Example values only. Build your own lists from your logs.
AI_REFERRER_HOSTS = {"chatgpt.com", "perplexity.ai", "www.perplexity.ai", "gemini.google.com"}
BOT_MARKERS = ["GPTBot", "OAI-SearchBot", "ChatGPT-User", "PerplexityBot", "ClaudeBot"]
referrals = Counter()
bot_hits = Counter()
with open("access.log", encoding="utf-8", errors="replace") as f:
for line in f:
m = LINE.search(line)
if not m or not m["status"].startswith("2"):
continue
host = urlparse(m["referrer"]).hostname
if host in AI_REFERRER_HOSTS:
referrals[(host, m["path"])] += 1
for marker in BOT_MARKERS:
if marker in m["ua"]:
bot_hits[(marker, m["path"])] += 1
print("AI referrals by host and page:")
for (host, path), n in referrals.most_common(10):
print(f" {n:4d} {host} {path}")
print("Bot fetches by bot and page:")
for (bot, path), n in bot_hits.most_common(10):
print(f" {n:4d} {bot} {path}")Read the two lists together. A page that is fetched often but never produces a referral may be used to build answers without being linked, or may not be used at all. A page that earns referrals tells you something about what people clicked. Neither list proves why.
User-agent strings can be faked, so treat bot counts as indicative. If you need certainty, verify the requesting IP addresses against the ranges the vendor publishes.
Step 5: Interpret results carefully
Compare against a baseline you recorded before changing anything. Then work through these checks.
- Change one thing at a time. If you add a dataset, rewrite the intro and add schema markup in one week, you cannot tell which change mattered.
- Allow time. Systems that rely on an index or a cached copy of your page may take days or weeks to reflect changes. Some answers draw on older training data you cannot update.
- Watch for competitors. Your citation rate can fall because another site published fresher data, with no fault on your page.
- Check accuracy, not just presence. If an answer cites you but gets your number wrong, or drops the population, read your page as an extractor would. Is the claim self-contained? Is the unit next to the number? Fix the page, not the tool.
- Read mentions without links. A brand mention with no citation can mean your name travelled but your page was not linked. It can also mean the model recalled you from training data.
Do not work around these limits by asking a tool "do you cite example.com?" The answer is generated text, not a report of its source list, and it can be wrong.
Common errors
- Checking each prompt once and treating the result as stable.
- Counting crawler fetches as citations.
- Changing the prompt wording between rounds and comparing the results anyway.
- Using a logged-in session with a long history, which biases answers toward earlier conversation.
- Ignoring figure reuse and tracking only links, which misses cases where your data is repeated without a source.
- Judging an edit after two days when the tool may not have re-read the page.
Exercise
You were cited in 3 of 10 runs for a prompt in January, and 5 of 10 runs in February after you added a methodology section. A colleague says the methodology section raised your citation rate. What do you say, and what would you do next?
Show answer
The change is within what chance can produce at these sample sizes. The 95% interval for 3 of 10 is roughly 11% to 60%, and 5 of 10 falls well inside it. So the data does not support the claim yet. Next, record a baseline with more runs per prompt (for example 5 runs across 20 prompts), keep the prompt wording fixed, repeat the check over several weeks, and log any other page changes so the methodology section is the only variable. Also check whether competing sources changed.
Exercise
Your access log shows 400 requests from an AI crawler to your survey page last month and only 2 referral visits from AI tools. Name two possible explanations and one measurement you would add.
Show answer
Possible explanations: the page is fetched to build or refresh an index but is rarely linked in answers, or answers cite it but few users click through (many answers are read without a click, and some referrers are stripped). Another possibility is that the user-agent strings are not from the bots they claim. To add: run your prompt set and record whether the page URL appears in the cited sources and whether your figure is reused, so you can tell whether the page is being used in answers at all.