Skip to Content
Google Analytics (GA4)

Google Analytics (GA4)

By default, GA4 puts visits from ChatGPT, Perplexity and other AI platforms into the “Referral” channel. This guide adds an “Artificial Intelligence” channel, so AI traffic shows as its own row in your reports.

Time needed: about 5 minutes. The change also applies to your past data.


Setup

Open Channel Groups

Go to Admin (the gear icon, bottom left). Under Property settings, expand Data display and click Channel groups.

Click Create new channel group.

Open Channel Groups in GA4 Admin

Create the channel group

Give the group a clear name, for example “With AI Traffic”. GA4 copies all default channels into the new group, and you can change them there.

Click Add new channel.

Create new channel group in GA4

Set up the AI channel

Name the channel Artificial Intelligence. You can use a different name if you prefer.

Set the condition:

  • Dimension: Source
  • Condition: matches regex
  • Value: paste the regex below
AI Source Regex
chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|deepseek\.com|you\.com|meta\.ai|poe\.com

The regex covers the AI platforms that send almost all AI referral traffic.

Click Apply, then Save channel.

Configure AI channel with regex in GA4

Move the AI channel above Referral

Do not skip this step. GA4 gives each visit to the first channel in the list that matches. If “Referral” is above your AI channel, Referral takes all AI visits and your new channel stays empty.

Drag Artificial Intelligence directly above Referral. Then save.

Reorder channels so AI is above Referral

Switch the report to your channel group

Go to Reports > Life cycle > Acquisition > Traffic acquisition.

Click the dimension menu (the blue pill above the table). Select Session Custom channel group.

Switch to custom channel group in GA4 report

See your AI traffic

The table now shows Artificial Intelligence as its own row. It has Sessions, Users, Engagement Rate and all other standard metrics.

AI traffic visible as its own channel in GA4


Which metrics to watch

MetricUseDetail
SessionsMain metricAll visits from AI platforms. The most stable number for weekly trends.
Engagement RateQualitySessions with 10 or more seconds, 2 or more pages, or a conversion. Compare it with Organic Search.
New UsersQuarterly reviewShows if AI platforms bring you new people.

GA4 misses about 30 to 40% of AI traffic. Free ChatGPT users and mobile AI apps often send no referrer, so GA4 counts these visits as “Direct”. Use Cloudflare as a second source.

Last updated on