AI-powered tools like Claude, ChatGPT, Gemini, and Perplexity are becoming important sources of web traffic, and understanding these referral sources can help you optimize your website’s performance. In this guide, we’ll show you how to track traffic coming from these AI platforms using Google Analytics (GA4), apply filters to monitor each AI source, and combine the data into a single report for easier analysis using Looker Studio.
1. Tracking AI Referrals in Google Analytics (GA4)
Google Analytics automatically tracks referral sources, including AI platforms, but you need to filter and categorize these sources properly to make sense of the data.
Step 1: Log in to Google Analytics
Open your GA4 account and navigate to the property tracking your website.
Step 2: Access the Traffic Acquisition Report
- From the GA4 dashboard, go to Reports > Acquisition > Traffic Acquisition.
- This will give you an overview of how visitors are reaching your site, including from referrals.
Step 3: Filter for AI Referrals
To track traffic specifically from Claude, ChatGPT, Gemini, and Perplexity, you’ll need to create filters that isolate these referral sources.
- In the Traffic Acquisition report, scroll down to the Session source/medium or Referral column.
- Use the search bar to filter for each platform:
- For Claude, type claude.ai.
- For ChatGPT, use chat.openai.com or chatgpt.com.
- For Gemini, look for gemini.google.com.
- For Perplexity, filter by perplexity.ai.
These filters will show you how much traffic is coming from each of these AI tools. You can also save these filters by clicking on the Save button, allowing quick access to these reports in the future.
Step 4: Analyzing the Data
Once you have filtered traffic from each AI platform, look at important metrics like:
- Sessions: How many users arrived from each AI tool.
- Conversions: Track how many of these visitors completed a specific action (such as signing up, making a purchase, or filling out a form).
- Engagement metrics: Analyze bounce rates, average session duration, and pages per session to understand how users interact with your site.
2. Advanced Tracking with Google Tag Manager
While filtering referrals in Google Analytics gives you basic insights, you can get more detailed data using Google Tag Manager (GTM). GTM allows you to track specific behaviors from users who come from these AI platforms, such as clicks, form submissions, or other on-page interactions.
Step 1: Create Referrer-Based Triggers
To track users from Claude, ChatGPT, Gemini, and Perplexity:
- Go to Google Tag Manager and create a new Trigger.
- Set the Trigger type to Page View.
- In the trigger conditions, set it to fire when the Referrer contains specific URLs:
- “claude.ai” for Claude.
- “chat.openai.com” or “chatgpt.com” for ChatGPT.
- “gemini.google.com” for Gemini.
- “perplexity.ai” for Perplexity.
This will allow you to track visitors who arrive from these platforms and activate specific actions or events on your website.
Step 2: Create Custom Tags
You can now create custom Tags that log these interactions in Google Analytics. For example:
- Set a GA4 Event Tag that triggers when users coming from these AI platforms submit a form or click a button.
- This will help you understand how AI-generated traffic interacts with specific elements of your site.
3. Creating a Combined Report in Looker Studio (formerly Google Data Studio)
After setting up Google Analytics and Google Tag Manager, the next step is to consolidate this data into a single dashboard using Looker Studio. This will allow you to easily visualize and compare the performance of AI referrals from Claude, ChatGPT, Gemini, and Perplexity.
Step 1: Connect Looker Studio to Google Analytics
- Open Looker Studio and create a new report.
- Connect your GA4 property by selecting Google Analytics as your data source. This will pull all the referral data directly into Looker Studio.
Step 2: Create Filters for AI Referrals
In Looker Studio, set up filters for each AI referral source:
- Create a Filter for claude.ai, chat.openai.com, gemini.google.com, and perplexity.ai under Session source/medium or Referral.
- This will allow you to segment traffic from each AI tool.
Step 3: Build Custom Visualizations
Now that the data is filtered, you can build visualizations to display important metrics for each AI referral source. Here are some key metrics to include:
- Sessions: How many users are coming from each AI platform.
- Conversions: The number of goals or conversions completed by users from Claude, ChatGPT, Gemini, or Perplexity.
- Engagement metrics: Show bounce rates, session durations, and page views for AI referral traffic.
You can also create side-by-side comparisons of how different AI platforms perform in terms of driving traffic and engagement. Use graphs or tables to display:
- Traffic trends over time for each platform.
- Conversion rates based on AI referral sources.
Step 4: Combine Everything into a Single Report
Once the filters and visualizations are set, you can combine everything into a single Looker Studio report. This will give you a comprehensive overview of how all AI-powered platforms are performing in terms of traffic, engagement, and conversions on your website.
Conclusion
Tracking referrals from AI platforms like Claude, ChatGPT, Gemini, and Perplexity is essential for understanding how these tools drive traffic and engagement to your website. By using Google Analytics to filter traffic from these sources, employing Google Tag Manager for advanced interaction tracking, and creating a consolidated Looker Studio report, you can gain deeper insights into the performance of AI-generated traffic. This approach helps you optimize your strategy and maximize the value of visitors arriving from these AI tools.