On this page
What this issue is
When someone clicks a link in an AI answer, their browser may send the AI site as the referrer (the page they came from). Analytics tools read it as the traffic source. ChatGPT, Perplexity, Gemini, Copilot and Claude all send visitors this way, but your analytics has no special bucket for them.
Why it costs you leads or sales
- AI answer cites youUser sees your link in ChatGPT or Perplexity
- User clicksBrowser may or may not send a referrer
- GA4 assigns sourceMixed into Referral or Direct
- AI reportNo AI channel to look at
- DecisionsAI search value unknown
The visit happens, but the source is not recorded as AI.
Example: the same 1,000 monthly sessions before and after adding an AI channel group. Numbers are illustrative.
How to check if your site has it
Open the source reportGoogle Analytics 4
In GA4 go to Reports > Acquisition > Traffic acquisition. Change the dimension to Session source / medium.
Search for AI domains
Use the search box for chatgpt, openai, perplexity, gemini, copilot, claude. Note any matches and their medium.
Look for AI parameters
Some links include utm_source=chatgpt.com. Check whether they show up under that source name.
Check landing pages in Direct
Filter to Direct and sort by landing page. Deep content pages with high Direct traffic may be hidden AI or dark-social visits.
How to fix it
Open channel groupsGoogle Analytics 4
Go to Admin > Data display > Channel groups. Choose Create new channel group.
Add a channel called AI assistantsGoogle Analytics 4
Set the condition Source matches regex with the pattern below. Place this channel above Referral so it takes priority.
Save and waitGoogle Analytics 4
Custom channel groups apply to reports using that group going forward. Pick it in the report's channel dropdown or in Explorations.
Build an explorationGoogle Analytics 4
In Explore, create a Free form report with Session source, Landing page and Key events, filtered to the AI channel.
chatgpt\.com|chat\.openai\.com|openai|perplexity|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|you\.com|phind\.comKeep GA4 configured normally
No special tag is needed. Make sure the GA4 tag fires on all pages and that referral exclusions don't list AI domains.
Check unwanted referrals list
In GA4 Admin > Data streams > Configure tag settings > List unwanted referrals, remove any AI domain you added by mistake.
Use your analytics plugin's reports
If a plugin shows GA4 data in the dashboard, apply the same view in GA4 itself, since plugins rarely support custom channel groups.
Log the referrer yourself
Read document.referrer on landing and store it with the lead, so AI visits can be matched to form submissions later.
(function () {
var ref = document.referrer || '';
var re = /chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai/i;
if (re.test(ref) && window.gtag) {
gtag('event', 'ai_referral', { ai_referrer: ref });
}
})();How to confirm it's fixed
- The AI assistants channel exists in Admin > Data display > Channel groups and sits above Referral
- A report using that channel group lists sessions for known AI sources
- Referral sessions dropped by roughly the amount moved to the AI channel
- Landing pages for AI sessions look like your content pages
- Key events are visible for the AI channel in your exploration
- Server logs show similar AI referrer counts, within a reasonable margin
How to prevent it happening again
Month 0
Create the AI channel group and exploration.
Month 3
Review the Source list for new AI domains and update the regex.
Month 6
Compare against server logs to spot missing sources.
After a site or tag change
Confirm GA4 still records sources and that no AI domain was added to unwanted referrals.
How FunnelGuard handles this
Questions people ask
Why is my ChatGPT traffic not showing in GA4?
It is usually there but hidden. Visits from chatgpt.com appear as a referral among other sources, and some arrive with no referrer and land in Direct. Search Session source / medium for chatgpt and build an AI channel group to see it clearly.
How do I track traffic from ChatGPT and Perplexity in Google Analytics 4?
Go to Admin > Data display > Channel groups and create a channel with a source regex matching chatgpt.com, perplexity and similar domains. Place it above Referral, then use that group in reports or Explorations.
Why does AI traffic show up as Direct?
Direct means GA4 received no referrer. Some AI apps, in-app browsers and copied links strip it. You can't fully recover those visits, so treat AI channel numbers as a minimum.
What is the referral source for ChatGPT in analytics?
It typically appears as chatgpt.com, and older traffic may show chat.openai.com. Some links also include utm_source=chatgpt.com. Check your own source list, since names can change.
Can I see which pages AI assistants send people to?
Yes. In an Exploration, filter to your AI channel and add Landing page as a dimension. This shows which pages get cited and clicked.
Does FunnelGuard track AI referral traffic?
No. FunnelGuard doesn't check AI referral sources yet, and it is a possible future check. It does test that your forms, checkouts and tracking hits work, so conversions from any visitor are recorded.
How often should I update my AI traffic channel group?
Review it about every three months. New assistants appear and domains change, so compare your regex with the sources listed in the Traffic acquisition report.
Related issues
- SEO-393Brand not cited by ChatGPT, Perplexity, Gemini or Claude for category queriesFix guide
- SEO-394Competitors cited instead in AI answersFix guide
- SEO-400AI assistants link to 404 or old URLs on the siteFix guide
- SEO-401Hallucinated URLs from AI assistants not redirectedFix guide
- SEO-392No concise answer-style passages or FAQs that AI can quoteFix guide
- SEO-402Product feed not available to AI shopping (ChatGPT shopping, Merchant Center)Fix guide