Quick answer
- AI referral tracking identifies which website visitors and leads came from AI assistants such as ChatGPT, Perplexity, Gemini, Copilot and Claude.
- It works by reading the referring website and the utm_source on each visit, and matching them against a list of known AI assistant domains.
- Most analytics tools file these visits under Referral or Direct, mixed in with everything else, so AI leads stay invisible unless you separate them.
- Some AI clicks arrive without a referrer, and Google's AI Overviews look like normal Google search, so every method undercounts a little.
- A lead tracker such as HeyLead Attribution labels each AI lead with the assistant that sent it, and can pass that label on to your CRM.
AI referral tracking is the process of identifying which website visitors and leads came from AI assistants such as ChatGPT, Perplexity, Gemini, Microsoft Copilot and Claude. It reads where each visit came from, matches it against known AI assistants, and labels the lead with the assistant that sent it, so you can see what AI search is worth to your business.
More people now ask an AI assistant for a recommendation before they search: "Who is a good accountant near me?", "What is the best lead tracking tool for a small agency?" When the answer includes your website and someone clicks, that visitor arrives already half convinced. Yet most analytics tools file the visit under Referral or Direct, next to everything else, so the business never knows AI sent them.
This guide explains how AI referral tracking works in plain English, which assistants send traffic, why the numbers always undercount a little, and how to see AI leads in your dashboard and your CRM.
What is AI referral tracking?
AI referral tracking identifies visits and leads that came from a link in an AI assistant's answer, and records which assistant it was. A visit from ChatGPT is labelled ChatGPT, a visit from Perplexity is labelled Perplexity, and so on, instead of being lumped into Direct or a long list of referring sites.
Here is a simple example. Someone asks ChatGPT, "What is the best project management tool for small teams?" ChatGPT lists a few tools, including yours, with links. The person clicks your link. Their browser tells your website that the visit came from chatgpt.com, and ChatGPT adds utm_source=chatgpt.com to the link. An AI referral tracker reads that and labels the visit, and any lead it becomes, as ChatGPT.
The same idea is sometimes called LLM traffic tracking or generative AI tracking. LLM stands for large language model, the technology behind these assistants. They all mean the same thing: separating AI-sent visitors from the rest.
What is AI lead tracking?
AI lead tracking is AI referral tracking applied to leads: recording which enquiries, demo requests and bookings came from AI assistants, and keeping that source on each lead all the way to your CRM. Visit counts show that AI assistants send traffic; lead tracking shows whether that traffic turns into customers.
The difference matters because the two answer different questions:
| Question | Needs |
|---|---|
| Do AI assistants send people to my site? | AI referral tracking |
| Which assistants send people who get in touch? | AI lead tracking |
| Which assistants send people who become customers? | AI lead tracking with outcomes |
To track AI leads, a tool has to recognise the AI visit, remember it across pages and return visits, and attach it to the form the person eventually fills in. Analytics tools stop at the visit; a lead tracker carries the label onto the lead. HeyLead's AI Lead Tracker does this for every form on your site.
Why does AI referral tracking matter?
AI referral tracking matters because AI assistants have become a real place where buyers find businesses, and without it those buyers are invisible. You cannot decide whether AI search is worth effort, or which pages earn recommendations, if every AI visit is filed under Direct.
There are three practical reasons to track it:
- AI visitors often arrive ready to act. They asked for a recommendation and clicked on yours, so they tend to know what they want. Tracking shows whether that holds for your business.
- It shows which pages AI assistants link to. Assistants usually link to a specific guide, comparison or service page. Knowing which ones get clicked tells you what content earns recommendations.
- It fixes your Direct numbers. A slice of the visits labelled Direct are really AI clicks. Separating them makes every other channel's numbers more honest too.
You do not need to guess how big AI is for you. Track it for a few weeks and your own leads will tell you, which is more useful than any industry average.
How does AI referral tracking work?
AI referral tracking works by looking at two pieces of information that arrive with each visit: the referrer, which is the page the visitor clicked from, and the UTM tags on the link. If either matches a known AI assistant, the visit is labelled with that assistant.
Here is the process step by step:
- Someone asks an AI assistant a question, and the answer includes a link to your site.
- They click the link.
- Their browser loads your page and usually sends the referrer, such as
https://chatgpt.com/orhttps://www.perplexity.ai/. - Some assistants also add a UTM tag. ChatGPT, for example, adds
utm_source=chatgpt.comto many links. - Your tracking script reads the referrer and the UTM tags on that first page.
- If they match a known AI domain, the visit is labelled AI Referral, with the assistant's name as the source.
- If the visitor later fills in a form, the lead keeps that label, even if they browsed several pages or came back days later.
Why some AI visits still look like Direct
AI referral tracking is reliable, but no method catches every AI visit. It helps to know the gaps before you read the numbers:
- Apps that hide the referrer. Some AI apps on phones and desktops open links without sending a referrer. If the link has no UTM tag either, the visit arrives with no clue and lands in Direct.
- Google AI Overviews and AI Mode. Clicks from Google's AI answers come from google.com, exactly like normal search results, so every tool counts them as Organic Search.
- Copy and paste. If someone copies your web address out of an answer and types it in, there is nothing to read.
So treat AI referral numbers as a reliable floor, not the full total. The trend over time matters more than any single month.
Which AI assistants send traffic to websites?
The AI assistants that send the most clicks to business websites are ChatGPT, Perplexity, Gemini, Microsoft Copilot and Claude. Several smaller assistants send traffic too. This table lists the referrer domains HeyLead Attribution recognises today:
| AI assistant | Referrer domains | How HeyLead labels it |
|---|---|---|
| ChatGPT | chatgpt.com, chat.openai.com, plus utm_source=chatgpt.com | ChatGPT |
| Perplexity | perplexity.ai | Perplexity |
| Google Gemini | gemini.google.com | Gemini |
| Microsoft Copilot | copilot.microsoft.com, copilot.cloud.microsoft, edgeservices.bing.com | Copilot |
| Claude | claude.ai | Claude |
| Meta AI | meta.ai | Other AI |
| Grok | grok.com | Other AI |
| DeepSeek | chat.deepseek.com | Other AI |
| Mistral Le Chat | chat.mistral.ai | Other AI |
| Others | you.com, phind.com, poe.com, kagi.com, chat.qwen.ai, duck.ai | Other AI |
New assistants appear regularly, and we add them to the list as they start sending traffic. Grok inside X is one case no tracker can separate: clicks from it arrive from x.com, the same as any other X post.
Why do analytics tools miss AI leads?
Analytics tools miss AI leads because they sort visits into channels using rules written before AI assistants existed. A visit from chatgpt.com does not match a search engine or a social network, so it falls into the general Referral bucket, and a visit with no referrer falls into Direct.
In Google Analytics 4, for example, an AI visit with a referrer shows up with a session source such as chatgpt.com and a medium of referral. It sits in the same channel as a link from a supplier's website or a local directory. You can find it if you go looking, but it is not in any AI channel by default.
The bigger gap is leads. GA4 counts sessions; it does not know which enquiry in your inbox or CRM came from which session. So even a perfect GA4 report cannot tell you that the Smith & Co enquiry came from Perplexity. That link between a lead and its source is what a lead tracker adds.
How can you track which AI assistant sent a lead?
There are three ways to track AI referrals, from free and manual to fully automatic. They differ mainly in whether they track visits or leads, and whether the result reaches your CRM.
| Method | What you need | Tracks leads? | Reaches your CRM? | Upkeep |
|---|---|---|---|---|
| Server logs or custom code | A developer | Only if you build it | Only if you build it | High: you maintain the AI list |
| GA4 custom channel group | GA4 admin access | No, sessions only | No | Medium: update the regex yourself |
| Lead tracker such as HeyLead Attribution | One script or plugin | Yes, every form lead | Yes, via Zapier, webhook or hidden fields | Low: list kept up to date for you |
Option 1: custom code
A developer can read the referrer in your server logs or in the browser, compare it to a list of AI domains like the table above, and store the result with each form submission. It works, but you have to keep the list current, remember the visitor across pages and return visits, and build the hand-off to your CRM yourself.
Option 2: a GA4 custom channel group
In GA4, go to Admin → Data display → Channel groups, create a new group, and add a channel called AI Assistants above Referral. Set its condition to Session source matching a regular expression such as chatgpt|openai|perplexity|gemini|copilot|claude. Your acquisition reports can then use that group, and AI visits get their own row. It is free and worth doing, but it counts sessions, not leads, and nothing reaches your CRM.
Option 3: a lead tracker
A lead tracker reads the referrer and UTM tags when a visitor arrives, remembers them, and attaches them to the lead when that person fills in any form. HeyLead Attribution does this with its AI Lead Tracker: every lead from an AI assistant is labelled AI Referral with the assistant's name, shown in its own report, and can be sent on to your CRM.
How do you set up AI referral tracking, step by step?
Setting up AI referral tracking takes under an hour, most of it waiting for the first visits to arrive. Here is the process for a small business.
- Check what you already have. In GA4, open Reports → Acquisition → Traffic acquisition, switch the dimension to Session source, and search for chatgpt, perplexity, gemini, copilot and claude. Note the numbers as a rough baseline.
- Add the AI channel group in GA4. Follow option 2 above, so your traffic reports show AI as its own row from now on.
- Install a lead tracker on your site. With HeyLead Attribution, install the WordPress plugin, paste one script into your site settings, or add it through Google Tag Manager. Your existing forms are captured automatically, with no hidden fields to add.
- Send AI leads to your CRM. Connect HeyLead to HubSpot, Salesforce, Zoho CRM, Pipedrive or another CRM through Zapier or a webhook, or use hidden fields if your form tool already writes to the CRM. Each lead then carries its channel and source, such as AI Referral and ChatGPT.
- Review monthly. Look at which assistants send leads, which pages they land on, and how many of those leads become customers. Mark leads as customers in HeyLead to see revenue by assistant.
What are the best practices for AI referral tracking?
The best practices come down to tracking every assistant, tracking leads rather than only visits, and reading the numbers alongside your other channels.
- Track every assistant, not only ChatGPT. ChatGPT usually sends the most clicks, but Perplexity, Gemini, Copilot and Claude send leads too, and their share differs by industry.
- Track leads, not just traffic. A visit count says AI found you. A lead count with outcomes says AI sent you customers. Only the second one helps you decide where to spend time.
- Get the source into your CRM. If sales can see that an enquiry came from Perplexity, they know the person probably read a comparison before calling.
- Keep AI next to your other channels. Compare AI Referral with Organic Search, Paid Search and Email in one report, using the same lead and customer counts.
- Watch the landing pages. The pages AI assistants link to show what content earns recommendations. Keep those pages accurate and up to date.
- Remember the blind spots. AI Overviews count as Google search and some app clicks count as Direct, so read AI numbers as a floor.
How do you measure AI visibility?
AI visibility is how often AI assistants mention or recommend your business. Referral tracking measures the part of visibility that turns into clicks, which is the part that matters most, but it cannot see mentions that nobody clicked.
A simple way to measure AI visibility combines four habits:
- Track AI referral leads every month, by assistant and landing page.
- Ask the assistants yourself. Once a month, ask ChatGPT, Perplexity, Gemini and Copilot the five questions your customers ask most, and note whether and how you are mentioned.
- Use an AI visibility tool if you want this at scale. Several tools now run those prompts automatically and report your mention rate.
- Compare over time. Rising mentions with flat AI leads means people see you but do not click; rising leads means the recommendations are working.
To improve visibility, write pages that answer questions directly: a clear definition near the top, question-style headings, facts and numbers instead of slogans, and an FAQ. Our guide on how to see which leads come from ChatGPT covers this in more detail.
What are the most common AI referral tracking mistakes?
- Only checking ChatGPT. The other assistants add up, and some send better-fitting leads for certain industries.
- Counting visits instead of leads. Traffic from AI looks impressive or disappointing depending on the month. Leads and customers are what matter.
- Leaving AI leads out of the CRM. If the label stays in your analytics tool, sales never sees it and nobody can tie AI to revenue.
- Treating the numbers as complete. Missing referrers and AI Overviews mean every report undercounts. Watch the trend instead of the exact figure.
- Tagging your own site's links. Adding UTM tags to links between your own pages overwrites the real source, including AI. Our UTM naming conventions guide explains how to tag safely.
How does HeyLead Attribution track AI referrals?
HeyLead Attribution labels every visit and lead that comes from an AI assistant automatically, as part of its normal lead source tracking. There is nothing extra to set up.
What you get:
- An AI Referral channel with ChatGPT, Perplexity, Gemini, Copilot and Claude named separately, and smaller assistants grouped as Other AI.
- The pages AI links to, so you can see which content earns recommendations.
- Every other channel too, from Google Ads to email, in the same dashboard, so AI is compared on equal terms.
- Leads in your CRM with their channel and source, through Zapier, a webhook or hidden fields.
- A consent mode for sites that only start tracking after a visitor accepts cookies, because HeyLead stores its visitor ID in a first-party cookie and local storage on your domain.
The AI Lead Tracker is included on every plan. Setup takes a few minutes with the WordPress plugin, one script or Google Tag Manager. You can see plans on the pricing page, or read how lead source tracking works across every channel.
AI referral tracking checklist
- Check GA4 for chatgpt, perplexity, gemini, copilot and claude as a baseline.
- Add an AI Assistants channel group in GA4.
- Install a lead tracker so every form lead carries its AI source.
- Send the channel and source to your CRM.
- Mark which AI leads become customers.
- Review AI leads and landing pages once a month.
- Ask the main assistants your customers' questions monthly to check visibility.
- Read AI numbers as a floor, because some AI clicks arrive without a referrer.
Frequently asked questions
What is AI referral tracking?
AI referral tracking is the process of identifying which website visitors and leads came from AI assistants like ChatGPT, Perplexity, Gemini, Copilot and Claude. It reads the referring website and UTM tags on each visit and labels the visit with the assistant that sent it, so AI leads stop hiding in Direct or Referral.
How does AI referral tracking work?
When someone clicks a link in an AI assistant's answer, their browser usually tells your site which page they came from, such as chatgpt.com. ChatGPT also adds utm_source=chatgpt.com to many links. A tracker matches those values against a list of AI domains and labels the visit and the lead with the assistant's name.
Does Google Analytics 4 track AI referrals?
GA4 records them, but not as AI. Visits with a referrer appear as a referral from a domain such as chatgpt.com, mixed in with every other referring site, and visits without a referrer appear as Direct. You can create a custom channel group in GA4 that matches AI domains, but it only applies to reports, not to the leads in your CRM.
What is AI lead tracking?
AI lead tracking means recording which enquiries came from AI assistants such as ChatGPT, Perplexity, Gemini, Copilot and Claude, and keeping that source on each lead. It is AI referral tracking applied to leads rather than visits, so you can see which assistants bring customers, not just traffic.
Which AI assistants send traffic to websites?
The ones that send the most clicks to business websites are ChatGPT, Perplexity, Gemini, Microsoft Copilot and Claude. Others include Meta AI, Grok, DeepSeek, Mistral's Le Chat, You.com, Phind, Poe, Kagi Assistant, Qwen and Duck.ai.
Why does AI traffic show up as Direct?
Some AI apps, especially mobile and desktop apps, open links without sending a referrer, so the visit arrives with no clue where it came from. Analytics tools file those visits as Direct. Visits that do carry a referrer usually show up as an ordinary referral instead of an AI channel.
How do I measure AI visibility?
Track the leads and visits AI assistants send you, ask the main assistants the questions your customers ask and note whether you are mentioned, and watch which of your pages AI assistants link to. Referral tracking shows clicks; it cannot see mentions that nobody clicked.
Is AI referral tracking free?
You can do a basic version free in GA4 with a custom channel group or a source filter. It counts visits, not leads, and it does not reach your CRM. Tracking each lead with its AI source needs a lead tracker; HeyLead Attribution includes AI referral tracking on every plan.