VisitorType
← All posts

How to track AI bots on a WordPress site (without touching code)

wordpressai-crawlersplugin

WordPress runs about 43% of the web, which means AI crawlers spend a lot of their day reading WordPress sites. Almost none of that shows up in your analytics — and it's not a settings problem, it's physics.

Why your analytics can't see AI crawlers

Every mainstream analytics tool (GA4 included) works by executing JavaScript in the visitor's browser. AI crawlers don't run JavaScript. GPTBot fetches your HTML and leaves. The tag never fires, the visit never registers. Your most-read blog post might be briefing thousands of AI conversations a month, invisibly.

The visits are in your server logs — but grepping access logs for user-agent strings is nobody's idea of a workflow, and shared hosting often doesn't even expose them.

The plugin approach

The VisitorType WordPress plugin closes the gap from inside WordPress itself, using the one place that sees every request: PHP.

  1. Install the plugin, paste your container ID (free account, two minutes).
  2. It reports each request server-side — fire-and-forget, non-blocking, zero added latency for your visitors.
  3. It also injects the regular snippet, which covers the other half of AI traffic: assistant fetches that render pages, agentic browsers, and humans arriving from ChatGPT or Perplexity answers.

Crawler visits appear in your dashboard classified by agent and vendor — GPTBot vs OAI-SearchBot vs ClaudeBot vs PerplexityBot — and verified against each vendor's published IP ranges, so a scraper pretending to be GPTBot gets labeled a bot, not a guest.

Two honest caveats

  • Page caching (WP Super Cache and friends) serves HTML without running PHP, so server-side collection misses cached crawler hits. The snippet side is unaffected.
  • Human page views are deliberately not double-counted: the snippet records humans, the server channel records the crawlers the snippet can't see. You get one clean number, not two overlapping ones.

What you do with it

Seeing the crawlers is step one. Because VisitorType is a tag manager, you can act on the classification: serve AI crawlers a canonical facts block, fire conversion tracking only for humans, greet Perplexity-referred visitors with context. Rules, not redeploys.

Create a free account, install the plugin, and check back tomorrow — most sites see their first AI crawler within hours.

See which AI agents visit your site — free.

Start with VisitorType