AI tools like ChatGPT, Google Gemini and Perplexity are quickly becoming part of how people discover websites. Instead of searching Google directly, users are asking AI tools questions – and sometimes, those tools recommend your site.
But here’s the catch: GA4 doesn’t yet have a neat “AI traffic” channel – at least not yet anyway. If you don’t filter it out (or isolate it), AI referrals will get lumped into referrals or organic search, making it difficult to measure the impact.
But, you can create a custom segment in GA4 to track traffic coming from AI tools. Let’s show you how.
Step 1: Open GA4 Explorations
-
Log in to your GA4 property.
-
In the left-hand menu, click Explore.
-
Click + Create new exploration.
Step 2: Build a Segment for AI Tools
-
In your new exploration, click Add segment.
-
Choose Session segment.
-
Under Condition, select Session source/medium.
-
Change the match type to matches regex.
-
Paste in the following regex and click save:
(chatgpt|openai|anthropic|deepseek|grok).com|(gemini|bard).google.com|(perplexity|claude).ai|(copilot.microsoft|edgeservices.bing).com|edge\scopilot
This regex captures traffic from:
-
ChatGPT (when it links to your site)
-
Google Gemini
-
Perplexity search
-
Claude’s browsing
-
Bing Copilot
-
You.com AI search
-
Anthropic
Step 3: Create Two Segments
To get the most out of this analysis, you can create both:
-
AI Tool Traffic: Shows only visits from AI tools (what we’ve created above)
-
Exclude AI Tools: Filters them out so your “traditional” traffic analysis isn’t skewed
Step 4: Analyse the Behaviour
Once applied, you can compare how AI-referred users behave versus your other channels.
Why is this important?
It’s a whole new channel of discovery that didn’t exist two years ago.
Your attribution models don’t yet account for AI referrals. But with this setup, you can start measuring it and get ahead of the curve.
Need help setting this up or interpreting the results? Get in touch with our team to uncover what AI-driven discovery means for your business.
Colour psychology plays an integral role in marketing your business. If you’ve never heard of colour psychology before, it’s the study of how different colours can affect [...]
Our rebrand has given us the opportunity to start from scratch. New look, new feel. One thing we were lacking as Aston Social was our own content [...]
Email marketing is one of the most direct marketing campaigns to build meaningful connection with your audience or customers, and it's important that you have a set [...]
We’ve identified 25 of the best social media marketing agencies in Melbourne that have demonstrated their ability to help businesses optimize their time and achieve impressive results. [...]
Social Media Community Management Strategy What is a Social Media Community Management Strategy? Community management strategy involves overseeing and interacting with your brand’s audience on [...]
There’s no doubt that leveraging social media is one of the best ways to rapidly grow your business. You’ve seen companies that have skyrocketed [...]
Everyone is avoiding the 'R' word at the moment, but there’s no doubt Australia is in the middle of an economic downturn. If you’re noticing a dip [...]
Colour psychology plays an integral role in marketing your business. If you’ve never heard of colour psychology before, it’s the study of how different colours can affect [...]
Our rebrand has given us the opportunity to start from scratch. New look, new feel. One thing we were lacking as Aston Social was our own content [...]
Email marketing is one of the most direct marketing campaigns to build meaningful connection with your audience or customers, and it's important that you have a set [...]
Social Media Fan Acquisition Having a social media presence is one thing, but if you've got no-one to talk to then it's pretty pointless! Knowing how to [...]
We’ve identified 25 of the best social media marketing agencies in Melbourne that have demonstrated their ability to help businesses optimize their time and achieve impressive results. [...]
Social Media Community Management Strategy What is a Social Media Community Management Strategy? Community management strategy involves overseeing and interacting with your brand’s audience on [...]
Although TikTok has quickly grown to be one of the most widely used social media platforms worldwide, you may be wondering - is it worth investing time [...]
Social Media Monitoring and Measurement Social Media creates a mountain of data and mountains of possibilities, but without the proper strategy and technology in place to capture [...]
There’s no doubt that leveraging social media is one of the best ways to rapidly grow your business. You’ve seen companies that have skyrocketed [...]