Learn how to track AI chatbot traffic in GA4 with our step-by-step guide. Optimize your strategy with actionable insights from AI-driven sessions.
Learn how to track AI chatbot traffic in GA4 with our step-by-step guide. Optimize your strategy with actionable insights from AI-driven sessions.
^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)(\/.*)?$
The rapid rise of AI chatbots like ChatGPT, Bard, and Perplexity means more users are interacting with websites via these platforms. But how do you track these interactions? Thankfully, we’ve learned how to track traffic from AI chatbots using Google Analytics 4 (GA4). In this guide, we’ll walk you through the tracking setup process, what the data means, and the importance of these metrics for making data-driven decisions.
As every website owner knows, it’s important to track user behavior across your site — but it’s also important to know how users made it to your site in the first place. With AI-powered conversations on the rise, you have to treat these platforms like another traffic source.
Tracking AI chatbot traffic provides insight into how your site is being discovered through these new channels, allowing you to:
Here’s how to set up tracking for your AI-driven referral traffic.
To start tracking AI traffic, head over to your GA4 dashboard and navigate to the Explorations section. This is where you can build a custom report tailored to tracking referrals from AI bots.
Click on the Blank template to create a new exploration. Give your exploration a descriptive name, like “AI Chatbot Traffic.”
For tracking AI chatbot traffic, you’ll need to set the right dimensions and metrics:
To filter out relevant traffic from AI chatbots, you’ll need to apply a custom regex filter. This will capture sessions that come from the AI chatbot domains. Under filters, choose “Page referrer” and select “Matches regex.” Here’s the regex we used:
^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 regex captures traffic from:
Now that you’ve set the dimensions and filter, customize the layout to make the data easier to analyze. For example:
Note that GA4’s Explorations default view will only provide you with data from the previous 2 months. You can update your data retention range to 14 months, but this may still be limiting if you’d like to go back further.
Instead, try setting up a Looker Studio dashboard with a similar setup of sessions by page referrer with the regex filter applied. This will not only remove any time limitations but let you better customize your reporting.
Once the exploration is set up, you should start seeing traffic data from AI chatbot sources.
Review the trends to understand:
Important: If your exploration report is blank, your site may simply not have any traffic from AI chatbots either at all or within the 2-month timeframe. Try setting up a Looker Studio chart with a wider date range to see if any data appears.
Tracking AI chatbot traffic in GA4 gives you valuable insights, but there are a few limitations to keep in mind:
GA4 does not track visits from bots themselves. It only tracks clicks from human users engaging within the AI platforms.
The regex filter only captures a handful of the top-known AI platforms, so you’ll need to update it as new AI services emerge.
Despite these limitations, the ability to track AI traffic is a powerful tool for understanding how emerging technologies are affecting your site’s performance.
Setting up your data exploration or Looker Studio dashboard is only the first step. The important thing is how you use the data once you have it.
For instance, in 2024, GPO has seen:
This data helps us optimize our content strategy for AI-driven sessions. For instance, we can analyze the event actions, review user experience on the pages viewed, and drill down on actions taken before exiting the site ensuring we’re meeting the needs of users arriving via these platforms.
Data-driven decisions are essential for effective content strategies, and at GPO, we leverage a wide range of metrics to optimize performance. We stay at the forefront of reporting and analytics trends, using those insights to shape our clients’ strategies. Every blog, SEO recommendation, and local landing page we create is rooted in detailed research and backed by actionable traffic data.
Chat with our experts today to learn how we can help your brand be found more frequently online and leverage AI traffic insights to boost your strategy.
Learn how to track AI chatbot traffic in GA4 with our step-by-step guide. Optimize your strategy with actionable insights from AI-driven sessions.
A few weeks ago, we covered the unique hurdles niche brands face when gaining impressions and traffic online. As a quick refresh, the five challenges we explored are: However, understanding what problems your niche brand faces is just one part of the equation. You also need to know the strategies to employ to help you […]
Discover the differences between Squarespace vs WordPress for your site. Learn about customization, SEO, and user-friendliness.