GA4 guide • Updated September 2026

How to Track AI Traffic from ChatGPT, Gemini, Perplexity and Claude in GA4

Use GA4 session-source data to identify visits sent by AI platforms, then measure which landing pages, sessions and conversions those referrals generate—while recognising that not every AI-assisted visit carries a visible referrer.

Start with attribution

What counts as AI referral traffic?

When a user clicks a link from an AI product and the browser sends referral information, GA4 can usually record that visit using session-scoped traffic-source dimensions such as Session source and Session source / medium.

Examples may include sources such as chatgpt.com, perplexity.ai, gemini.google.com, claude.ai, copilot.microsoft.com, grok.com or other AI platforms that send a detectable referrer.

Important: GA4 cannot identify every visit that was influenced by AI. If referral information is missing, stripped by a redirect, blocked by privacy tools or otherwise unavailable, the session can appear as direct or under another source. Treat visible AI referrals as a measurable subset—not the total influence of AI on discovery.
Fastest method

Quickly check AI traffic in Traffic acquisition

  1. Open Reports → Acquisition → Traffic acquisition.
  2. Change the primary dimension to Session source / medium or Session source.
  3. Use the table search to look for known AI domains one at a time, such as chatgpt.com or perplexity.ai.
  4. Compare sessions, engaged sessions, engagement rate, key events and revenue where relevant.
GA4 Traffic acquisition report
GA4's Traffic acquisition report is the simplest starting point for session-level referral analysis.

This method is good for a quick check. For a reusable multi-source analysis, use Explorations, because the standard comparison builder is designed around exact and partial matching rather than a flexible regular-expression list.

Recommended workflow

Build an AI traffic exploration with regex

In GA4, go to Explore → Free form. Add Session source / medium, Landing page + query string and the metrics you want to monitor. In the Exploration filter area, use a regular-expression match for the session source or source/medium dimension.

Starter regex for common AI referrers
.*(chatgpt\.com|openai\.com|perplexity\.ai|gemini\.google\.com|claude\.ai|copilot\.microsoft\.com|grok\.com|poe\.com|you\.com).*

This is a starter list, not a permanent standard. Referral domains change, new AI products appear, and some products may use more than one hostname. Check your own GA4 source values and update the expression based on what your property actually records.

Why Explorations? It gives you more flexible filtering and lets you combine source data with landing pages, engagement metrics and other dimensions in one working view.
Measure content impact

Find which pages receive AI referrals

Knowing that an AI platform sent sessions is only the first step. The more useful question is which page was the entry point and what happened after the visit?

In your Exploration, add Landing page + query string as a row dimension and include metrics such as:

  • Sessions
  • Engaged sessions
  • Engagement rate
  • Average engagement time
  • Key events
  • Total revenue, if your site tracks ecommerce or lead value
GA4 page-level AI referral traffic
Landing-page analysis shows which pages AI tools are actually sending users to.
Standard report option

Use comparisons when you only need a few sources

GA4 report comparisons can use exact or partial matching for dimension values. If you only need to inspect one or a few known sources, create a comparison using Session source and choose values such as chatgpt.com or perplexity.ai when those values exist in your property.

For a larger changing list of AI domains, an Exploration is usually easier to maintain than stacking many comparison conditions.

Choose the right dimension

Session source vs Session source / medium

DimensionUse it whenExample
Session sourceYou mainly want to identify the referring platform/domain.chatgpt.com
Session source / mediumYou want the source plus how GA4 classified the acquisition method.chatgpt.com / referral
Landing page + query stringYou want to understand which entry pages received those sessions./articles/example.php
Beyond visits

Measure quality, not just AI session counts

A referral source is useful only when you understand what those visitors do. Compare AI referral sessions with organic search, social, email or direct traffic using the metrics that matter to your site.

For content sites

  • Engaged sessions
  • Average engagement time
  • Pages or screens viewed
  • Newsletter signups or other key events

For lead or ecommerce sites

  • Quote or contact submissions
  • Purchases
  • Revenue
  • Qualified lead events
Attribution limitations

Why your AI traffic number is probably incomplete

Referral measurement depends on the browser and referring product passing usable source information. GA4 documents several reasons a session can become (direct) / (none), including missing source data, redirects and privacy or ad-blocking behaviour.

AI also influences discovery without always producing a direct click. A user may see a brand or URL in an AI answer, remember it, and visit later through search or direct navigation. GA4 cannot reliably label that later visit as “AI influenced.”

Do not report visible AI referrals as total AI visibility. Use them as one measurable signal alongside Search Console, brand searches, referral logs, conversions and AI visibility monitoring.
Keep it current

Maintain your AI source list

  1. Check Session source values monthly for unfamiliar referral domains.
  2. Add new confirmed AI referrers to your Exploration regex.
  3. Remove obsolete sources only after confirming they no longer appear in your reporting period.
  4. Keep a changelog so year-over-year comparisons are interpreted correctly.
  5. Annotate major GA4 or platform changes outside GA4 if your team maintains a reporting log.
Video tutorial

Track AI Tool Traffic with GA4

The video demonstrates the original workflow. The updated article above separates quick standard-report checks from the more flexible Exploration-based method.

Summary

Recommended GA4 workflow for AI referrals

  1. Start in Traffic acquisition and inspect Session source / medium.
  2. For multiple AI sources, create a Free-form Exploration.
  3. Filter the session source with a maintained regex list.
  4. Add landing pages and engagement or conversion metrics.
  5. Remember that visible referrals are only part of AI's total influence.
Official references

GA4 documentation and related guides