Your Guide to Tracking ChatGPT & Gemini Traffic in Google Analytics 4

AI-referred traffic is small but highly valuable; here's how to properly track clicks from tools like ChatGPT, Gemini, and Claude in Google Analytics 4.

A laptop screen displaying a Google Analytics 4 dashboard, highlighting high-converting AI traffic sources like ChatGPT and Gemini.
In this guide

If you're keeping an eye on your website's traffic, you've likely noticed a new, albeit small, segment emerging: visitors coming from AI tools. While this traffic is still a tiny slice of the overall pie, its potential is significant. Data from Content Square, for instance, shows AI-referred traffic in financial services growing from 0.03% to 0.13% in just a year, a pattern mirrored across many industries. The real kicker? This traffic often converts at impressively high rates.

Consider this: Ahrefs reported that 12.1% of their sign-ups came from AI search, even though it represented only 0.5% of their total traffic. Another study by Apollo found AI traffic converting four to five times better than Google, with an average conversion rate of 14.2% in one industry. This tells us that even a small amount of AI-referred traffic can be incredibly high-intent and valuable. So, how do you track these crucial visitors in Google Analytics 4 (GA4)? Let's get into it.

Key Takeaways

  • AI-referred traffic, though small, shows significantly higher conversion rates than traditional sources.
  • GA4 groups AI traffic under general 'referral' by default, making it hard to identify.
  • You can quickly filter GA4 reports to see AI sources for ad-hoc analysis.
  • For ongoing, segmented reporting, create a custom 'AI Referral Traffic' channel group in GA4.
  • Always make sure your custom AI channel is ordered above the default 'Referral' channel to ensure correct categorization.

Why AI Traffic Matters More Than Its Volume

The numbers don't lie. While the volume might not be massive yet, the quality of traffic from AI tools is hard to ignore. When someone clicks a link from ChatGPT, Gemini, or Perplexity, they're often looking for specific answers or solutions. This means they arrive on your site with a clear purpose, leading to better engagement and higher conversion rates.

Understanding this segment lets you tailor content, optimize landing pages, and even inform your broader AI visibility strategy. Ignoring it means missing out on insights from some of your most engaged potential customers.

The Quick Way: Filtering AI Traffic in GA4 Reports

You'll need a GA4 account with proper tracking set up on your website. If you just want a fast look at your AI traffic, here's how to do it:

  1. Head over to Reports in your GA4 interface.
  2. Click on Acquisition, then Traffic acquisition.
  3. In the report table, you'll see various traffic sources, including 'Referral'. GA4 currently lumps all AI tool clicks into this general 'Referral' category.
  4. To isolate these, click on Add filter at the top of the report.
  5. Set the condition: Session default channel group exactly matches Referral. Click Apply.
  6. Now your report only shows referral traffic. To see the specific sources, click the plus button (+) next to the primary dimension (e.g., 'Session default channel group').
  7. Search for and select Session source.

You'll now see a breakdown of your referral sources, letting you identify traffic from chat.openai.com, gemini.google.com, perplexity.ai, claude.ai, and other AI tools. This method is great for a quick check, but it requires you to apply the filter every time.

The Long-Term Way: Create an "AI Referral Traffic" Channel Group

For a more permanent solution that automatically categorizes your AI traffic, you can create a custom channel group. This way, 'AI Referral Traffic' becomes a distinct category in your GA4 reports.

  1. Go to Admin in GA4.
  2. Under the 'Data display' section, click on Channel groups.
  3. Click the Create new channel group button.
  4. Give your new channel group a name, like 'AI Referral Traffic'. A description is optional.
  5. Inside this new group, click Add new channel. Name this channel 'AI Referral Traffic' as well.
  6. Now, you need to define the conditions for this channel. Click Add condition group.
  7. Set the condition: Source contains. Then, add the domains for common AI tools. You'll need to add each one separately using 'OR' logic. Common sources include:
    • chat.openai.com (for ChatGPT)
    • perplexity.ai
    • claude.ai
    • gemini.google.com
    • copilot.microsoft.com
  8. Click Save channel, then Save group.
  9. This next step is crucial: Click the Reorder button within the Channel Groups list.
  10. Drag your new 'AI Referral Traffic' channel group so it appears above the default 'Referral' channel. GA4 processes these rules from top to bottom, so if 'Referral' comes first, your AI traffic might be miscategorized.
  11. Click Apply and Save group.
  12. Finally, click the pencil icon next to your 'AI Referral Traffic' group and set it as your Primary channel group.

It can take some time for these changes to fully propagate in GA4. If you don't see 'AI Referral Traffic' immediately in your reports, give it a few hours or even a day. You might need to search for it directly in the report dimension picker.

What You Can't Track (Yet)

While direct referrals are trackable, some AI-driven traffic remains a bit of a black box:

  • AI Overviews / SGE: If someone clicks a link in Google's AI Overview (SGE), that traffic often appears as standard 'Organic Search' traffic in GA4, not a separate AI category.
  • Dark Funnel: Users might see your brand mentioned in an AI tool, then open a new tab and search for you directly. This would also appear as 'Organic Search' or 'Direct' traffic, not AI referral.

This means tracking direct referrals is important, but it doesn't give you the full picture of your brand's visibility in AI. To understand your overall prominence, you'll want to combine GA4 data with AI visibility tools like Semrush, Peak, or Profound, which can measure how often your content is cited by AI platforms.

Bottom Line

AI-referred traffic is a high-quality segment that's only going to grow. By setting up proper tracking in Google Analytics 4, you'll gain clear insights into who these visitors are and how they interact with your site. This data is essential for making smart decisions about your content strategy and ensuring you're ready for the next wave of digital marketing.

Frequently asked questions

What is AI-referred traffic?
AI-referred traffic refers to website visits that originate from direct links clicked within AI tools like ChatGPT, Google Gemini, Perplexity, or Claude. GA4 typically categorizes this as general 'referral' traffic by default.
Why is AI traffic important to track?
While still a small percentage of overall traffic, AI-referred visitors often show much higher intent and conversion rates compared to other traffic sources. Tracking it helps you understand a valuable segment of your audience and measure the impact of AI visibility.
How do I see AI traffic in GA4 quickly?
In GA4, go to Reports > Acquisition > Traffic acquisition. Filter the report by 'Session default channel group' to 'Referral', then add 'Session source' as a secondary dimension to identify specific AI tools like chat.openai.com or gemini.google.com.
How do I create a permanent AI traffic report in GA4?
You can create a custom channel group in GA4. Go to Admin > Data Display > Channel Groups. Create a new channel, name it 'AI Referral Traffic', and add conditions to include sources like chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, and copilot.microsoft.com. Make sure to reorder this new channel above 'Referral'.
Why should 'AI Referral Traffic' be above 'Referral' in GA4 channel groups?
GA4 processes channel group rules from top to bottom. If 'AI Referral Traffic' is below 'Referral', AI traffic might be incorrectly categorized as general 'Referral' before the AI-specific rule is applied. Placing it higher ensures proper classification.

Comments

No comments yet. Tried this? Share how it went.

Read next

All guides

New free tools, every week

One short email with the best free GitHub finds and how to use them.

Unsubscribe any time.