Tracking LLM referral traffic in Google Analytics 4 (GA4) requires creating a dedicated custom channel group that isolates visits originating from conversational artificial intelligence assistants. In default GA4 implementations, visits from ChatGPT, Perplexity, Claude, Gemini, and Microsoft Copilot are absorbed into generic Referral or Direct channels. Building custom regular expression rules allows marketing and analytics teams to measure session volume, engagement time, and commercial conversion rates generated by generative answer engines.
However, client-side web analytics only capture users who click through a citation link to your website. SparkToro empirical data confirms that zero-click searches account for 68% of commercial search queries, and conversational models synthesize comprehensive answers that satisfy user intent directly within the chat interface. Comprehensive measurement therefore requires pairing GA4 referral telemetry with platform-wide citation tracking to quantify both on-site traffic and off-site brand visibility.
This technical guide provides the exact regular expression syntax, custom channel group configuration steps, and Looker Studio dashboard architecture required to measure generative search performance accurately.
Key Takeaways
- Default GA4 properties bury AI assistant visits inside generic Referral and Direct channels because standard channel grouping rules lack dedicated AI definitions.
- Mobile application traffic from OpenAI and Perplexity arrives with specific Android intent URI strings (
android-app://com.openai.chatgpt) that require dedicated page referrer regex rules. - Placing your custom "AI Search / LLMs" channel definition above standard "Referral" and "Organic Search" prevents rule-precedence conflicts in GA4.
- Client-side analytics capture fewer than 10% of total brand impressions in AI answers due to zero-click synthesis behavior.
- Looker Studio custom calculated fields enable retrospective analysis of historical AI traffic without altering default GA4 data streams.
- Measuring brand citations inside ChatGPT and Perplexity requires off-site tracking platforms like LLM Visibility alongside GA4 session telemetry.
Frequently Asked Questions
Why does GA4 not track ChatGPT traffic by default?
GA4 does not track ChatGPT traffic by default because its default channel grouping rules classify chatgpt.com as a standard referral domain rather than a dedicated search channel.
What is the source domain for ChatGPT in GA4?
The primary source domains for ChatGPT in GA4 are chatgpt.com, chat.openai.com, and the native Android package android-app://com.openai.chatgpt.
How do I isolate Perplexity AI traffic in Google Analytics?
You isolate Perplexity AI traffic in Google Analytics by creating a custom channel group rule matching the source dimension against perplexity\.ai.
What is dark AI traffic?
Dark AI traffic refers to website visits initiated by conversational assistants that arrive without HTTP referrer headers, causing analytics platforms to misclassify them as direct traffic.
Does GA4 show which prompt generated an AI referral visit?
No, GA4 does not show the prompt that generated an AI referral visit because conversational platforms do not pass user search strings in the HTTP referrer header.
Why Default Google Analytics 4 Conceals AI Search Traffic
Default Google Analytics 4 conceals AI search traffic because standard channel grouping definitions classify conversational platforms as generic web referrers. When a visitor clicks a citation link inside ChatGPT, the browser transmits an HTTP referrer header containing chatgpt.com. GA4 processes this incoming session against its default channel hierarchy, matching the rule for "Referral" (medium = referral) and halting further evaluation.
Standard GA4 Processing (Traffic Obscured):
[User Clicks Link in ChatGPT] ──> [HTTP Referrer: chatgpt.com] ──> [GA4 Default Rules] ──> Classified as "Referral"
Custom GA4 Processing (Traffic Isolated):
[User Clicks Link in ChatGPT] ──> [Custom Channel Hierarchy] ──> [Rule: Source matches AI regex] ──> Classified as "AI Search"
This default classification produces three major analytical blind spots:
- Diluted Referral Metrics: AI-referred visitors display distinct behavioral characteristics compared to traditional referral traffic from blogs or directory listings. Lumping them into generic referral reports distorts conversion rates and engagement metrics.
- Invisible Mobile App Sessions: When a user opens a link inside the native ChatGPT or Perplexity iOS and Android applications, the operating system webview frequently strips standard referrer headers. In Android environments, the session passes
android-app://com.openai.chatgpt, which default GA4 rules fail to match. - Misattribution to Direct Traffic: Users frequently copy recommendations generated by an LLM and paste the URL or brand name into a fresh browser tab. GA4 records these sessions as "Direct / (none)", hiding the causal role of the AI engine in initiating the purchase journey.
Overcoming these limitations requires configuring custom channel definitions that evaluate source domains and mobile application referrers before standard rules execute.
Step-by-Step Custom Channel Group Configuration in GA4
Configuring a custom channel group in GA4 establishes a permanent, isolated reporting dimension that categorizes AI traffic without corrupting your property's historical default channels.
GA4 Admin Console
└── Data display
└── Channel groups
└── [Create new channel group]
└── Add Channel: "AI Search / LLMs"
├── Condition 1: Source matches regex (Web domains)
└── Condition 2 (OR): Page referrer matches regex (Mobile apps)
Follow this five-step sequence in your GA4 property:
Step 1: Open Property Settings
Navigate to the Admin panel in Google Analytics 4. Under the Data display sub-menu, select Channel groups.
Step 2: Create a Custom Channel Group
Click Create new channel group. Do not edit the default group directly. Creating a custom group preserves the baseline Google-defined channel grouping for audit comparison while giving your team full control over rule hierarchy. Name the group Custom Acquisition - AI Enhanced.
Step 3: Define the AI Search Channel
Click Add new channel and label the channel AI Search / LLMs. Position this channel at the top of your rule order (above Organic Search and Referral). GA4 evaluates channel rules sequentially from top to bottom; placing the AI definition first guarantees that visits from hybrid engines like Copilot and SearchGPT evaluate before falling into broad fallback buckets.
Step 4: Apply Regex Rule Conditions
Configure the channel matching logic using two condition groups connected by an OR operator:
- Condition 1 (Web Sources): Dimension:
Source| Match type:matches regex (ignore case)| Value: Paste the primary source regex pattern. - Condition 2 (Mobile Apps): Dimension:
Page referrer| Match type:matches regex (ignore case)| Value: Paste the mobile application referrer regex pattern.
Step 5: Save and Reorder
Click Save channel, review the complete rule hierarchy to confirm AI Search / LLMs sits above generic channels, and click Save group. GA4 begins applying your custom grouping to incoming sessions immediately and processes historical data in custom exploration reports.
Use the interactive generator below to assemble your verified regular expressions.
Custom AI Channel Group & Regex Generator
Generate production-ready regular expressions to isolate AI assistants in Google Analytics 4.
Source matches regexPage referrer matches regex (captures Android & iOS apps)The Exact Regular Expression Syntax for AI Referrers
The exact regular expression syntax for AI referrers accounts for top-level domain variations, subdomains, and native mobile intent URI protocols. A brittle regular expression that checks only for chatgpt drops subdomains like chat.openai.com or international engine variants.
The production-verified regular expression string below matches all verified web referral domains across OpenAI, Perplexity, Anthropic, Google Gemini, Microsoft Copilot, DeepSeek, and xAI:
.*(chatgpt\.com|chat\.openai\.com|oaistatic\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|bard\.google\.com|copilot\.microsoft\.com|sydney\.bing\.com|chat\.deepseek\.com|deepseek\.com|x\.ai|grok\.com).*To capture visits originating from native Android and iOS mobile applications, apply this companion regular expression against the Page referrer dimension:
.*(android-app:\/\/com\.openai\.chatgpt|android-app:\/\/ai\.perplexity\.app\.android|android-app:\/\/com\.anthropic\.claude|android-app:\/\/com\.google\.android\.apps\.bard|android-app:\/\/com\.microsoft\.copilot|android-app:\/\/com\.deepseek\.chat).*Breakdown of Specific Referrer String Behaviors
Different AI assistants transmit distinct telemetry signals through the HTTP header:
| Assistant Platform | Typical Source Value in GA4 | Typical Medium Value | Native App Referrer Protocol |
|---|---|---|---|
| OpenAI ChatGPT (Web) | chatgpt.com / chat.openai.com | referral | None (Standard HTTPS) |
| OpenAI ChatGPT (App) | android-app://com.openai.chatgpt | (none) / referral | Android Intent Package |
| Perplexity AI | perplexity.ai | referral | Android Intent Package |
| Anthropic Claude | claude.ai | referral | None (Standard HTTPS) |
| Google Gemini | gemini.google.com | referral | Android App Deep Link |
| Microsoft Copilot | copilot.microsoft.com | referral | Edge / Windows Shell Intent |
Regularly verify incoming source strings in your Traffic acquisition report by applying a secondary dimension of Source / medium filtered by the regex string to capture newly introduced model subdomains.
How to Account for Dark AI Traffic and Zero-Click Citations
Accounting for dark AI traffic and zero-click citations requires recognizing that website analytics capture only a minor fraction of conversational search exposure. When an answer engine recommends your software product to an enterprise buyer, the executive frequently reads the synthesized summary, evaluates the pricing overview, and makes an internal decision without ever clicking a link.
Total Brand Exposure in Generative Search (100%)
├── Attributable Clicks (8% – 12%) ──> Captured in GA4 via Custom Channel Group
├── Dark AI Traffic (15% – 20%) ──> Lost to Direct / None via Copy-Paste & Privacy Stripping
└── Zero-Click Synthesized Citations (68% – 77%) ──> Completely Invisible in GA4
Search Atlas Study 8 analyzed 18,377 query pairs and established that AI models share less than 15% domain overlap with top-ranking Google search results. This separation means brands cannot rely on traditional organic rank tracking to infer AI exposure.
To quantify the true impact of generative engines, marketing teams track the Citation-to-Session Ratio:
Citation-to-Session Ratio = Attributable GA4 AI Sessions / Tracked Brand Citations- A low ratio (< 0.15): Indicates high zero-click answer satisfaction. The AI model describes your product thoroughly, satisfying the user's inquiry within the interface.
- A high ratio (> 0.40): Indicates strong action orientation. Your content contains proprietary datasets, tools, or calculators that compel the user to navigate to your domain for complete information.
To monitor citations that generate zero web visits, organizations use platforms that track multi-engine prompt mentions directly. Implement dedicated monitoring to track brand citations across AI engines in LLM Visibility, which records how often models cite your company across hundreds of industry queries.
To evaluate overall query demand across conversational tools, cross-reference your referral numbers with Prompt Volumes to benchmark your traffic capture against total category interest.
Looker Studio Dashboard Architecture for AI Referral Telemetry
Looker Studio dashboard architecture for AI referral telemetry enables centralized cross-channel visualization by uniting GA4 web analytics with third-party citation metrics into a single executive dashboard.
Looker Studio Data Engine
├── GA4 Connector (Attributable Sessions, Engagement Rate, Revenue)
└── LLM Visibility Connector (Citations, Mention Share of Voice, Model Sentiment)
└── Unified Visualization Canvas:
├── Card 1: Total AI Sessions vs Prior Period
├── Card 2: AI Referral Conversion Rate vs Site Average
├── Chart 1: Daily Sessions by Specific AI Engine
└── Table 1: Top Landing Pages for AI Traffic
1. Build the Calculated Field in Looker Studio
To isolate AI traffic retrospectively without waiting for new GA4 data to accumulate, create a new calculated dimension in your Looker Studio data source named Channel Group (AI Enhanced):
CASE
WHEN REGEXP_MATCH(Source, '.*(chatgpt\\.com|chat\\.openai\\.com|perplexity\\.ai|claude\\.ai|gemini\\.google\\.com|copilot\\.microsoft\\.com|deepseek\\.com|grok\\.com).*') THEN 'AI Referral'
WHEN Default channel group = 'Organic Search' THEN 'Organic Search'
WHEN Default channel group = 'Direct' THEN 'Direct'
WHEN Default channel group = 'Paid Search' THEN 'Paid Search'
ELSE 'Other Referrals'
END2. Configure Essential Dashboard Scorecards
Structure your reporting interface around four core metrics:
- AI Session Volume: Total sessions where
Channel Group (AI Enhanced) = 'AI Referral'. - Engagement Rate Delta: Average engagement duration of AI-referred visitors compared against traditional organic search visitors.
- Assisted Conversion Value: Goal completions and ecommerce revenue generated by visitors originating from conversational interfaces.
- Platform Share Breakdown: A donut chart displaying the traffic distribution between ChatGPT, Perplexity, Gemini, and Claude.
For teams building advanced cross-channel measurement frameworks, explore our foundational methodology on AI search visibility strategy.
Implementation Checklist for Tracking AI Traffic
To verify that your analytics infrastructure captures all available conversational search signals, execute the following technical deployment checklist:
- Create a custom channel group in GA4 named
Custom Acquisition - AI Enhanced. - Add the channel rule
AI Search / LLMsand position it at the top of the evaluation order. - Paste the verified web source regular expression into the
Sourcecondition. - Add an OR condition matching
Page referreragainst Android intent URIs. - Create the calculated field
Channel Group (AI Enhanced)in Looker Studio for retrospective analysis. - Audit top landing pages receiving AI referral sessions to identify high-citation content assets.
- Connect LLM Visibility to monitor brand mentions and sentiment inside zero-click AI answers.





