---
title: "Track ChatGPT, Perplexity, and Copilot traffic in GA4"
description: "GA4's AI Assistant channel arrived on May 13, 2026, and misses part of the traffic. Rebuild the rule in BigQuery, run it on all history, and read it."
canonical: https://www.rtbanalytics.fr/en/blog/anomalies-forecast-governed-model/measure-chatgpt-perplexity-traffic-ga4
date: 2026-10-31T11:30:00+01:00
author: "Boris Parov"
lang: en
---

# Measuring traffic from ChatGPT, Perplexity, and Copilot in GA4

To track ChatGPT traffic in Google Analytics 4 (GA4), start with its AI Assistant channel, added on May 13, 2026. It counts sessions with a recognized assistant referrer, not visits that arrive without one. Our [guide to GA4 anomaly detection and forecasting](https://www.rtbanalytics.fr/en/blog/anomalies-forecast-governed-model) treats the channel as one KPI among others. This article rebuilds it in BigQuery.

**Key takeaways**

- GA4's AI Assistant channel dates from May 13, 2026: GA4 sets the medium to `ai-assistant` when the referrer matches its unpublished list.
- Google's channel definition names ChatGPT, Gemini, DeepSeek, Copilot, and Grok as examples, excludes AI Overviews and AI Mode, and does not name Perplexity.
- A custom channel group applies retroactively to GA4 reports, but the BigQuery export stores no channel group, default or custom.
- On the public sample, January 2021, none of 118,380 sessions match an assistant in the source, medium, or referrer fields.
- An assistant answer that cites your page without a click leaves no event in GA4 and no row in its export.

## What does GA4's new assistant channel recognize?

GA4's AI Assistant channel recognizes sessions whose medium is exactly `ai-assistant`. GA4 writes that medium itself when the referrer matches its list of assistants. It also sets the campaign to `(ai-assistant)`. Google's "What's new" page dates the change to May 13, 2026. Nothing has to be configured on the property.

The **AI Assistant channel** is a default channel of GA4 that groups sessions whose medium is exactly `ai-assistant`, a value GA4 assigns when the referrer matches its own list of assistants; it appeared on May 13, 2026, and excludes Google's AI Overviews and AI Mode, which stay in Organic Search.

Google's channel documentation, consulted on October 15, 2026, gives five examples: ChatGPT, Gemini, DeepSeek, Copilot, and Grok. The announcement names ChatGPT, Gemini, and Claude. The full referrer list is not published. You can't tell from the documentation which domain lands in which channel. The table separates what is documented from what you have to check.

| Point         | What Google documents             | What it means for you                                       |
| ------------- | --------------------------------- | ----------------------------------------------------------- |
| Rule          | Medium exactly `ai-assistant`     | A hand-tagged `utm_medium=ai-assistant` qualifies too       |
| Referrer list | Examples only, list not published | Unknown assistant domains may still sit in Referral         |
| Exclusions    | AI Overviews and AI Mode          | Google's own answers stay in Organic Search                 |
| Campaign      | Set to `(ai-assistant)`           | Campaign reports show one bucket for all assistants         |
| Start         | Announced on 2026-05-13           | Google does not say whether older sessions are reclassified |

## What GA4's assistant channel misses: Perplexity, apps, and visits without a referrer

The AI Assistant channel misses every visit whose referrer is missing or absent from Google's list. Three cases matter.

Perplexity is the first. Google's channel definition doesn't name it. Google's custom channel group page lists it among the assistants you match yourself. The Source Group field, added on June 11, 2026, groups ChatGPT and Perplexity source values. None of these pages says where `perplexity.ai` lands by default. Open the Referral channel on your property and look for it before trusting the AI Assistant total.

Apps are the second. A link opened from a desktop or mobile app may reach your site without a referring page. A copied link pasted into a browser never carries one. A **referrer** is the URL of the page that sent the visitor, stored in the export as the `page_referrer` event parameter; when an app, a copied link, or a privacy setting strips it, GA4 counts the visit as direct.

Shortened referrers are the third, and the mildest. A referrer policy can cut the URL down to its domain, which is enough for a channel rule.

The unreferred share is unknown by construction: no field records it. A rise in Direct can come from assistants or from automated traffic. [Spotting bot traffic in BigQuery when the interface doesn't filter it](https://www.rtbanalytics.fr/en/blog/ga4-data-trust/bot-traffic-ga4-bigquery) separates the two before you credit either.

## How to build a custom channel group for ChatGPT and Perplexity in GA4

A custom channel group copies the default group and adds a channel matched by regex on the source. You rank it before Referral, because each session joins the first channel it matches. Google's help page gives the procedure and an example pattern.

A **custom channel group** is a property-level set of ordered channel rules on source, medium, campaign, and source platform, in which each session joins the first channel whose rule it matches; it applies retroactively to reports and explorations, but it is not part of the BigQuery export.

The setup takes four steps in Admin, under Data display:

1. Copy the default channel group, so every other channel keeps its definition.
2. Add a channel, for example "AI assistants," with the condition source matches regex.
3. Use a pattern such as `.*(chatgpt|openai|perplexity|copilot|gemini|claude|deepseek|grok).*`.
4. Drag the new channel before Referral, then save.

Three limits apply. A standard property holds two custom groups, a GA4 360 property five. Each group holds up to 50 channels. Changes reach reports, explorations, and segments retroactively, but audiences only going forward.

Test the pattern on your own sources first. A broad term such as `gpt` or `ai` also matches unrelated domains. Keep one list of assistant domains, and reuse it word for word in the export.

## Applying the same rule to the BigQuery export, on the whole history

The BigQuery export stores no channel group, so you rebuild the rule in SQL. Google's custom channel group page says so explicitly. The upside is scope: the SQL runs on every exported day, including months before May 2026. Which field holds the source depends on the question, as which traffic-source field to read in the GA4 export explains.

| Signal                     | Field in the export                              | Grain              | In the 2020-2021 sample               |
| -------------------------- | ------------------------------------------------ | ------------------ | ------------------------------------- |
| First-user source          | `traffic_source.source`, `traffic_source.medium` | User's first visit | Yes                                   |
| Session source, last click | `session_traffic_source_last_click`              | Session            | No, added later                       |
| Collected UTM values       | `collected_traffic_source.manual_source`         | Event              | No, added later                       |
| Event source parameters    | `source`, `medium` in `event_params`             | Event              | Yes                                   |
| Referrer                   | `page_referrer` in `event_params`                | Event              | Yes, external hosts mostly obfuscated |

The query below searches the three fields present in the public sample for any assistant.

```sql
WITH events AS (
  SELECT
    CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING)) AS session_id,
    LOWER(CONCAT(traffic_source.source, ' ', traffic_source.medium)) AS first_user_source,
    LOWER(CONCAT(
      (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'source'), ' ',
      (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'medium'))) AS session_source,
    LOWER(NET.HOST((SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_referrer'))) AS referrer_host
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
)
SELECT
  COUNT(DISTINCT session_id) AS sessions,
  COUNT(DISTINCT IF(first_user_source IS NOT NULL, session_id, NULL)) AS with_first_user_source,
  COUNT(DISTINCT IF(REGEXP_CONTAINS(first_user_source, r'ai-assistant|chatgpt|openai|perplexity|copilot|gemini|claude|deepseek|grok'), session_id, NULL)) AS ai_first_user_source,
  COUNT(DISTINCT IF(session_source IS NOT NULL, session_id, NULL)) AS with_session_source,
  COUNT(DISTINCT IF(REGEXP_CONTAINS(session_source, r'ai-assistant|chatgpt|openai|perplexity|copilot|gemini|claude|deepseek|grok'), session_id, NULL)) AS ai_session_source,
  COUNT(DISTINCT IF(NOT ENDS_WITH(referrer_host, 'googlemerchandisestore.com'), session_id, NULL)) AS with_external_referrer,
  COUNT(DISTINCT IF(REGEXP_CONTAINS(referrer_host, r'(^|\.)(chatgpt\.com|openai\.com|perplexity\.ai|claude\.ai|deepseek\.com|grok\.com)$|^(copilot\.microsoft\.com|gemini\.google\.com)$'), session_id, NULL)) AS ai_referrer
FROM events
```

| Field searched                   | Sessions with a value | Sessions matching an assistant |
| -------------------------------- | --------------------- | ------------------------------ |
| `traffic_source` (first user)    | 118,380               | 0                              |
| `source` and `medium` parameters | 80,952                | 0                              |
| `page_referrer`, external host   | 16                    | 0                              |

Computed on 2026-10-15 on the public sample `bigquery-public-data.ga4_obfuscated_sample_ecommerce` (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data). January 2021, 118,380 sessions in total.

Zero is the right answer here: the sample predates the assistants. The referrer line also shows a limit of the sample. Obfuscation leaves an external host on only 16 sessions. The real test runs on the 80,952 sessions with a source parameter. On a recent export, run the same regex on `session_traffic_source_last_click` and `collected_traffic_source`. Keep the `ai-assistant` medium in the pattern.

## Reading assistant traffic: landing pages, conversion, and share of new visitors

Assistant traffic is read like any channel: sessions, share of first sessions, and conversion rate, then landing pages. The query below applies the assistant rule first, then the usual mediums. It returns the three numbers per channel.

```sql
WITH sessions AS (
  SELECT
    CONCAT(user_pseudo_id, '-', CAST((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS STRING)) AS session_id,
    ARRAY_AGG((SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'source') IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)] AS source,
    ARRAY_AGG((SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'medium') IGNORE NULLS ORDER BY event_timestamp LIMIT 1)[SAFE_OFFSET(0)] AS medium,
    MIN((SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_number')) AS session_number,
    LOGICAL_OR(event_name = 'purchase') AS converted
  FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_*`
  WHERE _TABLE_SUFFIX BETWEEN '20210101' AND '20210131'
  GROUP BY session_id
),
channels AS (
  SELECT
    session_number,
    converted,
    -- the assistant rule is evaluated before Referral: first match wins
    CASE
      WHEN medium = 'ai-assistant'
        OR REGEXP_CONTAINS(LOWER(source), r'chatgpt|openai|perplexity|copilot|gemini|claude|deepseek|grok') THEN 'AI assistants'
      WHEN medium = 'organic' THEN 'Organic search'
      WHEN medium = 'cpc' THEN 'Paid search'
      WHEN medium = '(none)' THEN 'Direct'
      WHEN medium = 'referral' THEN 'Referral'
      ELSE 'Other, deleted, or not set'
    END AS channel
  FROM sessions
)
SELECT
  channel,
  COUNT(*) AS sessions,
  ROUND(100 * COUNTIF(session_number = 1) / COUNT(*), 1) AS first_session_pct,
  ROUND(100 * COUNTIF(converted) / COUNT(*), 2) AS conversion_pct
FROM channels
GROUP BY channel
ORDER BY sessions DESC
```

| Channel                    | Sessions            | First sessions | Conversion rate |
| -------------------------- | ------------------- | -------------- | --------------- |
| Other, deleted, or not set | 45,922              | 81.0%          | 0.15%           |
| Organic search             | 36,975              | 84.2%          | 0.94%           |
| Referral                   | 24,647              | 52.1%          | 2.53%           |
| Direct                     | 9,044               | 81.8%          | 0.69%           |
| Paid search                | 1,792               | 93.2%          | 0.50%           |
| AI assistants              | 0 (no row returned) |                |                 |

Computed on 2026-10-15 on the public sample `bigquery-public-data.ga4_obfuscated_sample_ecommerce` (Google Merchandise Store, 2020-11-01 to 2021-01-31, obfuscated data). January 2021; a session's source and medium are the first non-empty values of the session.

The grid reads in three moves. First, the unknown bucket: 45,922 sessions, 38.8% of the month, hold obfuscated, deleted, or missing sources. Unreferred assistant visits hide in buckets like this one, and in Direct. Second, Referral converts best at 2.53%, with only 52.1% first sessions. On the sample, it includes the store's own subdomain, a self-referral to exclude before comparing. Third, on a recent export the AI assistants row appears. Compare it with Organic search: both channels answer a question someone typed.

Landing pages come next. The `page_view` that carries `entrances = 1` marks where each session starts. Assistant visits often land on a product or support page rather than the home page. A direct session that starts on a deep product URL deserves the same look. When this channel moves a KPI, measure its share with a decomposition by market, channel, and device.

## What you cannot measure: citations without a click

An assistant that cites your page without a click sends nothing to GA4 or its export. The channel only counts visits. Exposure inside an answer has no event, no session, and no field.

Two blind spots follow. Clicks from Google's AI Overviews and AI Mode stay in Organic Search, by Google's own definition. They can't be split from classic results in the channel report. Crawlers that read your pages for an assistant usually don't run the GA4 tag. Your server logs see them; your analytics do not.

The decision rule is simple. Report the AI Assistant channel, or your own rule, as a floor, never as the full effect. Track three numbers each week: sessions, conversion, and the landing pages that receive them. Leave the rest of the influence to qualitative signals, such as answers you test by hand.

The same caution applies when an assistant reads your own numbers instead of your pages. A channel defined twice gives two answers, whoever asks. Why a governed model comes before any assistant covers that side of the question.

> **In Lightstack · Available**
>
> Lightstack, by RTB Strategic Analytics (Montpellier, France), recomputes consultancy-grade GA4 analyses every day from the raw BigQuery export and delivers them in Power BI. An AI Assistant channel, rebuilt on the whole export history, is included in its semantic model. See [the analyses catalog](https://www.rtbanalytics.fr/en/analyses#catalog).

## FAQ

### Is Perplexity part of GA4's AI Assistant channel?

Google doesn't say. The default channel definition, consulted on October 15, 2026, names ChatGPT, Gemini, DeepSeek, Copilot, and Grok, not Perplexity. Google's custom channel group page cites Perplexity as an assistant to match yourself. Look for `perplexity.ai` in your Referral channel; if it sits there, add it to a custom channel group.

### Why does my ChatGPT traffic show up as direct?

ChatGPT traffic shows up as direct when the visit arrives without a referrer. A link opened from a desktop or mobile app, or a copied link, carries no referring page. GA4 then has nothing to classify. Without UTM parameters on the link, no field can recover that visit's origin.

### Does the AI Assistant channel cover sessions before May 2026?

Google's announcement of May 13, 2026, doesn't say whether older sessions are reclassified. A custom channel group, by contrast, applies retroactively to reports. In the BigQuery export, an SQL rule reaches every exported day. It also finds assistant visits that GA4 filed under Referral at the time.

### Can I see the AI Assistant channel in BigQuery?

No channel group column exists in the GA4 BigQuery export, default or custom. Google's custom channel group page states it for custom groups. What you can read is the medium in the session source fields. Check whether `ai-assistant` appears there after May 13, 2026, and keep your own domain rule beside it.

The full method, from anomaly to forecast to explanation, is in [Anomaly detection and forecasting on GA4: from signal to explanation](https://www.rtbanalytics.fr/en/blog/anomalies-forecast-governed-model). Want new analyses like this one as they ship? [Get new analyses as they ship](https://www.rtbanalytics.fr/en/blog/anomalies-forecast-governed-model/measure-chatgpt-perplexity-traffic-ga4#footer-newsletter-email).

## Sources

- [Default channel group](https://support.google.com/analytics/answer/9756891) - Google, consulted 2026-10-15
- [What's new in Google Analytics: new AI Assistant traffic measurement](https://support.google.com/analytics/answer/9164320) - Google, entry dated 2026-05-13, consulted 2026-10-15
- [Custom channel groups](https://support.google.com/analytics/answer/13051316) - Google, consulted 2026-10-15
- [BigQuery export schema for Google Analytics 4](https://support.google.com/analytics/answer/7029846) - Google, consulted 2026-10-15
