Question

How to track AI search referrals

Referrals and crawlers are different. Crawlers show discovery behavior, while referrals show user visits coming back from AI products.

Daily metrics to keep

  1. Requests and unique IP from AI referrer domains.
  2. Top landing pages that received AI referrals.
  3. Status code mix on those landings.

Minimal command pattern

jq -r '((.request.headers.Referer[0] // ""))' /var/lib/caddy/logs/llmsfile-access.log | grep -Ei 'chatgpt|perplexity|copilot|gemini'
jq -r 'select(((.request.headers.Referer[0] // "") | test("chatgpt|perplexity|copilot|gemini"; "i"))) | [.request.uri, .status] | @tsv' /var/lib/caddy/logs/llmsfile-access.log

Operational note

Track this daily. Early AI referral traffic is usually small, so trend direction matters more than single-day spikes.