ai_referral_overview
Track AI referral sessions from ChatGPT, Perplexity, Gemini, and other AI apps via GA4, and analyze AI-crawler coverage by checking robots.txt for GPTBot, ClaudeBot, and others.
Instructions
First-party view of AI traffic: (1) referral sessions from AI apps (ChatGPT, Perplexity, Gemini, Copilot, Claude, ...) via GA4, detected by both the native ai-assistant channel and a source-host regex; and (2) AI-crawler coverage -- whether robots.txt lets GPTBot, ClaudeBot, PerplexityBot, etc. reach the site. Needs a GA4 property (for referral) and/or a site_url (for crawl coverage). Honest bound: AI referrals undercount badly (~70% land as Direct), and AI-Overview clicks count as Organic, not here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window for GA4 referral. Defaults to 28. | |
| site_url | No | Any URL on the target host, for the robots crawl-coverage check. Defaults to deriving from the GSC default site. | |
| property_id | No | GA4 property (e.g. 'properties/123' or '123'). Defaults to the configured property. |