# GA4 AI Referral Traffic Filter

Build a ready-to-paste Google Analytics 4 regex filter to track sessions from ChatGPT, Perplexity, Claude, Gemini, and Copilot. Free.

## Build your session source filter

Your selections stay in this browser. Copy the filter to use in your own GA4 property.

## Platforms to measure

- ChatGPT
- Perplexity
- Claude
- Gemini
- Copilot

- Regular expression (regex)

### Apply the filter in GA4

1.  Open Explorations and create a Free form exploration.
2.  Import the Session source dimension and the Sessions metric. Add them to Rows and Values respectively.
3.  Under Filters, choose Session source and matches regex. Paste your filter and click Apply.

This filter matches source domains recorded by GA4. Traffic without a matching source is outside its scope, including AI Overviews and AI Mode clicks recorded as Google Search.

[GA4 exploration filter guide](https://support.google.com/analytics/answer/9328518)

### How to interpret AI referral traffic in GA4

### Filter one platform when you need detail

Select only ChatGPT and apply the filter to Session source. Add Landing page as a second row dimension to see which pages people first visited from that source.

### Compare periods with the same filter

Write down the platforms selected and compare equal-length periods. For small samples, report the raw session counts alongside the change so a handful of sessions is easy to interpret.

### Treat sessions and citations as separate signals

GA4 sessions show attributable visits. An AI answer can cite a page without sending a visitor. Use platform reporting and buyer prompt tests to see which sources appear in answers.

### Why use this if GA4 has an AI Assistant channel?

Use the built-in channel for an overview of assistant traffic. Use this filter in an exploration when you want a specific subset of platforms.

### Why are there no matching sessions?

Check your date range, the Session source dimension, and the reported source values. The filter only includes selected source domains that GA4 recorded for your sessions.

-   [GA4 traffic acquisition report](https://support.google.com/analytics/answer/12923437)
-   [GA4 AI Assistant channel](https://support.google.com/analytics/answer/9756891)

## Related tools

-   [AI Search Buyer Prompt Generator](https://terlihat.com/en/ai-search-prompt-generator)
-   [Free AI Search Readiness Checker](https://terlihat.com/en/ai-search-readiness-checker)

### See which landing pages get AI referrals

After applying the filter, compare landing pages for the sources it picks up. If you have few sessions, check the date range and recorded source names before drawing conclusions from weekly changes.

Share your date range, the GA4 dimension you used, and a report summary. We can help assess whether the measurement answers your question and pick pages to review in more detail.

[Discuss these findings](https://terlihat.com/en/contact)

---

Source: [Terlihat.com](https://terlihat.com/en/ga4-ai-referral-filter)
Summary: Build a ready-to-paste Google Analytics 4 regex filter to track sessions from ChatGPT, Perplexity, Claude, Gemini, and Copilot. Free.
Indonesian version: https://terlihat.com/filter-trafik-ai-ga4
