Measure AI Traffic in GA4: Regex + Data Studio Guide

Google Analytics 4Data StudioAI TrafficGEOCustom Channel GroupChatGPTPerplexity

AI chatbots like ChatGPT, Claude or Perplexity now work like search engines: they recommend websites, cite sources, link to providers – and send visitors. In Google Analytics 4, this traffic hides inside the "Referral" channel, invisible among spam referrers and newsletter clicks. This guide shows how to isolate it, make it measurable, and keep it visible in a permanent dashboard.

1. Why measure AI traffic separately?

AI systems operate on a different logic to Google: they read content, evaluate sources and deliver concrete recommendations. Anyone mentioned by ChatGPT or Perplexity appears in the answer – often with a click. Anyone not mentioned simply does not exist for a growing share of users.

The problem: Google Analytics 4 does not recognise this traffic as a distinct channel. ChatGPT, Claude, Perplexity and the rest land under "Referral" in the default view – mixed in with newsletter services, partner sites and spam. The result: you cannot see whether AI systems are sending relevant visitors to your website, which pages benefit, or how this traffic compares to Paid Search or Organic.

Important note: AI traffic in GA4 captures only clicks on links within AI responses – cases where a user is sent directly from an AI system to your website. Impressions (mentions without a click) cannot be measured in GA4. Dedicated tools such as Peec.ai or Semrush are needed for that.

2. Agency trick: one setup for all GA4 accounts

There is no technical "master setup" that automatically applies to all GA4 properties. Custom Channel Groups are always property-specific in GA4 – a deliberate decision by Google. For agencies and businesses with multiple GA4 properties, however, there are three practical approaches:

Option 1 (recommended): Data Studio as a central analytics layer

The most efficient approach: build a single Data Studio dashboard that connects to multiple GA4 properties. The visualisations, comparisons and all charts only need to be built once. The channel group setup in GA4 takes around 5 minutes per property using the prepared regex below. The dashboard itself is reused across all properties – you simply switch the data source.

Option 2: GA4 Admin API (for developers)

The Google Analytics Admin API allows the channel group setup to be rolled out to any number of properties via script. Once programmed, adding a new property takes seconds. Worthwhile for agencies with 10+ properties that regularly onboard new accounts.

Option 3: GA4 property template (manual quick setup)

Create an internal onboarding document with the regex, channel settings and a step-by-step checklist. Per new property: 5 minutes of setup. The most pragmatic solution for most agencies.

Limit to note: GA4 allows a maximum of 2 Custom Channel Groups per property. One slot is reserved for the Default Channel Group, leaving exactly one slot for your own group – use it deliberately.

3. Creating a Custom Channel Group in GA4

The core of the setup: a new channel group that identifies and classifies AI traffic as a distinct channel – instead of hiding it in the Referral pool.

Step by step

Admin Data display Channel groups Create new channel group
  1. Click the gear icon (Admin) in the left-hand menu.
  2. Under "Data display", click Channel groups.
  3. Select + Create new channel group in the top right.
  4. Name the group, e.g. Custom Channel Group or MY AGENCY Analysis.
  5. All existing default channels remain intact – you are simply adding one new channel.
  6. Click Add new channel.

Configuring the AI channel

FieldEntry
Channel nameArtificial Intelligence
ConditionSource
Operatormatches regex
Value→ paste regex from section 4
Channel order matters: After saving the channel, click "Reorder". Drag "Artificial Intelligence" using the six-dot handle on the left to a position above "Referral" – otherwise Referral takes priority and AI traffic will be misclassified. Then click "Save Group" in the top right.

4. The AI regex: complete list of sources

This regex covers all relevant AI platforms: ChatGPT, Claude, Gemini, Perplexity, DeepSeek, Microsoft Copilot, Grok, Mistral, Hugging Face and over 80 further sources.

Complete regex – paste into GA4 under "Source matches regex"
chatgpt\.com|chat\.openai\.com|gemini\.google\.com|deepseek\.com|perplexity(?:\.ai)?|claude\.ai|copilot\.microsoft\.com|deepl\.com|character\.ai|(?:\w+\.)?meta\.ai|grok\.x\.com|grok\.com|x\.ai|bard\.google\.com|(?:\w+\.)?mistral\.ai|writesonic\.com|quillbot\.com|chat\.suno\.com|turing\.microsoft\.com|cosmos\.microsoft\.com|orca\.microsoft\.com|phi\.microsoft\.com|megatron\.microsoft\.com|jarvis\.microsoft\.com|maia\.microsoft\.com|aitastic\.app|bnngpt\.com|chat-gpt\.org|(?:\w+\.)?edgepilot|firefly\.adobe\.com|edgeservices|iask\.ai|(?:\w+\.)?neeva|nimble\.ai|open-assistant\.io|(?:\w+\.)?copy\.ai|openchat\.so|blackbox\.ai|ex\.ai|cohere\.ai|anthropic\.com|chatglm\.cn|deepmind\.com|huggingface\.co|huggingchat\.com|wordtune\.com|reka\.ai|jasper\.ai|you\.com|openrouter\.ai|phind\.com|pi\.ai|zhipu\.ai|felo\.ai|chat\.qwen\.ai|(?:\w+\.)?qwenlm\.ai|venice\.ai|duck\.ai|sider\.ai|webpilot\.ai|ai21\.com|lmarena\.ai|coze\.com|exa\.ai|forefront\.ai|komo\.ai|chinchilla\.ai|app\.loora\.ai
Tip: The regex is not static – new AI platforms emerge continuously. Review your referral sources in GA4 quarterly for new AI domains and extend the regex using the | operator.

