Home/How-To/How to Set Up AI Referral Reporting in GA4

How to Set Up AI Referral Reporting in GA4

Google Analytics 4

Guide to creating custom channel groups, segments, and reports in GA4 to separate and analyze AI search referral traffic.

Steps
6
Time
45-60 minutes
Difficulty
Intermediate

AI search engines like Perplexity, ChatGPT, and Google's Search Generative Experience are sending traffic your way, but GA4 lumps them all together as "organic search" or generic referrals. This makes it impossible to see which AI platforms drive conversions, how users behave differently when they come from AI sources, or whether your GAIO efforts are actually working.

Setting up proper AI referral tracking requires creating custom channel groups, building specific segments, and configuring reports that separate AI traffic from traditional search. You'll identify traffic from major AI platforms, track user behavior patterns, and measure conversion differences between AI and traditional search referrals. This setup gives you the data foundation needed for strategic decisions about AI search optimization.

What You'll Need

A GA4 property with Editor access and at least 30 days of traffic data. You'll need the ability to create custom channel groupings and modify data collection settings. Having some existing referral traffic from AI platforms helps validate your setup, though the configuration works even with minimal current AI referrals.

Step 1: Create Custom Channel Group for AI Sources

Time: 10 minutes | Tool: Google Analytics 4 Navigate to Admin > Data Settings > Channel groups in your GA4 property. Click "Create custom channel group" and name it "AI Referral Tracking." GA4's default channel grouping treats AI search engines inconsistently — some appear as "Organic Search," others as "Referral," creating messy attribution. Start by creating a new channel called "AI Search Engines." Set the condition to "Source exactly matches" and add these domains one by one: perplexity.ai, chat.openai.com, you.com, phind.com, character.ai, claude.ai, and bard.google.com. Each source needs its own row in the condition builder. Don't use "contains" matching here — it'll catch false positives from URLs containing these terms. Create a second channel called "AI Tools & Assistants" for platforms that generate traffic through content creation or research workflows. Add domains like notion.so, gamma.app, tome.app, and any custom AI tools your audience might use. This separation helps you distinguish between direct AI search traffic and AI-assisted discovery.

Step 2: Configure Source/Medium UTM Tracking

Time: 15 minutes | Tool: Google Analytics 4 AI platforms often strip or modify UTM parameters, making manual tagging essential for complete tracking. Create a standardized UTM structure for any content you distribute through AI platforms or AI-generated responses. Use source values like "perplexity_organic," "chatgpt_response," or "claude_citation" to maintain consistency. In GA4, navigate to Admin > Data Streams and select your web stream. Click "Configure tag settings" then "Show all" under "Configure your domains." Add any AI platform domains where your content might appear as referenced sources. This prevents self-referral issues when users click through from AI platform results. Set up a custom dimension for "AI Platform Type" under Admin > Custom Definitions > Custom Dimensions. Use "source" as the dimension value, but you'll segment this later. This dimension becomes crucial for detailed analysis of which AI platforms drive the highest-value traffic.

Step 3: Build AI Traffic Segments

Time: 12 minutes | Tool: Google Analytics 4 Go to Explore > Segments and create a new segment called "AI Search Referrals." Set the condition to "Traffic acquisition source" and include all the AI platform domains from Step 1. This segment isolates users who arrived through AI search platforms, regardless of their behavior after arrival. Build a second segment called "AI vs Traditional Search" using multiple conditions. Include sessions where "Traffic acquisition source" contains your AI domains OR "Session default channel grouping" equals "Organic Search" from traditional engines. This comparative segment reveals behavioral differences between AI-sourced and traditionally-sourced search traffic. Create a third segment for "High-Intent AI Traffic" by combining AI source conditions with engagement metrics. Set conditions for "Session duration" greater than 2 minutes AND "Page views per session" greater than 2. AI search users often arrive with specific intent, so this segment identifies your most engaged AI-sourced visitors.

Step 4: Set Up Custom Reports and Dashboards

