# How to Track ChatGPT, Perplexity, and Gemini Traffic & Leads in GA4

Leads keep saying they found you on ChatGPT, yet GA4 credits Google? Here is how to split out AI Search traffic in GA4 and track the full discovery picture.

[![](https://terlihat.com/images/authors/yudistira-ashadi-96.webp)Yudistira Ashadi](https://yudis.dev/about)Updated  1 December 2026 5 min read

![A brass magnifying lens and wooden ruler beside stepped forest-green, terracotta, and dusty-blue wooden bar blocks on a cream graph-lined desk pad. Three mustard threads connect small signal tokens to a blank cream notebook.](https://terlihat.com/images/articles/ga4-track-ai-search-traffic-1600.webp)

Create a GA4 Custom Channel Group with an AI Search channel matching known AI domains on the Source dimension, placed above Referral, and tie it to your lead key event. Because many buyers read an AI recommendation without clicking straight through, pair GA4 with Google Search Console Generative AI impressions, Bing AI Performance citations, and a simple "How did you hear about us?" field on your lead form.

## Why AI traffic hides in GA4--and how to break it out in 5 minutes

Out of the box, Google Analytics 4 does not have an "AI Search" channel. Anyone who clicks through from ChatGPT, Perplexity, or Claude gets lumped into Referral--or drops into Direct when a mobile app strips the referrer.

To isolate the AI clicks that do pass a referrer, open your site's GA4 property (with Editor or Administrator permissions) and build a Custom Channel Group matching the Source dimension against this starting regex:

chatgpt\\.com|perplexity\\.ai|gemini\\.google\\.com|claude\\.ai|copilot\\.microsoft\\.com

One small quirk trips people up all the time: GA4 regex rules match the full string and are case-sensitive. Glance at your existing Session source report first--if you already see variants like www.perplexity.ai or chat.openai.com, add them explicitly to the pattern.

| Step | Where to configure it in GA4 | Quick sanity check |
| --- | --- | --- |
| 1\. Create the group | Go to Admin -> Data display -> Channel groups -> Create new channel group. Name it clearly, e.g. Acquisition + AI Search. | GA4 clones the default channel group first, so none of your existing reporting breaks. |
| 2\. Add AI Search | Click Add new channel -> name it AI Search. Set Source -> matches regex and paste the five-domain pattern. | Cross-check against your last 28 days of Session source values so no active AI domain is missed. |
| 3\. Reorder the rules | Click Reorder, drag AI Search above Referral (and any rule that could catch the same domains), then Apply and Save group. | Order matters--GA4 stops at the first matching rule. |
| 4\. Open the report | Go to Reports -> Acquisition -> Traffic acquisition and switch the primary dimension to your new channel group. | Add Session source as a secondary dimension to see which assistant sends the most visits. |
| 5\. Connect to leads | Make sure your completed form submission event (such as generate\_lead) is marked as a Key event. | Run one test submission and verify it fires once--not twice on a thank-you page reload. |

Source: [Google Analytics -- Custom channel groups](https://support.google.com/analytics/answer/13051316) - [Google Analytics -- About regular expressions](https://support.google.com/analytics/answer/1034324) - [Google Analytics -- Mark events as key events](https://support.google.com/analytics/answer/13128484)

## Why a lead says "ChatGPT" while GA4 credits Google Organic

We see this constantly: a buyer asks ChatGPT for vendor recommendations on their phone over lunch, jots down two brands, and searches your company name on Google from their laptop the next morning. When they submit your contact form, GA4 dutifully credits Organic Search.

Even more often, buyers get what they need inside the AI chat without ever clicking a link. Judging AEO purely by GA4 referral sessions is like judging word of mouth purely by coupon codes. The cleanest way to report AI search to leadership is to track four weekly signals side by side--keeping each in its own column rather than summing them, since the same buyer can appear in more than one:

-   GA4 (direct clicks & leads): track AI Search sessions, which landing pages pull visitors in, and which key events convert.
-   Google Search Console: check the Generative AI performance report (where enabled) for link impressions inside AI Overviews and AI Mode by page.
-   Bing Webmaster Tools: check AI Performance to see which pages earn citations across covered Microsoft AI experiences and partners.
-   Lead form / sales intake: add one optional question--"How did you find us?" (ChatGPT, Perplexity, Gemini, another AI assistant, Google, referral, other). Store answers in your CRM, never send free-text notes or personal data to GA4.

Source: [Google Search Console -- Generative AI performance report](https://support.google.com/webmasters/answer/16984139) - [Bing Webmaster Tools -- AI Performance](https://www.bing.com/webmasters/help/ai-performance-9f8e7d6c)

[Full guide to measuring AI visibility month over month](https://terlihat.com/en/articles/measuring-ai-visibility)

## A 15-minute baseline setup you can finish today

You don't need a massive analytics overhaul. If you have GA4 access and a working lead event, 15 minutes gets your first AI dashboard running:

-   Minutes 0-3: Open Traffic acquisition (28-day window) and scan Session source--you will often spot chatgpt.com or perplexity.ai already sitting inside Referral.
-   Minutes 3-8: Create the Custom Channel Group, paste the AI Search regex, move it above Referral, and save.
-   Minutes 8-12: Test it live--click a link to your site from an AI assistant that cites you, then confirm the session and test form submission in Realtime or DebugView.
-   Minutes 12-15: Set up a simple four-column tracker (GA4 sessions, Search Console impressions, Bing citations, CRM self-reported leads) so next month's trend is unmistakable.

## Frequently asked questions

### Why do leads from ChatGPT often show up as Direct or Google Organic in GA4?

Many mobile AI apps strip referral headers, and buyers frequently Google your brand name after seeing a ChatGPT recommendation, attributing the session to Direct or Organic Search.

### Which AI referral domains should I include in a GA4 Custom Channel Group?

Match chatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, and copilot.microsoft.com using a clean regex rule before default Referral channels.

### How can I capture AI-driven leads that GA4 referrers miss?

Pair GA4 channel tracking with a short "How did you hear about us?" prompt in your contact form or WhatsApp intake, alongside monthly prompt-panel tracking.

## Want a custom GA4 regex tailored to your target AI platforms?

Pick the AI assistants your buyers actually use and copy a clean, ready-to-paste GA4 regex in seconds.

[Open the free GA4 AI Referral Filter](https://terlihat.com/en/ga4-ai-referral-filter)

## Keep reading.

[![](https://terlihat.com/images/articles/measurement-640.webp)How to Measure AI Visibility Without Cherry-Picked Screenshots](https://terlihat.com/en/articles/measuring-ai-visibility)[![](https://terlihat.com/images/articles/google-ai-overviews-ai-mode-640.webp)How to get cited in Google AI Overviews and AI Mode](https://terlihat.com/en/articles/get-cited-in-google-ai-overviews-and-ai-mode)[![](https://terlihat.com/images/articles/perplexity-ai-search-640.webp)How to get your business website cited in Perplexity](https://terlihat.com/en/articles/how-to-get-cited-in-perplexity)[![](https://terlihat.com/images/articles/gemini-copilot-claude-search-640.webp)AI Search Visibility: Gemini, Copilot & Claude](https://terlihat.com/en/articles/ai-search-visibility-gemini-copilot-claude)

## Start with one buyer question.

Bring a question you want to test on the AI platforms your buyers use. We'll discuss what to audit, which pages could improve, and what help you need.

[Tell us about your business](https://terlihat.com/en/contact)

---

Source: [Terlihat.com](https://terlihat.com/en/articles/track-chatgpt-perplexity-gemini-traffic-in-ga4)
Summary: Leads keep saying they found you on ChatGPT, yet GA4 credits Google? Here is how to split out AI Search traffic in GA4 and track the full discovery picture.
Author: Yudistira Ashadi
Published: 2026-12-01 - Updated: 2026-12-01
Indonesian version: https://terlihat.com/artikel/cara-lacak-trafik-ai-chatgpt-perplexity-ga4
