How to track AI Chatbot/LLM traffic in Google Analytics 4

Analytics dashboard showing AI chatbot referral traffic sources in GA4

AI tools such as ChatGPT, Perplexity, Claude and Gemini can send visitors to your site after showing your content in an answer. GA4 does not label those sessions as AI traffic by default, but you can separate them by filtering the page referrer dimension.

This gives you an early view of which AI platforms are sending visits, which pages they point to, and how that traffic compares with organic search. If you are tracking wider AI search trends, this sits alongside the patterns covered in our article on AI search’s share of web traffic.

Why track AI chatbot traffic?

Tracking AI chatbot referrals helps you answer three practical questions:

  • How quickly AI referral traffic is changing alongside traditional organic traffic
  • Which AI search or chatbot platforms send visitors to your site
  • Which pages earn clicks after being included in AI-generated answers

Those signals will not replace SEO reporting, but they add context that standard channel groupings can miss.

Set up AI traffic tracking in GA4

You can build this as an exploration in Google Analytics 4:

  1. Create a new exploration.
  2. Set page referrer as your dimension.
  3. Use sessions as your metric.
  4. Add sessions as your value.
  5. Apply this regex match filter:
^https:\/\/(www.meta.ai|www.perplexity.ai|chat.openai.com|claude.ai|chat.mistral.ai|gemini.google.com|bard.google.com|chatgpt.com|copilot.microsoft.com)(\/.*)?$

This filter captures referrals from the listed AI chatbot and AI search domains. Treat it as a maintained list, not a complete measurement system. New platforms may appear, old domains may change, and some tools may route traffic in ways that do not expose a stable referrer.

Image of setup for exploration report
Screenshot

Add more detail to the report

Once the basic report is working, add dimensions that show where AI-referred visitors land and how they behave. Useful additions include:

  • Landing page + query string: shows which URLs receive AI referrals.
  • Session source/medium: helps compare AI referrals with other acquisition sources.
  • Total users: separates user volume from session volume.
  • Views: shows whether AI-referred visits continue beyond the landing page.

Use these fields to spot pages that already appear in AI answers, then compare their engagement with equivalent organic search traffic.

Keep the referrer list maintained

The regex is only as accurate as the domains it includes. Review it regularly and add platforms when you see new AI referral sources in GA4 or server logs. Keep older domains such as bard.google.com only if they still appear in your data.

The useful takeaway is simple: GA4 can track AI chatbot traffic when the platform passes a referrer. Start with a clear exploration, monitor the domains over time, and treat the data as directional rather than complete.

Struggling to turn data into decisions?

We help businesses set up proper tracking, understand their metrics, and take action. Let's discuss how to get more value from your analytics.