> ## Documentation Index
> Fetch the complete documentation index at: https://academy.trackbase.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Measure visits from AI with visitor analytics

> Install the Trackbase tracking script to measure visits to your website, including the visits that arrive from AI assistants such as ChatGPT.

Visitor analytics in Trackbase measures the people who visit your website, and shows which of them arrived from an AI assistant. It is the last link in the chain: AI crawlers read your pages, AI answers cite them, and people click through. You find it under **Analytics** in the menu.

## Install the tracking script

**1. Open the tracking settings**

Go to **Settings** and find **Analytics tracking**. If you do not have a site token yet, generate one.

**2. Copy the snippet**

Choose the tab that fits your website:

* **Standard HTML**: paste the snippet into the HTML of every page of your website.
* **Google Tag Manager**: use the Tag Manager version of the snippet.

**3. Publish and check**

Publish your website or your Tag Manager container, visit a page, and open **Analytics** in Trackbase to see the first visits come in.

On WordPress you do not need to paste a snippet. The [WordPress plugin](https://academy.trackbase.ai/wordpress-plugin.md) adds the tracking for you.

> [!WARNING]
>
> Regenerating the site token invalidates the old one. Update the snippet on your website afterwards, or visits stop being recorded.

## What the page shows

![The Analytics page in Trackbase with AI visits, unique visitors, pages viewed, the visitor map, visits over time and top referrers by AI model. Example data.](https://mintcdn.com/trackbase/3L0jUS0Gnf-g9E7B/images/analytics.png?fit=max\&auto=format\&n=3L0jUS0Gnf-g9E7B\&q=85\&s=b8504273ac06e2f19682699409eb468c)

* **Key numbers** for the selected period, with the change within that period.
* **Timeline** of AI visits per day. You can overlay all visitors to see AI traffic as a share of the total.
* **World map** of visits per country, for all visitors or AI visits only.
* **Top pages**, with a separate column for AI visits.
* **Devices**: browser, operating system and device type.
* **Top referrers by AI model**: which assistants send you visitors.
* **Top referrers**: the websites that send you visitors.

Choose a period of 7, 30 or 90 days, or set a custom range.

## Good to know

* **Crawlers are not counted as visitors.** A request from a known crawler is left out of visitor analytics. Crawler activity has its own page, see [crawler analytics](https://academy.trackbase.ai/crawler-analytics.md).
* **The timeline shows completed days.** The current day is still collecting visits, so it is left out of the line. The key number for today does update live.
* **Expect modest numbers at first.** For most websites AI is still a small share of traffic. The value is in the trend.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.