Skip to content
Skip to content

How do you track AI referral traffic in analytics?

Broadcastwell measures and fixes whether AI search engines name B2B software companies.

Run the free check

Track AI referral traffic with one custom channel in Google Analytics 4 that matches the assistants' own web addresses, placed above Referral. Our free GA4 AI-referral channel template gives that channel; this page documents it with downloads, test cases and the limits Google states. Google AI Overviews and AI Mode visits stay in Organic Search, where GA4 files them.

Updated 11 November 2026.

A referral record tells you that your analytics classified a visit by its source. It does not tell you which question the visitor asked, what the answer said about you or whether a sale followed. Our answer on what a recorded AI referral establishes keeps those events apart, and the template is built the same way.

What GA4 and Search Console already do

Where the visit starts Where it lands by default What the provider says
ChatGPT, Microsoft Copilot and the other assistants Google lists GA4 default channel "AI Assistant" Google's default channel page names ChatGPT, Deepseek, Copilot, Grok and Google's own assistant as example sources; the full list is not on that page
Claude, Perplexity Not named on that page Our template names both, so they are counted on purpose rather than by an unpublished list
Google AI Overviews and Google AI Mode GA4 "Organic Search" Google's default channel page says the AI Assistant channel excludes them and Organic Search includes them
Google AI Overviews and Google AI Mode, in Search Console Performance report, "Web" search type Google Search Central says these features are part of overall search traffic; page last updated 10 December 2025
Microsoft Copilot and Bing AI summaries, in Bing Webmaster Tools AI Performance report Bing's post of 10 February 2026 describes citation counts and grounding queries, not visits

Keep the Google rows inside search. A visit from an AI Overview arrives through Google Search, and a hostname alone cannot separate it from a classic result, so the template leaves ordinary Google referrals out.

The template

In GA4, open Admin, then Data display, then Channel groups, and make a copy of your existing group. You need the Editor role or above on the property. Add one channel:

Setting Value
Channel name AI referrals
Field Source
Condition matches regex
Value The pattern below, on one line
Position Above Referral. GA4 places a visit in the first channel whose definition it matches.
^(.*\.)?(chatgpt\.com|chat\.openai\.com|claude\.ai|perplexity\.ai|copilot\.microsoft\.com|copilot\.cloud\.microsoft)$

Coverage as of 2 November 2026 is six hosts: chatgpt.com, chat.openai.com, claude.ai, perplexity.ai, copilot.microsoft.com and copilot.cloud.microsoft, plus any subdomain of them, such as www.perplexity.ai. It is a conservative list of identifiable referral hosts, not a list of the engines we measure. Google's own assistant is not in it; Google names that assistant among its AI Assistant examples, and your copied rules below the new channel still apply to it.

The pattern is anchored at both ends, so a host that only contains one of these names, such as chatgpt.com.example, stays in Referral.

Why we do not copy Google's example pattern

Google's custom channel page offers an example pattern that begins ^.*ai| and continues with broad terms such as .*gpt.* and .*google.*bard.*. The first part matches any source containing the letters "ai". In our test cases it catches a newsletter tagged email, the host mail.example.com and chatgpt.com.example, none of which came from an assistant. Our pattern names exact hosts instead. The cost is upkeep: when an assistant changes its address, the pattern needs a new entry, as Google's own note on that page says.

Limits to know before you start

  • A standard GA4 property allows two custom channel groups besides the predefined one, and a 360 property allows five. Each group holds up to 50 channels.
  • Custom channel groups apply to your reports retroactively, so past visits are regrouped as well.
  • A visit carries an assistant's host as its source only when a referring address reaches your site. A copied link, an app that opens a browser or a privacy setting can leave the visit as direct traffic, and no channel rule recovers it.

Downloads and the expected output

The test file is the expected output. Put each source through the pattern as a full match and you should get its matches_pattern value: the six listed hosts and www.perplexity.ai match; gemini.google.com, google, email, mail.example.com, chatgpt.com.example and the fictional kalvenor.example do not. Our test suite runs the same check on every build of this site, so the page and the files cannot drift apart.

How to read the channel once it fills

Report the channel as sessions with an identified AI source, beside the dated answers that named or cited you. Our three measured rates define what each answer count means, and our note on Search Console query evidence covers what Google's report can and cannot show. A rise after a page change is a reason to look at the answers again, not proof that the change caused it; our guide to a fair re-check sets out the comparison. Keep answers to a "How did you hear about us?" field in their own column too.

When we measure answers for you, the capture covers ChatGPT, Claude, Perplexity, Google AI Overviews and Google AI Mode, and the visit record stays yours. A Fix Sprint agrees one primary test before payment, and buyer-task completion is one of the three it can use. The full ladder is on our service model page.

Sources

Related: our AI search glossary, our operating framework and the completed-case format, which keeps commercial fields apart from answer counts.

Choose the answer you need to repair.

Answer Repair is $490 for one buyer question and one completed source-backed page or fix. Choose Live or Handoff before payment. Due 48 elapsed hours after recorded Ready.

If we miss the deliverable or deadline, we initiate a full $490 refund within five business days. You keep the work. You may also request a full refund within 30 days of delivery.

Fix one answer, $490 Agency Deadline Audit, $490 per client report

The $490 entry credits once against the $3,900 Fix Sprint, leaving $3,410.

Read the current ladder and terms dated 26 October 2026. Orders placed before 26 October 2026 keep the terms shown at purchase.