Make AI traffic visible in GA4 – quickly capture visitors from ChatGPT, Perplexity & Co
AI-based tools like ChatGPT, Perplexity, Gemini or Copilot are changing search behavior. Many websites already receive visits through these “AI Discovery” channels but do not see them separately in Google Analytics 4 (GA4). With the Explore function, you can quickly visualize AI traffic - without any code.
Why measure AI traffic?
AI platforms link or recommend content directly. Without proper evaluation, this traffic often ends up as “direct” or as an unspecific “referral”. If you measure AI traffic separately, you will see:
- which AI platforms send visitors,
- which landing pages particularly benefit,
- and how well that traffic converts.
Step-by-step: Make AI traffic visible with GA4
1) Open Explore
In GA4, open Explore on the left and select Blank or Free Form. Give a name, e.g. B. “AI Traffic Overview”.
2) Create session segment for AI traffic
Click on “+” under “Segments” on the left and select “Session segment”. Name: “AI Traffic (Session)”. Add condition:
Field: Session source Operator: matches regex
(chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|you\.com|poe\.com)
Later you can expand the list, for example bard.google.com , claude.ai , phind.com , writesonic.com.
3) Add dimensions and metrics
Add under “Dimensions”:
- Page referrer (specific referrer URL/domain)
- Session source or session source/medium
- Landing page + query string
Add under “Metrics”:
- Sessions
- Engaged sessions or engagement rate
- Conversions (or your primary conversion event)
- Average engagement time per session
4) Build a table
Select the “Free form” technique in the “Settings” tab on the right. Then:
- Rows: Page referrer
- Optional additional rows: Session source; Landing page + query string
- Values: Sessions, Conversions, Engagement rate, Average engagement time per session
Drag the “AI Traffic (Session)” segment onto the tab to activate it. Sort by sessions or conversions.
How to read the results
The table shows you for each referrer domain which AI tool sends visitors and how they perform. Examples:
chat.openai.com 243 sessions 38 conversions 2m 40s engagement
perplexity.ai 97 sessions 14 conversions 1m 55s engagement
gemini.google.com 52 sessions 9 conversions 3m 20s engagement
Add “Landing page + query string” as an additional line to see which content is most frequently targeted by AI tools.
Optional: Compare AI vs. Non-AI
Create a second session segment “Non-AI Traffic” (same regex, but “does not match”). Enable both segments in the tab to compare AI and non-AI traffic side by side.
Optional: Trend over time
Create a second tab in Exploration:
- Rows: Date
- Values: Sessions, Conversions
- Segment: AI Traffic (Session) and optionally Non-AI
This way you can see whether AI traffic is growing proportionately.
Fine tuning & practical tips
- Regularly expand Regex to include new AI domains.
- Exclude internal referrers so that no distortions arise.
- When sampling, reduce the period or use fewer dimensions.
- Save Explore so you can reuse the view.
Advanced regex template
To insert directly and adjust later:
(chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|you\.com|poe\.com|bard\.google\.com|claude\.ai|phind\.com|writesonic\.com|duckduckgo\.com/aicompose|huggingface\.co)
Conclusion
With a single session segment and the “Page referrer” dimension, you can quickly make AI traffic visible in GA4 – without any implementation effort. You can see which AI platforms bring visitors, which content benefits and how much this traffic converts. This way you can react to the new discovery world early and take advantage of opportunities for SEO, content and conversion optimization.