How to Track AI Chatbot Traffic in Google Analytics 4 (GA4)

AI chatbots like ChatGPT, Gemini, Bing Copilot, and Perplexity are changing the way users discover websites. These tools don’t just answer questions — they cite sources, send referral traffic, and influence customer decisions in real time.

But here’s the big question for marketers and business owners:

Google recently released a step-by-step guide to help you create a custom channel group that isolates AI-driven visits inside your analytics dashboard.

Here’s how to do it:

📚 Official Google Guide:
Track AI Chatbot Referrals in GA4

Step 1: Go to Your Admin Settings

  • Log into your GA4 account
  • In the lower-left corner, click the gear icon to access Admin
  • Under the Property column, click on “Channel Groups”

Step 2: Create a New Channel Group

  • Click the “Create new channel group” button (top-right)
Create a new channel group.

Give it a clear name like:

  • AI Traffic Tracking
  • Custom AI Referrals

Add a Custom Channel for AI Chatbots

Add a new channel.

Name your channel: AI Tracking

Set the custom channel condition

Set custom channel condition.

Dimension: Session source

Match Type: matches regex

Regex Input: ^.ai|..openai.|.chatgpt.|.gemini.|.gpt.|.copilot.|.perplexity.|.google.bard.|.bard.google.|.bard.|..gemini.google.*$

This regex pattern captures visits from various known AI platforms including ChatGPT, Gemini, Copilot, Bard, and Perplexity.

Save the channel on the top right hand corner.

How to View AI Traffic in Reports

Once your channel group is set up, it’s easy to monitor traffic from AI sources:

  • Go to Reports
  • Click on Acquisition > Traffic acquisition
  • In the Primary dimension dropdown, select your new Custom Channel Group
  • Look for the “AI Tracking” channel — this is your live data stream of traffic coming from AI platforms
view the ai traffic from traffic acquisition in ga4.

Why Is It Important To Track AI Traffic?

AI is becoming a primary layer of online discovery, much like search engines did 20 years ago. Tools like ChatGPT and Perplexity now influence:

  • Which brands are recommended
  • Where users click next
  • How customers perceive your authority

Tracking this new traffic source helps you understand:

  • Which of your pages AI platforms are citing
  • How many users are discovering you via chat-based recommendations
  • Where you need to optimize your content for AI visibility

Conclusion

AI traffic is no longer futuristic — it’s here now. As platforms like ChatGPT and Google SGE continue to shape user behavior, it’s essential to:

  • Measure your visibility
  • Optimize your content for AI answers
  • Monitor AI referrals just like search or social

Set up this simple GA4 customization today to stay ahead of the curve — and ensure your site doesn’t get left behind in the AI era.

Scroll to Top