Analytics and AI visitors: who reads and who quotes you

You want to know which posts work, and more of your readers now arrive through AI tools. Khalid counts visits on your own server, without cookies, and shows your AI visitors: the AI tools that read your blog and the people they send to it.

What it shows about AI visitors and readers #

  • Page views without cookies. Khalid counts visits on the server, so there is no tracking script and no cookie banner for analytics.
  • Readers sent by AI tools. Visitors who arrive from ChatGPT and other AI assistants are named as such.
  • AI crawlers at work. Khalid can keep a log of the bots that read your pages. A bot only counts as, for example, Google or OpenAI when its address is on that company's published list, so fakes are not counted.
  • Posts AI reads but never cites. A report lists the posts AI crawlers fetch that never send you a reader, so you know which ones to improve.
  • A warning when something breaks. Alerts fire when a crawler stops visiting or starts hitting errors. A watch checks that your blog is up and fast.

How it works #

Page views are counted as soon as Khalid runs as a server. The log of crawlers and AI visitors is off by default. Switch it on in site.toml:

[visitor_log]
on = true

Then ask for the reports on the command line, inside your blog's folder, or open them in the admin:

khalid analytics ai
khalid analytics uncited
khalid crawl health

A blog published as plain files has no server to count visits, so these reports need server mode. The deploy guide explains the visitor log and how long it keeps each record.

See it live #

The demo is plain files, so it has no visit counts. The SaaS example site explains how a product team reads these reports. To see your own numbers, start a blog in server mode.

Next: blog migration from another tool. Also see hosting and speed.

About the author

The Khalid team

Makers of Khalid at SerpDad

Experience Builds Khalid in the open, with every change checked by tests before it lands

Khalid is made by SerpDad, a small team that builds SEO tools. The code is written by Claude, an AI model from Anthropic, and reviewed against a written ten-point checklist before it lands. Every rule, test and decision is public in the repository, so you can check how any part of Khalid works.

Free and open source. Pick one of three ways to start.

Start a blog

Posts that link here

Comments are not open on this site.