Time: 15 minutes | Tool: Google Analytics 4 Navigate to Explore > Free Form and create your first AI referral report. Add "Source/medium" as rows and your AI traffic segments as columns. Include metrics for sessions, engaged sessions, average engagement time, and conversions. This layout immediately shows performance differences between AI platforms. Build a second report focusing on user behavior flow. Use "Landing page" as rows, "Session default channel grouping" as columns, but filter to show only your AI channels. Add "Pages per session" and "Average session duration" as metrics. AI traffic often behaves differently than traditional search — users might spend more time on fewer pages or bounce quickly if the AI summary already answered their question. Create a third report for conversion tracking by adding "Event name" as rows (filtering for conversion events) and your AI segments as comparison groups. Include "Total users," "Event count," and "Conversions" as metrics. This report reveals which AI platforms drive actual business results, not just traffic volume.

Step 5: Configure AI Attribution Reporting

Time: 10 minutes | Tool: Google Analytics 4 Go to Advertising > Attribution > Model comparison and create a custom attribution model that properly credits AI touchpoints. GA4's default last-click attribution often misses AI's role in the customer journey since users frequently research on AI platforms before converting through direct traffic. Set up path exploration under Explore > Path exploration to visualize user journeys starting with AI referrals. Configure the starting point as sessions with your AI traffic sources and track the path through multiple touchpoints. This reveals how AI search fits into your broader conversion funnel. Enable enhanced e-commerce tracking if you're running an e-commerce site. AI-sourced traffic often exhibits different purchasing behavior — they might research thoroughly on AI platforms but convert quickly once they reach your site. Standard analytics miss this research phase entirely.

Step 6: Validate and Test Your Setup

Time: 8 minutes | Tool: Google Analytics 4 Use GA4's real-time reports to test your configuration. Have someone visit your site from different AI platforms while you watch the real-time data. Check that traffic appears in your custom channel groups and segments immediately. If data doesn't populate correctly, your source matching conditions need adjustment. Verify your custom dimensions are capturing data by checking the Custom Definitions report under Admin. Empty dimensions indicate configuration issues or insufficient traffic volume from those sources. Don't worry if some AI platforms show zero traffic initially — your tracking will capture future referrals correctly. Test your UTM parameter handling by creating links with your standardized AI attribution codes. Share these in AI platforms that accept user-generated content and monitor how they appear in your reports. Some platforms modify or strip UTM codes, which affects your attribution accuracy.

Pro Tips

GA4's data retention settings affect your AI referral analysis, especially for low-volume sources. Set retention to 14 months if possible since AI traffic patterns can be seasonal or trend-driven. Weekly AI referral spikes might correlate with product launches or news cycles that aren't immediately obvious. Use GA4's predictive metrics for AI-sourced traffic segments. The platform's machine learning often identifies higher purchase probability for AI referrals since these users typically arrive with specific research intent. This data helps prioritize AI platform optimization efforts.

Common Pitfalls

Don't rely solely on source detection for AI tracking. Many AI platforms proxy traffic through generic domains or CDNs, making source-based attribution incomplete. Combine source tracking with content analysis — look for landing pages that align with AI-typical queries or unusual referral patterns that suggest AI mediation. Avoid creating too many granular segments initially. Start with broad AI vs. non-AI comparisons, then drill down as you identify meaningful patterns. Over-segmentation leads to statistically insignificant sample sizes that provide misleading insights about AI traffic performance.

Expected Results

After 2-3 weeks of data collection, you'll see distinct traffic patterns emerge for different AI platforms. Expect AI referrals to show higher average session duration but potentially lower pages per session — users often find exactly what they need faster. Conversion rates may vary dramatically by AI source, with research-focused platforms typically showing lower immediate conversion but higher lifetime value.

GS
Garrett SmithExpert reviewer
20+ yrs in SEO3+ yrs AI for SEO20K+ campaigns

Quick Facts

ToolGoogle Analytics 4
TaskAI Referral Reporting
Steps6
Est. time45-60 minutes
DifficultyIntermediate
Updated2026-02-01