While Google maintains around 90% of the global search market share, new data shows a fast-growing shift toward LLM-based search. This change stems from two major technological breakthroughs reshaping how users find information.
First, Retrieval Augmented Generation (RAG) allows tools like ChatGPT with Search and Perplexity to deliver live, real-time results, unlike older, static models. Second, LLMs are now built into websites as chatbots, support widgets, and AI search bars, reshaping how users find answers and interact with businesses.
To track this shift accurately, you need to measure chatbot traffic inside Google Analytics 4 using the right structure and parameters.
In this guide, we’ll show you how to track AI and LLM chatbot traffic inside GA4, uncover key user behaviors, and optimize for conversions.
AI traffic refers to any website visit that originates from a generative AI assistant or language model interface, such as ChatGPT, Perplexity, Bing Copilot, Claude, or Google’s Gemini.
In fact, 63% of websites already receive traffic from AI tools. ChatGPT alone drives 50% of that, making it the single largest AI referrer. In total, just three chatbots account for 98% of all AI-driven visits. On average, AI chatbots account for 0.17% of total website traffic, but the percentage climbs higher for smaller sites.
AI traffic enters through three primary paths, including:
One of the current debates within the SEO industry centers on whether tools like ChatGPT and other LLMs should be classified as search engines.
What is clear, however, is that user behavior is shifting significantly.
People now use Meta AI, ChatGPT, and even TikTok to search, make decisions, and take action. As discovery spreads across platforms, your SEO strategy must adapt to follow user intent across every entry point.
You need to ask new questions:
Without accurate tracking, you risk underreporting performance and misjudge which touchpoints influence discovery and conversion.
GA4 does not automatically categorize these sessions as “AI traffic.” Instead, you may see them incorrectly grouped under:
Some AI tools strip referrer data entirely, while others use vague or misleading domains. As a result, your reports may undercount or misattribute AI-driven sessions.
GA4 also fails to surface LLM query context or chatbot triggers in event data. You won't see which prompt led to the click or what type of user behavior occurred before it. Without customization, the platform gives you limited insight into how AI tools influence your traffic or conversions.
To fix this gap, you’ll need to identify, tag, and track AI-based interactions manually or through server-side tracking. We'll show you exactly how to do that in the next section.
But traffic isn’t the only issue—AI also impacts how attribution and keyword strategy function. You face new challenges with link visibility and attribution.
AI tools often summarize content without passing a backlink or referring domain. That weakens traditional strategies like SaaS link building, where attribution plays a direct role in ranking and authority.
At the same time, AI is changing how users discover and phrase their needs:
You need to track these changes to protect traffic, retain visibility, and measure the impact of Google AI Overviews on SEO and organic traffic.
Consider how SentinelOne navigated this shift. With TripleDart Digital, the company built a robust SEO foundation tailored for long-form, high-intent content that aligns with how users now search and make decisions through AI tools.
That strategy led to a 250% growth in qualified organic traffic, expanding their keyword footprint by 450% and unlocking high-value business opportunities.
Since GA4 doesn’t natively recognize or label traffic from AI tools, you have to create your own system for tagging, collecting, and reporting that data. That means customizing your reporting setup with filters, events, dimensions, and visualizations that specifically track AI-related activity.
Here’s how.
Start with GA4’s Explore section to surface potential AI referrers and unusual traffic patterns. This method helps you find baseline indicators without creating new tracking infrastructure.
Go to the Explore tab inside your GA4 account. Select Free Form as the exploration type. This layout provides flexibility to combine dimensions and metrics for in-depth analysis.
Click the plus icon next to Dimensions and import the following:
In the Metrics section, click the plus icon again and choose Sessions to display how many visits each source drives. Based on your goals, you can also add extra metrics and dimensions:
After choosing your variables, double-click each name or drag them into the free-form section on the right. GA4 will generate a table with your selected data, but at this stage, it still shows all referral traffic, just like a standard report.
Apply a filter to the Session source/medium dimension to isolate chatbot traffic. Use a regex string like:
(chat\.openai|gemini\.google|copilot\.microsoft)
If you want broader coverage, add more domains known for AI referrals, such as:
(chat\.openai|gemini\.google|copilot\.microsoft|perplexity\.ai|meta\.ai)
This filter narrows the view to sessions likely triggered by chatbot interactions. From here, you can analyze landing pages, traffic volume, and engagement tied to AI-driven visits.
If you want more control over how GA4 captures AI chatbot interactions, you can create custom events and dimensions. This way, you can track user actions that don’t appear in default reports, such as link clicks generated by chatbots or AI-assisted navigation.
Start by setting up a trigger in GTM that detects link clicks related to AI chatbot interactions.
There are two types of click triggers in Google Tag Manager: All elements and Just links. As the names suggest, the All elements trigger tracks clicks on any element (link, image, button, etc.), while the Just links trigger tracks clicks on links only.
Choose the “Click – Just Links” trigger type, and use conditions like URL patterns or CSS selectors to narrow the scope.
Next, configure a tag that sends a custom event to GA4 when the trigger fires. You should:
Before publishing, use GTM’s Preview Mode to test your tag:
Once confirmed, publish the tag to make it live.
After the tag is working properly, register the parameters (e.g., menu_item_url, menu_item_name) as Custom Dimensions in GA4. Follow these steps:
This step allows you to break down chatbot-driven activity and track specific interactions across your site.
Open your GA4 property and go to the Events section under Configure in the left-hand menu. Click on Create Event to set up a new custom event dedicated to tracking AI chatbot interactions,
Once in the Create Event screen, define the new event for AI chatbot activity:
To add more context to the event, define parameters that capture key details about each AI interaction.
For instance, parameters such as menu_item_url and menu_item_name will help you track exactly what the user engaged with on the chatbot interface. These parameters allow you to gather specific insights into how the chatbot is being used and what actions are driving user engagement.
After defining your custom event and its parameters, register the parameters as Custom Dimensions for detailed reporting.
In GA4, go to Admin > Custom Definitions and add each parameter (like menu_item_url or menu_item_name) as a new custom dimension.
This step ensures that you can segment and analyze chatbot interactions within your GA4 reports, allowing you to track user behavior and make data-driven decisions based on specific AI chatbot interactions.
Now, you have a fully configured system for tracking AI chatbot interactions directly within GA4, without needing to use Google Tag Manager.
To get a clear view of these trends, create custom reports and explorations in GA4, as outlined in the earlier sections. Once you’ve isolated AI traffic with segments or dimensions, bring that data into Looker Studio for more flexible and visual analysis.
Start by opening Looker Studio and creating a new report.
After refreshing, add your Custom AI Traffic Segment to the report:
Looker Studio gives you more control over how you visualize and communicate the impact of AI referrals across your site.
To track meaningful data in GA4, you must separate AI bot traffic from scraping bots and obvious spam. AI bots often simulate human interaction patterns, while scrapers and spam bots trigger irrelevant sessions and inflate metrics.
If you want to identify bot traffic in GA4, you can customize reports, look for suspicious patterns like short session durations or unrealistic page views, and utilize GA4's built-in bot traffic exclusion.
Here’s how:
Open GA4 and go to the “Traffic acquisition” or “Traffic sources” reports.
Add metrics like session duration, engagement rate, and bounce rate. These reports help you spot unusual traffic patterns linked to suspicious referrers or non-human behavior.
Look for short session durations, unrealistic page views, or odd behaviors like multiple form fills without scroll activity.
A spike in spam comments or declined card transactions can also point to bot traffic attempting fraudulent actions.
Check the referrer and session source data for unrecognized domains or traffic spikes from unlikely countries. Use secondary dimensions to add IP addresses, device category, or user agents for deeper insight.
Create custom segments to group traffic with low engagement, high bounce rates, or unusual session behavior.
Follow these steps to build a segment:
Use filters to view sessions from specific user agents or referrers that might be bots. Here’s how:
Now, to remove bot traffic, you can create custom segments or filters to isolate and remove specific types of traffic based on IP addresses, user agents, or other criteria.
GA4 automatically filters out traffic from known bots and spiders, but this list doesn’t catch everything.
Define internal traffic filters to exclude specific IP ranges used by bots or internal tools that shouldn’t appear in your reports.
Build custom segments to exclude bot-like sessions when analyzing key metrics. This helps you view clean performance data.
Go to Admin > Data Streams and click your property. Use “Configure tag settings” to define rules for internal traffic using parameters like IP addresses or hostnames.
Apply the Referral Exclusion List to remove spammy or ghost domains that show up as referrers but never deliver engaged traffic.
Once you isolate AI traffic in GA4, you need to focus on specific metrics that reveal behavior and value.
You can start with these metrics:
These numbers tell you how long AI visitors interact with content and where they stop engaging.
Next, measure conversion rates across goals and micro-conversions to understand how AI traffic affects actual outcomes. Watch for events triggered without final actions, as they often indicate partial or automated sessions. Track these across different journeys to spot which ones fail to convert or mimic human actions.
Compare all metrics against your human traffic benchmarks to find gaps, spikes, or unnatural consistency. To observe how behavior changes over time, switch your exploration view to a Line Chart.
Here’s how:
Set the date range to 90 days and granularity to week so trends appear clearly across time.
You can’t treat AI or LLM-generated visits like normal traffic. Their patterns, triggers, and influence need separate tracking. Furthermore, AI sessions often inflate engagement or trigger false conversions, which skews your reporting. Segment them before they distort real behavior.
GA4 gives you a starting point, but it lacks built-in filters for LLMs or emerging AI tools. That’s why you need custom segments, smarter channel grouping, and layered metrics to see clearly.
As GA4 evolves, continue to track every new feature that improves AI traffic visibility.
TripleDart Digital helps you set up what GA4 doesn’t. Our GA4 migration services can help you fine-tune tracking setups that keep up with Google’s rapid changes. If you’ve migrated recently and missed key configurations, our team can rebuild your setup from the ground up.
Don’t wait for perfect data. Test, track, compare, and refine based on real user journeys. With AI SEO tools and reporting dashboards built around behavior patterns, TripleDart can help you measure impact, not just impressions. We also track Google’s algorithm changes in real time, so you see exactly what shifted and why.
Ready to future-proof your analytics? Book an intro call today to set up AI traffic tracking and gain a competitive edge.
Create custom events, use regex filters for AI referrers, and build segments in GA4 Explore or Looker Studio to monitor sessions from tools like ChatGPT or Google’s Gemini.
Check for unusual traffic spikes, zero engagement, or known bot referrers. Use filters, hostname validation, and custom dimensions to isolate and analyze suspicious or automated behavior patterns.
Provide clear, valuable content with linkable answers. Add source-friendly URLs, engage in popular prompts, and monitor referrer data to identify traffic from chat.openai or similar domains.
Join 70+ successful B2B SaaS companies on the path to achieving T2D3 with our SaaS marketing services.