VisitorType

Getting started

VisitorType works like a classic tag manager — containers, tags, triggers, versions — with one big difference: every visitor is classifiedbefore your rules run. You can fire one tag for humans, another for AI crawlers, and a third for AI agents browsing on a customer's behalf.

Visitor types

TypeWho it isExamples
humanA person in a normal browser
ai_crawlerBots collecting training/index dataGPTBot, ClaudeBot, CCBot, Bytespider
ai_searchAI search engine crawlersOAI-SearchBot, PerplexityBot, DuckAssistBot
ai_assistantAn assistant fetching a page for a live userChatGPT-User, Claude-User, MistralAI-User
ai_browser_agentAI driving a real browser (detected via signals)agent mode, computer-use, headless automation
botClassic non-AI botsGooglebot, Bingbot, AhrefsBot

Five-minute setup

1. Create an accountand a container for your site. You'll get a public id like AITM-XXXXXXX.

2. Add the snippet to every page (see Installing the snippet):

<script async src="https://visitortype.ai/tms.js" data-container="AITM-XXXXXXX"></script>

3. Create a trigger (e.g. visitor_type equals ai_crawler) and a tag that uses it.

4. Publish. Nothing goes live until you publish a version — saving a tag never changes your site.

5. Watch the Analytics tab fill with classified traffic, or connect your AI and just ask it.

Recommended: add server-side tracking

The snippet catches humans, AI assistants, and agentic browsers. But most AI crawlersdon't execute JavaScript — to see those, add the 5-line server-side reporter described in Server-side tracking.