5. Adapting the standard report: instant overview

Once the Custom Channel Group is saved, you can activate it in the Traffic Acquisition report. Important: the group does not appear automatically as a new row – it must be actively selected from the dimension dropdown. You are switching the rule set, not the dimension.

Reports Acquisition Traffic acquisition
  1. Click the dropdown above the table (currently showing "Session default channel group").
  2. A list of all available dimensions and channel groups opens. Your group appears at the top – directly alongside "Session primary channel group" and "Session default channel group".
  3. Select your group. The table reloads and shows "Artificial Intelligence" as its own row.
  4. Review the metrics: sessions, users, engagement rate, session duration, conversions.
  5. Set the date range to 3–6 months to identify the trend.
Group not appearing in the dropdown? GA4 sometimes needs 2–5 minutes after the first save before a new channel group appears in the report dropdown. Reload the page (F5) and open the dropdown again. If it is still missing: go to Admin → Channel groups and check that "Save Group" was completed successfully.
What you can now see: What percentage of your traffic comes via AI? How is that share developing over time? How does the engagement rate compare to other channels?

6. Exploration: which pages, how long, how deep?

The standard report shows the picture at channel level. To answer "Which pages does AI traffic visit?", "How long do these users stay?" and "How many pages do they view?", an Exploration is needed.

Explore + Create new Free form

Step 1: Create the "AI Traffic" segment

  1. In the left panel under "Segments", click + → select Session segment.
  2. Condition: Session channel groupexactly matchesArtificial Intelligence.
  3. Alternatively: Session sourcematches regex → same regex as above.
  4. Name the segment: AI Traffic → Save.
  5. Drag the segment into the Exploration (top left into the segment field).

Step 2: Configure dimensions and metrics

TypeDimension / MetricPurpose
DimensionPage name + screen classWhich pages are visited
DimensionSession sourceWhich specific AI platform
DimensionDevice categoryDesktop vs. mobile
MetricSessionsVolume
MetricActive usersReach
MetricAvg. session durationEngagement quality
MetricViews per userPages per session
MetricEngagement rateEngagement vs. bounce
MetricConversionsValue contribution of AI traffic

Step 3: Build the Exploration

  1. Add dimensions and metrics to the configuration by double-clicking.
  2. Rows: Page name – Columns: leave empty (or Session source to break down by AI platform).
  3. Values: drag all relevant metrics into the value fields.
  4. Sort by Sessions descending → top AI traffic pages visible immediately.
  5. Date range: at least 3 months for meaningful data.

7. AI vs. Paid: direct channel comparison

Now it gets strategic: how does AI traffic compare to Paid Search, Organic or Direct – not just in volume, but in quality?

Segment comparison in the Exploration

  1. Create a second segment: Session segmentSession channel groupPaid Search. Name it: Paid Search.
  2. Optional: create a third segment Organic Search.
  3. Drag all segments into the Exploration – GA4 displays them side by side.
  4. Compare: session duration, pages per session, engagement rate, conversions per channel.
What good results look like: AI traffic often shows above-average session duration and a high page count – because users arrive with a specific information need already shaped by the AI system. A short session duration points to a mismatch between the AI response and your content.

Quick comparison in the standard report

Traffic acquisition Top right: Add comparison

Select two channels there – the time-series chart shows the trend for both. Faster than Explorations, but fewer metrics available.

8. Building a Data Studio dashboard

Since 11 April 2026, Google Looker Studio is officially called Data Studio again – Google reversed the rename after 3.5 years. All existing reports remain unchanged; no action is required.

Data Studio is the right place for a permanent AI traffic dashboard: it updates automatically, can be shared and sent as a PDF by email, and functions as a central analytics layer across multiple GA4 properties.

Connecting to GA4

