How to Track ChatGPT and AI Referrals That GA4 Cannot Tie to Revenue
Classify visits from ChatGPT, Claude, Gemini and Perplexity, tie them to leads and revenue, and know what no tool can see.
- Author
- SourceTrack Team
- Category
- Attribution & Analytics
- Read Time
- 05 Mins read
- Published Date

Inside the page
- How do visits from AI assistants show up in your data?
- How do you classify AI visits?
- How do you tie an AI visit to a lead and to revenue?
- What can you not know?
- A short checklist
- Further reading
- Frequently asked questions
- Why do some ChatGPT visits show up as Direct?
- Can I see which AI assistant sent a customer who paid?
- Does SourceTrack count Google AI Overviews as AI traffic?
- What about people who read an AI answer and then search for my brand?
You can tell which visits came from an AI assistant when the click carries a referrer or a campaign tag that names it. You can tell what those visits earned only if you keep that first touch until the payment. And you cannot see the people who read an answer, close the chat and type your name into a search box. This guide covers what to classify, how to join it to revenue, and where the numbers stop.
How do visits from AI assistants show up in your data?
Three shapes, and you will see all of them.
| Shape | What the request carries | What you can do |
|---|---|---|
| Referrer present | A Referer header naming the assistant’s site | Match the host against a list of known assistants |
| Tag present | A utm_source (or similar) value added to the link | Match the tag value against the same list |
| Neither | No referrer, no tag | Nothing. It looks like someone typed your address |
Whether a given assistant adds a tag to the links it opens, and what value it uses, varies by product and has changed over time. We have not confirmed any specific tag value from an official page, so do not hard-code one from a blog post, including this one. Read your own landing-page logs for a week and write down the hosts and values you actually receive.
The third shape is the large one for many sites. Mobile chat apps and in-app browsers often open links without sending a referrer. That part is unrecoverable by anyone, and any tool that claims otherwise is guessing.
Clicks from Google’s AI Overviews and AI Mode usually arrive from google.com, the same as classic search. You cannot separate them from the referrer, and SourceTrack does not claim to.
How do you classify AI visits?
Classify on arrival, from the two signals you have, with a fixed list and not a model’s guess.
- Read the referrer host and the
utm_sourcevalue. - Compare each against a named list: ChatGPT, Claude, Gemini, Grok, Perplexity and the other answer engines you care about.
- If either matches, set the channel to AI assistant and keep the assistant’s name as the source.
- If neither matches, leave the normal channel logic alone. Do not move Direct traffic into AI because it “looks like” it.
SourceTrack does this on arrival for ChatGPT, Claude, Gemini, Grok, Perplexity and others. A fixed list has one cost: a new assistant is missed until it is added. Review your Direct and Referral rows monthly for hosts that look like new assistants.
If you tag links you control, use a consistent value. A link you place in an AI-facing profile or an answer-engine listing with utm_source=perplexity is classified the same way as any other tag.
How do you tie an AI visit to a lead and to revenue?
Classification gives you a label on a visit. Revenue needs a chain that survives until the purchase.
- Keep the first touch. Store the source of the first visit with the visitor, so a purchase three weeks later still points at it. With a browser identifier this holds on the same browser; read what you keep without cookies for the cases where it does not.
- Capture the source on the lead. When the visitor fills a form, the form submission should carry the visit’s source and tags. That lead is now tied to the assistant.
- Match the payment. Payments can arrive by webhook, so they do not depend on the browser. The payment is matched to the lead or visitor, and the first touch is credited.
A worked example. Priya asks an assistant for a project tool, clicks your link on Tuesday (referrer names the assistant), reads your pricing page, and fills in a demo form. On the form, her source is the assistant. She buys on the following Monday. The payment webhook arrives, matches her email, and the order is credited to the assistant, with the first touch, not to Direct.
Now the same visitor, but the chat app sends no referrer. Tuesday’s visit lands in Direct. The lead and the payment still happen. Your report shows revenue from Direct and none from the assistant. The revenue is correct; the source is missing. This is why AI figures are a floor.
What can you not know?
- The invisible readers. Someone reads an assistant’s answer, remembers your name, and searches for it later. They arrive as branded search or Direct. No tracker links that back.
- Copy and paste. A user copies your address from an answer and pastes it into a browser. No referrer is sent.
- Which answer sent them. You see the assistant, not the prompt or the answer text.
- Why one platform looks bigger. Differences in referrer handling between apps can make one assistant look larger than another without any difference in real influence.
Plan around this. Compare AI-attributed signups against a trend of branded search and Direct. If the three move together, the floor is probably well below the true figure. That is a reading to check, not a number to report.
A short checklist
- Pull a week of landing-page logs and list the referrer hosts and
utm_sourcevalues AI visits actually carry. - Confirm your tracker classifies those hosts as AI assistant, and the others stay where they were.
- Make sure every lead form stores the visit’s source with the lead.
- Connect payments by webhook so the order does not depend on the browser.
- Report AI revenue as “attributed”, next to Direct and branded search, never as a total.
- Re-check the list every month for new assistants and new referrer behaviour.
Further reading
- Google Analytics Help: Default channel group: the rules GA4 uses to sort traffic into channels such as Direct, Organic Search and Referral.
- Google Analytics Help: URL builders, collect campaign data with custom URLs: how UTM parameters are added to destination URLs so Analytics can attribute traffic to campaigns.
Frequently asked questions
Why do some ChatGPT visits show up as Direct?
The visit arrived without a referrer and without a campaign tag, so nothing in the request says where it came from. Some apps and in-app browsers drop the referrer. Those visits cannot be recovered without inventing a source.
Can I see which AI assistant sent a customer who paid?
Yes, when the visit that started the journey carried a referrer or tag that names the assistant, and the payment can be matched to that visitor. The assistant’s name is kept with the first touch, so the order is credited to it.
Does SourceTrack count Google AI Overviews as AI traffic?
No. Clicks from AI Overviews and AI Mode usually arrive from google.com, the same as ordinary search, so they cannot be told apart from the referrer alone.
What about people who read an AI answer and then search for my brand?
They arrive as branded search or Direct, and no tracker can link them back to the AI answer. Treat AI referrals as a floor, not a total.
For tagging basics, see how to track UTM parameters. SourceTrack’s page on AI referral tracking shows the report, how SourceTrack differs from GA4 is laid out in the GA4 comparison, and the pricing page lists plans.
Related Blogs
Click IDs Explained: gclid, fbclid, msclkid and More
What gclid, fbclid, msclkid, ttclid and li_fat_id are, who adds them, what drops them, and how to check you still have one at conversion time.
SourceTrack Team
Attribution & Growth Engineering
20 Oct, 2026
Closed-Loop Attribution Explained
Closed-loop attribution links an ad click to a lead, a CRM stage and revenue, then sends that back to the ad platform. See where it breaks and how to test it.
SourceTrack Team
Attribution & Growth Engineering
20 Oct, 2026
Deterministic vs Probabilistic Attribution Explained
Deterministic attribution reads the link from an id that exists; probabilistic infers it from similar signals. What each gets wrong and what to ask a vendor.
SourceTrack Team
Attribution & Growth Engineering
26 Oct, 2026


