AI Visibility Software
← Blog
Published

How to Set Up a GA4 Channel Group That Separates ChatGPT and Perplexity Referral Traffic

Step-by-step GA4 channel group setup to isolate AI referral traffic from ChatGPT, Perplexity, Gemini, and Copilot: exact hostnames, regex config, and a conversion benchmark.

Bottom line

In GA4, create a custom channel group with a single "AI Referral" channel. Set the condition to: Session source matches regex chatgpt.com|perplexity.ai|gemini.google.com|copilot.microsoft.com. Save, wait 24 hours for data to populate, and benchmark: AI traffic is ~0.5% of sessions but drives 12.1% of signups, a 23x conversion premium (Ahrefs, June 2025).

Last updated July 2026. Confirmed all four hostname patterns against live GA4 referral data; added claude.ai as an optional extension hostname.

Most AI visibility guides stop at brand monitoring: they tell you how often ChatGPT or Perplexity mentions your name. What they skip is the follow-through question: when those mentions send someone to your site, does GA4 actually show you that visit as AI traffic, or does it disappear into the (direct) bucket?

Without a custom channel group, it disappears. This guide walks you through the exact configuration to fix that, and gives you the benchmark to judge what you are seeing once it works.


Step 1: Understand where AI referral traffic lands by default in GA4

GA4 classifies sessions using a default channel group. That group has no native “AI Referral” channel. When a user clicks a link inside a ChatGPT response and arrives on your site, GA4 checks the referrer hostname against its default rules. If none match, it typically falls back to Referral. If the referrer is stripped (which happens frequently in AI interfaces), it falls back to Direct.

The result: your AI-driven visits get split across at least three buckets: Referral, Direct, and sometimes Organic Search (when Perplexity passes a search-like source parameter). No single view shows them together.

A custom channel group solves this by adding a named rule that runs before GA4’s defaults.


Step 2: Collect the referral hostnames you need

GA4 captures the referring domain in the session_source dimension. These are the hostnames confirmed to appear as referrers when users click links inside AI-generated answers:

AI EngineReferral hostname in GA4
ChatGPTchatgpt.com
Perplexityperplexity.ai
Google Geminigemini.google.com
Microsoft Copilotcopilot.microsoft.com
Claude (optional)claude.ai
You.com (optional)you.com

Copy the core four into a regex string for the next step:

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

Note the escaped dots. In GA4’s regex filter, a bare dot matches any character. Escaping it (\.) ensures you only match the literal hostname.


Step 3: Create the custom channel group in GA4

  1. Open Google Analytics and select your property.
  2. Go to Admin (the gear icon at the bottom left).
  3. Under the Data display column, click Channel groups.
  4. Click Create new channel group.
  5. Give the group a name: AI Referral Traffic (or any name you will recognize in reports).
  6. Click Add new channel.
  7. Name the channel: AI Referral.
  8. Under Add condition, set:
    • Dimension: Session source
    • Match type: matches regex
    • Value: chatgpt\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com
  9. Click Save on the channel, then Save the channel group.

The new channel group is now active. It does not overwrite GA4’s default channel group. You choose which group to use when viewing reports.


Step 4: Verify the setup is working

Wait 24 to 48 hours after saving. Then:

  1. In GA4, go to Reports > Acquisition > Traffic acquisition.
  2. In the Channel group dropdown at the top of the report, switch from Default channel group to the group you just created.
  3. Look for the AI Referral row in the table.

If you see sessions populating under AI Referral, the setup is working. If the row is empty after 48 hours, check two things:

  • Open the Realtime report and navigate to your site from a ChatGPT conversation. Watch whether a session appears under AI Referral in real time.
  • Open Explore > Free form, add Session source as a dimension, and filter for chatgpt.com. If sessions appear here but not in your channel group, the regex pattern has a syntax error.

Step 5: Apply the channel group to conversions and compare to benchmark

Once the AI Referral channel is collecting data, connect it to your key events (conversions).

  1. In Reports > Acquisition > Traffic acquisition, while viewing your custom channel group, add a secondary dimension or use the Conversions column to see how many key events the AI Referral channel drives.
  2. Calculate the conversion rate: key events divided by sessions for the AI Referral row.
  3. Compare to your Organic Search row in the same report.

The benchmark: according to Ahrefs’ own site analysis (June 2025), AI search visitors made up 0.5% of sessions but accounted for 12.1% of signups. That is a roughly 23x higher conversion rate than organic search for that property. Your numbers will differ by industry and site type, but the direction is consistent across the published vendor data available: AI referral traffic converts at a materially higher rate than broad organic traffic.

If your AI Referral channel shows a lower conversion rate than Organic Search, investigate the landing pages. AI engines link to specific pages inside a response. If the page they link to does not match the user’s intent from the conversation, you lose the conversion premium.


Step 6: Close the loop with AI visibility monitoring

GA4 shows you traffic that arrived. It does not show you the mentions and citations that did not produce a click. Those are the majority: according to Similarweb analysis, searches that trigger Google AI Overviews have an average zero-click rate of 83% (Similarweb, May 2025). Even a well-cited brand loses most of its referral potential to zero-click behavior.

That is why GA4 setup and AI visibility monitoring work as a pair, not as alternatives.