datastudio.google.com Create Report Add data source Google Analytics
  1. Open Data Studio and create a new report.
  2. Select Google Analytics as the data source (native connector, free of charge).
  3. Choose your GA4 property and connect.
  4. For multiple properties: add further properties via Add data source. A single report can use multiple data sources simultaneously.

Setting up the AI traffic filter

  1. In the report toolbar: Resource → Manage filters → Add a filter.
  2. Name: AI Traffic only.
  3. Condition: Session sourcematches regex (RE2) → paste regex.
  4. Activate the filter in the desired charts under "Filter".
RE2 syntax: Data Studio uses RE2 regex (slightly more restrictive than standard). The regex from section 4 is RE2-compatible and can be used directly.

Recommended dashboard structure

  1. Overview: KPI scorecards – total sessions, AI share %, engagement rate, session duration.
  2. Channel comparison: AI vs. Paid vs. Organic – all key metrics side by side.
  3. Page analysis: top pages by AI traffic volume, time series for the most important pages.

Setting up automated PDF reports

Share Schedule email delivery Set recipients + interval

Data Studio sends the report automatically as a PDF – daily, weekly or monthly. Ideal for monthly reports to clients or management.

9. Which charts actually help

Time series
AI traffic trend

Dimension: date · Sessions for AI vs. Paid vs. Organic. Shows the growth of the AI channel over time.

Donut chart
Channel shares

All channel groups compared: AI share of total traffic as a percentage. Ideal for presentations and reports.

Bar chart
Top 10 pages – AI traffic

Which content the AI channel visits most frequently – sorted by sessions.

Table
AI sources broken down

chatgpt.com, perplexity.ai, claude.ai etc. individually: sessions, session duration, engagement rate.

Grouped bar chart
Quality comparison

Session duration + engagement rate: AI vs. Paid vs. Organic side by side. Direct quality statement.

Scorecard
KPI tiles at the top

Total AI sessions · AI share % · avg. session duration AI · conversions from AI.

10. Exporting data

Directly from GA4

Open Exploration Top right ··· menu Export CSV or Google Sheets

Contains all dimensions and metrics from the current Exploration view. Suitable for ad-hoc analysis and spreadsheet work.

From Data Studio

  1. PDF download: Share → Download → As PDF. Ideal for client reports.
  2. CSV from a chart: Right-click on chart → Export data → CSV.
  3. Automated PDF delivery: Share → Schedule email delivery → set recipients and frequency.

BigQuery for raw data

GA4 Admin Product links BigQuery link Create link

GA4 can export all event data automatically to BigQuery, where session sources are also available at event level. For automated analyses and custom data pipelines; requires a Google Cloud account. The first 10 GB of storage and 1 TB of queries per month are free.

11. Frequently asked questions

How long does it take for data to appear in the new channel group?

The Custom Channel Group applies to historical data – you will see results for the selected period immediately. All previous sessions are reclassified retroactively. Only the initial appearance in the report dropdown may take 2–5 minutes after saving.

What if an AI platform does not send a referrer?

Some AI systems do not send an HTTP referrer. In that case the traffic appears as "Direct" and cannot be distinguished from ordinary direct traffic. This is a technical limitation that no tracking tool can overcome.

Can I extend the AI regex?

Yes. The regex condition of the channel group can be edited at any time. Recommended: quarterly review of referral sources in GA4 for new AI domains, extended with the | operator.

Is there a master setup that applies to all GA4 properties?

No – Custom Channel Groups are property-specific in GA4. Recommended solution for agencies: use Data Studio as a central analytics layer (build the dashboard once, switch the data source per property). Alternative: GA4 Admin API for automated rollout across many properties.

Why name the channel "Artificial Intelligence" rather than "AI Traffic"?

The full English name makes filtering easier in Data Studio and when querying the GA4 API, as it avoids special characters. Any name can be used internally – what matters is consistency with the filter definitions in Data Studio.

Is it now called Data Studio or Looker Studio?

Officially Data Studio again since 11 April 2026. Google reversed the 2022 rename to "Looker Studio". All existing reports remain unchanged.

Is the effort worthwhile for small websites with little traffic?

Yes – especially then. AI traffic is growing disproportionately fast. Establishing a baseline now means you can document the growth trend and have solid comparison data in 12 months. Websites that do not start measuring now will begin from zero later.

Perspective from SEYBOLD ONE · since 1998

AI traffic is no longer a niche topic in 2026. Our analyses across multiple industries reveal clear patterns: information-driven pages – guides, glossaries, technical documentation – receive disproportionately high AI traffic, because AI systems prefer exactly this type of content as a source. This is not coincidence; it is the result of GEO optimisation. Content that is recognisable to AI systems as a reliable source gets cited more often and receives more traffic.

Get your visibility analysed

We analyse how well your website is recognised by AI systems – and where concrete potential for more AI traffic exists.

Request a free initial consultation