In this blog post, I’ll walk you through how to track and analyze AI-generated traffic in Google Analytics 4 (GA4). We’ll create a custom segment to identify AI sources, set up a new channel group, and visualize the data in both GA4 and Looker Studio. This process will help you understand the growing impact of AI platforms on your website traffic and lead generation.
As AI platforms like ChatGPT become more prevalent, they’re starting to show up as significant traffic sources for many websites. In GA for the Two Octobers website, I noticed ChatGPT appearing as a top traffic source, and we even received a qualified lead from someone who found us through the platform. By tracking AI traffic separately, you can:
1. Understand the impact of AI on your overall traffic
2. Measure the quality of AI-driven visits
3. Adjust your content strategy to better serve AI platforms
4. Compare AI traffic performance against other channels
Let’s dive into the step-by-step process of setting this up in GA4. Watch the video or view the steps below.
First, let’s capture AI traffic in an exploration. This is useful for examining AI-driven visits separately from other sources.
.*chatgpt.com.*|.*perplexity.*|.*edgepilot.*|.*edgeservices.*|.*copilot.microsoft.com.*|.*openai.com.*|.*gemini.google.com.*|.*nimble.ai.*|.*iask.ai.*|.*claude.ai.*|.*aitastic.app.*|.*bnngpt.com.*|.*writesonic.com.*|.*copy.ai.*|.*chat-gpt.org.*
(Thanks to Larry Engel for this regex!)
Click Save to property so you can use the segment again in the future. Then click Apply.
To get an overview of AI traffic growth:
For ongoing reporting, we’ll add AI traffic as a new channel group in GA4.
New Channel groups start collecting data when you create them, so you’ll need to wait a bit. Once your new channel group has been collecting data for some time:
To use your new channel group in Looker Studio:
1. Open your Looker Studio report.
2. Go to your GA4 data source and click “Edit Connection”.
3. Click “Refresh Fields” to update the available dimensions and metrics.
4. You can now use the new channel group in your Looker Studio visualizations.
The AI landscape is evolving quickly, and new platforms are emerging all the time. Keep an eye on your traffic sources and adjust your regex patterns as new AI traffic sources appear. It’s also helpful to bookmark sources, like Larry Engel’s LinkedIn post, to stay updated on the latest patterns for tracking AI-driven traffic.
The latest developments in digital marketing include Meta feature updates, Google downgrading ranking on vastly…
ChatGPT traffic in the GA house! Plus new features in GA4 and understanding GTM first-party…
This article details the process of building two BigQuery tables for path analysis, with a…