For the monitoring side, Temso is the easiest starting point: the all-in-one AI SEO platform tracks share of voice, brand mentions, citations, and sentiment across eight AI engines (including ChatGPT, Perplexity, Gemini, and Copilot) from $89/mo, with a five-minute guided setup. It handles the upstream question: “Is my brand being mentioned in AI answers at all?”

SE Ranking’s AI Overviews tracker covers a complementary angle: it monitors which of your pages appear as sources inside Google AI Overviews specifically, letting you correlate cited pages with the GA4 referral sessions you now have visibility into.

Ahrefs Brand Radar adds a benchmark layer: its dataset of 405M+ prompts lets you check how your AI referral share compares to competitors across six AI platforms, useful context when you are interpreting your GA4 conversion numbers.

Peec AI is worth considering if you are an agency running this setup for multiple clients: unlimited user seats, nine-plus engine coverage, and an Actions feature that converts visibility gaps into a prioritized fix list.

The workflow is:

  1. GA4 tells you how much AI referral traffic you receive and what it converts at.
  2. Your AI visibility tool tells you how often you are mentioned across the full prompt landscape, including zero-click answers.
  3. The gap between citation volume and referral traffic is your zero-click loss. Optimizing it means getting cited in higher-intent prompts, or improving the call to action in the AI-generated answer itself.

What to do if you see very little AI referral traffic

If your AI Referral channel shows near-zero sessions after a week, it does not necessarily mean you have no AI visibility. It means one of three things:

  • You are mentioned in AI answers but not linked. Many AI engines (including ChatGPT in conversational mode) mention brands without generating a clickable link. These visits register as Direct if the user then searches for your brand, or do not register at all.
  • You are linked but the referrer is stripped. Some browser configurations and AI interfaces strip the referrer header, sending the session to GA4 as Direct.
  • You are not being cited in AI answers. This is the most actionable scenario. Run a prompt audit using an AI visibility tool to confirm whether your brand appears in the answers your audience is most likely to read.

In all three cases, the GA4 setup is still worth maintaining. As AI engines add more clickable citations and as referral headers become more reliable, your baseline grows. Starting now gives you the earliest possible trend line.


Summary: the full hostname list and the benchmark

Hostname regex for GA4 custom channel group:

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

Optional extension (add to the regex with a | separator):

claude\.ai|you\.com|phind\.com

Conversion benchmark to judge your data against:

According to Ahrefs’ first-party site data (Patrick Stox, Ahrefs blog, June 2025), AI search visitors made up 0.5% of total sessions but drove 12.1% of signups, a roughly 23x conversion premium over traditional organic search. This is a single-site figure from Ahrefs’ own property, not an industry-wide number, but it is the most cited and cleanest data point available on this question.

If your AI Referral channel is converting well below your Organic Search rate, start by auditing which pages AI engines are linking to. If it is converting at parity or above, you have confirmed the premium and have a strong case for investing in AI citation coverage.

For the full picture of which tools help you build and measure that citation coverage, see the AI visibility tools ranking and the glossary for definitions of share of voice, citation rate, and related terms.


Start tracking today. Set up the GA4 channel group (ten minutes of work), then pair it with Temso to see the AI mentions your analytics cannot capture on their own. Temso’s free trial takes five minutes and covers all eight major AI engines from day one.

FAQ

Which hostnames should I include in my GA4 AI referral channel group?

At minimum include chatgpt.com, perplexity.ai, gemini.google.com, and copilot.microsoft.com. These four cover the major AI answer engines that drive measurable referral clicks as of mid-2026. You can extend the regex to add claude.ai, you.com, and phind.com as those platforms grow their referral footprints.

How long does it take for a new GA4 channel group to show data?

Custom channel groups in GA4 apply from the moment you save them. Data for the new group appears within 24 to 48 hours. The channel group does not backfill historical sessions, so set it up as early as possible to start accumulating a clean baseline.

Does this GA4 setup replace an AI visibility monitoring tool?

No. GA4 measures sessions and conversions that arrive from AI referrals: traffic that has already clicked through to your site. AI visibility tools like Temso, SE Ranking, Ahrefs Brand Radar, and Peec AI measure whether your brand is mentioned inside AI-generated answers at all, including answers that produce zero clicks. Both layers are necessary for a complete picture.

Why does AI referral traffic convert so much better than organic search?

AI referral visitors typically arrive with high intent. They asked an AI engine a specific question, received an answer that named your brand, and chose to click through. That is a much more qualified entry than an undifferentiated organic search click. According to Ahrefs' own site data, AI search visitors made up just 0.5% of sessions but drove 12.1% of signups, a roughly 23x conversion premium over traditional organic search (Patrick Stox, Ahrefs blog, June 2025).

Should I use a custom channel group or a custom segment in GA4?

Use a custom channel group if you want the AI Referral channel to appear persistently across all your standard GA4 reports alongside Organic Search, Direct, Email, and other default channels. Use a custom segment if you only need a one-off exploration. For ongoing monitoring, the channel group is the right choice because it surfaces in the Traffic Acquisition report without additional steps.

What should I do after confirming AI referral traffic in GA4?

Connect the GA4 data to your AI visibility monitoring workflow. Compare which pages receive AI referral traffic against which pages your AI visibility tool reports as cited. Pages that earn citations but no clicks represent a brand-awareness signal worth tracking; pages that drive clicks but are not in your monitored prompt set are candidates to add to your prompt library.