---
title: AI traffic tracking
description: Count visitors that ChatGPT, Perplexity, Claude and other AI assistants send to your site, AI crawler visits and sign-ups, with one script tag and an optional server snippet. No cookies.
order: 6
---

# AI traffic tracking

**Unvibe's AI traffic tracking counts the visitors that AI assistants send to your site.** One script tag counts visits from ChatGPT, Perplexity, Claude, Gemini and other assistants and which page they land on. An optional server snippet also counts visits from AI crawlers, which don't run JavaScript.

## Privacy

It collects anonymous counts only: which AI assistant or crawler, and the page path. No cookies, no IP addresses and no personal data, so it doesn't need a cookie banner.

## 1. Visits from AI assistants

In Unvibe, open **AI traffic** and select **Get my tracking code**. Add the script it gives you to the `<head>` of every page:

```html
<script defer src="https://unvibe.app/t.js" data-site="YOUR_TRACKING_KEY"></script>
```

If your site sends a Content-Security-Policy, allow `https://unvibe.app` in `script-src` and `connect-src`.

Optionally, count sign-ups from AI visitors by calling this after a successful sign-up or purchase. It only counts visitors who arrived from an AI assistant:

```js
window.unvibe && window.unvibe('convert');
```

## 2. AI crawler visits

AI crawlers such as GPTBot, ClaudeBot and PerplexityBot don't run JavaScript, so they are counted on the server. If your site runs on Next.js or on Vercel, the AI traffic page gives you a ready middleware file with your key. It sends one small anonymous request per AI crawler visit and doesn't slow down your pages.

## The easy way: ask your coding agent

With Unvibe connected over [MCP](/docs/mcp.html), ask your agent: *"Use the Unvibe MCP tool get_tracking_setup for my site and install the AI-traffic tracking it describes."*

## What you see

- Visitors from AI assistants over the last 30 days, by assistant and by landing page.
- AI crawler visits, by crawler.
- Sign-ups from AI visitors, if you added the optional call.

AI traffic also feeds the [AI visibility score](/docs/ai-visibility.html). It is part of the Starter and Pro plans.
