Sub topic 12
AI Crawlers Versus Visitors Who Click a Link
Assume you know how GA4 reports sessions, source, medium, and referrer, and that you can inspect your site's server logs. This distinction matters because an AI system can access your content without sending a visitor to your site.
Two different types of AI activity
An AI crawler is an automated program that requests pages so an AI system can index, retrieve, or evaluate their content. A crawler usually does not open the page as a normal browser would. It may not run your analytics JavaScript, store a browser cookie, or create a GA4 session.
A referral visitor is a person who clicks a link in an AI assistant and loads your site. The visitor's browser may send the AI assistant's URL in the document.referrer value. If it does, GA4 can use that value to attribute the session.
These activities can happen for the same page but produce different measurement results.
What GA4 can and cannot see
GA4 records activity from the measurement code that runs in a visitor's browser or app. It does not automatically record every request made to your web server.
| Activity | Server logs | GA4 data | Typical attribution |
|---|---|---|---|
| AI crawler fetches a page | Usually visible | Usually absent | No GA4 source or session |
| Person clicks an AI link with a referrer | Visible | Usually visible | Referral or custom AI channel |
| Person opens a copied link | Visible | Usually visible | Direct, unless UTMs are present |
| AI app removes the referrer | Visible | Usually visible | Direct or another available source |
A crawler's request may include a user-agent string that identifies the bot. You can inspect that string in web server, CDN, or WAF logs. The exact names and behavior vary by provider, and a user-agent string is not proof of identity because it can be changed.
A GA4 report showing no AI referrals does not prove that AI systems never crawled your site. It may only mean that crawlers did not execute GA4, or that people arrived without a usable referrer.
Interpreting the traffic correctly
Keep crawler data and visitor data in separate measurement systems:
- Use GA4 for people who load pages with your analytics tag.
- Use server, CDN, or WAF logs for automated requests.
- Use a custom channel group to classify known AI referrers among GA4 sessions.
- Use UTM parameters when you control the links and need a more stable signal.
Do not add crawler user agents to a GA4 channel rule. GA4 channel rules classify sessions, while crawler identification belongs in request logs. Also, do not count crawler requests as visits when calculating engagement rate, conversions, or revenue.
A person can also arrive from an AI assistant without producing a recognizable AI source. The assistant might open a redirect, use a privacy policy that suppresses the referrer, or show a link that the person copies into a new browser tab. Those sessions may appear as Direct. This is why GA4 AI-referral totals are usually a lower bound, not a census of all visits influenced by AI.
A practical validation approach
Test both paths separately:
- Request a page with a controlled crawler or inspect existing bot requests in your logs. Confirm the request appears in server data and check whether a GA4 event was created.
- Click a link from an AI assistant to a test page. Check the browser's referrer and then inspect GA4 Realtime or DebugView.
- Repeat the click after copying the URL into a new tab. Compare the resulting source and medium.
- Record the user agent, referrer, landing page, and timestamp for each test.
This test reveals whether your own assistant, browser, redirects, and consent settings preserve the signals you expect.
Exercise
A server log shows 10,000 requests from an AI crawler, but GA4 shows zero sessions from that crawler. Should you add those requests to your AI referral channel?
Show answer
No. The requests are crawler activity, not GA4 sessions. Report them separately from human clicks and GA4 referral sessions.