Sub topic 2
Why some AI visits look like Direct traffic
Why the referrer goes missing
A browser normally sends a referrer, the address of the page a visitor came from. GA4 uses that value to set the session source. Several things can remove it:
- The assistant opens links in an in-app browser that sends no referrer.
- The sending page uses a strict Referrer-Policy header.
- A visitor copies the link from an answer and pastes it into a new tab.
- A redirect drops the referrer before the visit reaches your site.
When a session has no referrer and no UTM parameters, GA4 records it as Direct.
Creating an AI Assistants channel group
Open Admin, select Data display, then Channel groups, and choose Create new channel group. Add a channel named AI Assistants with the condition Source matches regex, and enter:
.*(chatgpt\.com|chat\.openai\.com|gemini\.google\.com|perplexity\.ai|copilot\.microsoft\.com|claude\.ai).*GA4 checks channels in order, so drag AI Assistants above Referral.
> Hmm
Note: a regex cannot recover Direct visits. It only matches sessions that carry a referrer or UTM values.
Reading AI traffic in reports and explorations
Open Reports, then Acquisition, then Traffic acquisition, and filter Session default channel group to AI Assistants. For a finer view, create a free-form exploration with Session source and Landing page as rows, and Sessions, Engaged sessions, Engagement rate, and Key events as values.
Landing pages, engagement, and conversions
Compare AI visits with Referral visits on the same landing pages. Check engagement rate and key events per session. Confirm the session count first, because small samples can swing widely.
Exercise
A visitor from chatgpt.com arrives in GA4 with session source "direct". Name one reason and one fix.
Show answer
The referrer was stripped, for example by an in-app browser or a copied link. No regex fixes this, so tag the links you control with UTM parameters, such as utm_source=chatgpt.