# How to Track AI Referral Traffic in Google Analytics (GA4)

> Canonical source: [How to Track AI Referral Traffic in Google Analytics (GA4)](https://www.answer.cloud/pages/how-to-track-ai-chatbot-traffic-in-google-analytics-ga4-hosted/)

Use GA4 to examine human referrals from AI services and use server or edge logs for crawler requests.

GA4 is useful for measuring visitors who arrive from AI services and then interact with your website. It is not a complete source of AI crawler traffic: many requests never execute the browser tag, and bot filtering can exclude activity.

## Review human referrals

1. Install and verify your normal GA4 tag and consent configuration.
2. Open the traffic acquisition report and review session source/medium.
3. Look for identifiable AI-service referral sources in the data your site actually receives.
4. Compare landing pages, meaningful interactions, and conversions for those sessions.
5. Keep the reporting date range and definitions consistent when comparing trends.

Some AI links omit a referrer or open in environments that hide it. Such visits may appear as direct traffic; a referral report does not count every AI-assisted visit. Do not label all direct traffic as AI traffic.

## Measure crawlers separately

A browser-side user-agent check only sees clients that execute it. It cannot recreate requests missing from browser analytics. Use server/CDN logs or the [answer.cloud Cloudflare Worker](https://www.answer.cloud/docs/cloudflare-worker-agent-analytics-hosted/) for request-level agent analytics.

Keep requests, human sessions, answer citations, and on-site chat interactions separate. Review [GA4 traffic acquisition documentation](https://support.google.com/analytics/answer/12923437) and the [visibility metrics guide](https://www.answer.cloud/pages/llm-visibility-metrics-the-kpi-playbook-for-seo-and-marketing-leaders-hosted/) before drawing conclusions from a single traffic source.