Skip to content
FunnelGuard

Fix guide by FunnelsGuard

AI referral traffic not tracked: find chatgpt.com visits in GA4

SEO-399Medium impactOther toolBy FunnelGuardPublished Updated
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

Where an AI visit gets lost
  1. AI answer cites youUser sees your link in ChatGPT or Perplexity
  2. User clicksBrowser may or may not send a referrer
  3. GA4 assigns sourceMixed into Referral or Direct
  4. AI reportNo AI channel to look at
  5. DecisionsAI search value unknown

The visit happens, but the source is not recorded as AI.

What your channel report might showExample numbers
What your channel report might show (example)Referral (before): 180 sessions; Referral (after): 130 sessions; AI assistants (after): 50 sessions06913818013050Referral (before)Referral (after)AI assistants (after)sessions

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

Check for AI sources in GA4
  1. Open the source reportGoogle Analytics 4

    In GA4 go to Reports > Acquisition > Traffic acquisition. Change the dimension to Session source / medium.

  2. Search for AI domains

    Use the search box for chatgpt, openai, perplexity, gemini, copilot, claude. Note any matches and their medium.

  3. Look for AI parameters

    Some links include utm_source=chatgpt.com. Check whether they show up under that source name.

  4. 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

Create an AI channel in GA4
  1. Open channel groupsGoogle Analytics 4

    Go to Admin > Data display > Channel groups. Choose Create new channel group.

  2. 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.

  3. 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.

  4. 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.

Regex for the AI assistants channel (source)text
chatgpt\.com|chat\.openai\.com|openai|perplexity|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|you\.com|phind\.com
Other places to see the same data
  1. Keep 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.

  2. Check unwanted referrals list

    In GA4 Admin > Data streams > Configure tag settings > List unwanted referrals, remove any AI domain you added by mistake.

Detect AI referrers and send an event to GA4javascript
(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

Confirmation checklist
  • 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

A simple review rhythm
  1. Month 0

    Create the AI channel group and exploration.

  2. Month 3

    Review the Source list for new AI domains and update the regex.

  3. Month 6

    Compare against server logs to spot missing sources.

  4. 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.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.