Skip to content

How to Track AI Referral Traffic in GA4 (ChatGPT, Perplexity)

Learn how to track AI referral traffic in GA4: use the built-in AI Assistant channel, add a custom channel group for Perplexity, and tie visits to key events.

By Devma Team · · 10 min read

A sunlit desk with a blurred laptop screen, a notebook showing a hand-drawn diagram of connected circles and arrows, a coffee mug and a small plant.

To track AI referral traffic in GA4, start with the built-in AI Assistant channel Google added on May 13, 2026. Then create a custom channel group with a regex rule for AI referrer domains, so Perplexity and older sessions are counted too. Finally, build a Free-form exploration that ties those sessions to your key events.

Expect an undercount. AI clicks that arrive without a referrer land in Direct, and nothing in GA4 can pull them back out.

Key takeaways

  • GA4 has had a built-in AI Assistant channel since May 13, 2026. It covers recognized assistants such as ChatGPT, Gemini, Deepseek, Copilot and Grok, but it does not include Perplexity, and the default channel group can't be edited.
  • A custom channel group with a "Source matches regex" rule fills the gaps: it captures Perplexity, Claude and other assistants, and Google applies custom groups to historical data.
  • Place your AI channel above Referral in the rule order, because GA4 assigns each session to the first channel whose rule matches.
  • Clicks from Google AI Overviews and AI Mode count as Organic Search, and AI visits with no referrer count as Direct, so your AI number is a minimum, not a total.
  • ChatGPT's link tagging broke from October 9 to 15, 2026, so annotate that week before comparing trends.

Does GA4 track AI referral traffic on its own now?

Partly. According to Google's Analytics release notes, GA4 added an AI Assistant channel to the Default Channel Group on May 13, 2026. When a visit's referrer matches a recognized AI assistant, GA4 automatically sets the medium to ai-assistant and the campaign to (ai-assistant), and puts the session in the AI Assistant channel.

Google's default channel group definitions describe the channel as covering sources like ChatGPT, Gemini, Deepseek, Copilot and Grok. The same page excludes Google's own AI Overviews and AI Mode, which stay in Organic Search.

If you read an older guide that says "GA4 has no AI channel," that advice is out of date. The built-in channel is a real improvement. It just isn't the whole picture.

What the built-in AI Assistant channel misses

  • Perplexity. A hands-on test on June 12, 2026, reported by ga4-auditor.dev, found a perplexity.ai referrer classified as Referral, not AI Assistant.
  • An auditable list. Google hasn't published the full list of recognized assistants, so you can't check exactly what is included.
  • Claude, possibly. The May 13 release note names Claude, but the current channel definition does not list it. Third-party sources disagree on whether Claude is covered.
  • History. Several third parties, including Vixi, report that the built-in channel does not reclassify sessions from before May 13, 2026. Google has not confirmed either way.

You can't fix any of this inside the default group. Google keeps one universal default channel group for every property, and it can't be edited. The answer is a custom channel group that sits alongside it.

Built-in AI Assistant channel Custom "AI Assistants" channel
Setup required None Manual setup in Admin
Includes Perplexity No Yes, if in your regex
You control the domain list No Yes
Historical data Likely from May 13, 2026 only Applied retroactively
Recovers no-referrer clicks No No
Separates AI Overviews and AI Mode No No

How to track AI referral traffic in GA4 with a custom channel group

You need Editor access (or higher) on the GA4 property. The steps below take you from zero to a working AI Assistants channel.

Step 1: See which AI sources already reach your site

  1. Go to Reports > Acquisition > Traffic acquisition.
  2. Change the primary dimension to Session source / medium.
  3. Search the table for terms like chatgpt, perplexity, claude, gemini and copilot.
  4. Write down the exact source values you see, such as chatgpt.com or perplexity.ai.

This gives you a baseline and shows whether any AI domains appear that your regex should include.

Step 2: Create a new channel group

  1. Open Admin > Data display > Channel groups (some older guides call the section Data settings).
  2. Click Create new channel group.
  3. Give it a clear name, like "Channels with AI."

GA4 starts the new group as a copy of the default rules, so every other channel keeps working as before. Standard properties allow two custom channel groups and Analytics 360 allows five, according to Trackingplan. Sources disagree on how many channels a single group can hold, so check Google's custom channel group help page if you plan to add many.

Step 3: Add an "AI Assistants" channel with a regex rule

Click Add new channel and name it "AI Assistants." Add a condition: Source > matches regex. Paste this pattern:

^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|edgeservices\.bing\.com|deepseek\.com|grok\.com)$

Here is what each part does:

  • \. escapes the dot. An unescaped . in regex matches any character, which can catch the wrong sources.
  • ^(.*\.)? optionally allows a subdomain, so www.perplexity.ai matches as well as perplexity.ai.
  • $ anchors the end, so look-alike domains such as chatgpt.com.example.net don't slip in.

Guides disagree about whether GA4 channel rules treat regex as a full match or a partial match. This pattern is written to work either way, because it describes the entire source value from start to end. Still, confirm it in the preview in Step 5.

Then add a second condition joined with OR: Medium exactly matches ai-assistant. Google assigns that medium to recognized assistant traffic, so this catches any assistant Google adds to its list that your regex doesn't name yet. Clique Studios describes a similar approach that combines the default AI Assistant classification with a regex for unrecognized assistants.

Step 4: Move the AI channel above Referral

GA4 checks channels from top to bottom and assigns each session to the first channel whose rule matches. If Referral sits above your AI channel, a perplexity.ai visit matches Referral first and never reaches your rule.

Use Reorder to drag "AI Assistants" above Referral. Placing it near the top, above Organic Search and Referral, is the simplest choice.

Step 5: Preview, then save

The channel group editor shows a preview of how sessions are distributed. Check that the AI sources you found in Step 1 now land in "AI Assistants" rather than Referral. Then save.

Google's help page says custom channel groups apply to reports retroactively, so past AI visits are reclassified too. This is the main reason to build a custom group even with the built-in channel available.

How do you tie AI sessions to key events in an exploration?

Traffic counts are only half the story. The useful question is whether AI visitors fill out forms, book calls or buy.

Confirm your key events first

In March 2024, Google renamed GA4 "conversions" to key events. "Conversions" now refers to Google Ads conversions, so look for Key events in the metric picker.

Make sure your important actions are marked as key events before you analyze anything. Third-party guides report that marking an event as a key event is not retroactive, so the sooner you set it up, the more data you'll have. If your lead forms aren't tracked yet, start with our guide to GA4 form conversion tracking for lead forms.

Build the Free-form exploration

  1. Go to Explore and choose Free form.
  2. Under Dimensions, import the session-scoped version of your custom channel group, plus Session source and Landing page.
  3. Under Metrics, import Sessions, Engaged sessions, Key events and Session key event rate. If you sell online, add Total revenue.
  4. Drag Session source and Landing page into Rows.
  5. Drag all metrics into Values.
  6. Add a filter: your custom channel group dimension exactly matches "AI Assistants."
  7. Set the date range, then save the exploration with a clear name.

Then duplicate the tab. In the copy, remove the filter and put your custom channel group in Rows. Now you can compare AI Assistants against Organic Search, Paid Search and Direct on the same metrics.

Metric What it tells you
Sessions How many visits AI assistants send
Engaged sessions Whether those visitors actually read and interact
Key events How many valuable actions AI visitors complete
Session key event rate How AI traffic converts compared with other channels
Total revenue Direct sales value, for ecommerce sites
Landing page Which pages AI tools are citing and sending people to

How to read the results

If your AI referral volume is small, a few sessions can swing the conversion rate a lot. Look at longer date ranges before drawing conclusions.

The landing page view is often the most actionable, because it shows which pages AI assistants already cite. Those pages deserve clear calls to action, fast load times and a form that works on mobile. If AI visitors engage but don't convert, that's a conversion rate optimization problem rather than a visibility problem.

What GA4 can't tell you about AI traffic

Be plain with your team about these limits so nobody treats the AI channel as a complete count.

AI clicks without a referrer land in Direct

If the browser sends no referrer and the link has no UTM tag, GA4 files the visit as Direct. Common causes include mobile and desktop AI apps, in-app browsers, private browsing and links people copy and paste. Neither the built-in channel nor a custom group can recover these visits, so your AI number is a floor.

ChatGPT's UTM tag isn't guaranteed

ChatGPT adds utm_source=chatgpt.com to many cited links, without a utm_medium, according to reporting summarized by Thrivestack. On October 9, 2026, the tag disappeared from many links. It returned on October 15. Search Engine Land covered the change, and Adobe's Cedric Huesler said OpenAI confirmed it was a bug. During that week, many clicks arrived with no referrer and no tag, and GA4 counted them as Direct.

Add an annotation for October 9 to 15, 2026, so a dip in AI traffic and a matching bump in Direct aren't misread as a real trend.

Google counts these clicks as Organic Search, and GA4 can't split them out. For visibility in Google's AI features, use Search Console instead. Our article on the Search Console generative AI report explains what it shows.

Clicks are only part of AI's influence

GA4 sees visits. It doesn't see people who read an AI answer that mentions you and never click, or who later search your brand name. That influence may show up as branded organic search or Direct, with no link back to the AI answer. Our zero-click search survival guide covers ways to think about that gap.

Common mistakes when setting up AI channels in GA4

  1. Placing the AI channel below Referral. Referral catches the sessions first, and your AI channel stays empty.
  2. Leaving dots unescaped or using loose patterns. A bare gemini, or chatgpt.com without escaping, can match unintended sources.
  3. Treating the built-in channel as the full AI number. It misses Perplexity and any traffic without a referrer.
  4. Trying to edit the default channel group. It can't be edited. Create a custom group.
  5. Searching for "Conversions" in GA4. The metric is now called Key events.
  6. Using the first user channel dimension. "First user" dimensions describe how a user originally arrived. For session-level AI traffic, use the session-scoped dimension.
  7. Ignoring the October 2026 tagging gap. Compare trends with that week annotated.
  8. Never updating the regex. New assistants and domains appear regularly.

How to keep your AI tracking accurate over time

Set a recurring check, monthly or quarterly:

  • Scan the Referral channel for new AI domains and add them to your regex.
  • Watch Direct for unexplained jumps that line up with known AI tagging issues.
  • Review Google's release notes for changes to the AI Assistant channel.
  • Confirm that AI crawlers can actually reach your pages. If assistants can't read your content, they can't cite it. Our free AI Crawler Checker shows which bots your robots.txt allows.

Tracking also works best alongside content that earns citations in the first place. Our guide to optimizing for Google AI Overviews covers the content side.

Turning AI referral data into decisions

Once the channel group and exploration are in place, you'll have a defensible answer to "what does AI search actually send us?" You'll also know the limits of what that answer can include. The next step is combining GA4 data with visibility data: which prompts mention your brand, which competitors get cited instead, and which pages earn the clicks.

Our AI & LLM visibility tracking service is built around that combined view. If you want help connecting AI visibility to leads and revenue, Devma Agency can set up the measurement and suggest where to focus first.

Frequently asked questions

Does GA4 track ChatGPT traffic automatically now?

Yes. Since May 13, 2026, GA4 places recognized AI assistant visits, including ChatGPT, in a built-in AI Assistant channel in the Default Channel Group. It only works when the visit arrives with a referrer, so clicks that lose their referrer still show up as Direct.

Why doesn't Perplexity show up in the AI Assistant channel?

Perplexity is not on the list of AI assistants Google currently recognizes, so its visits are classified as Referral. Because the default channel group can't be edited, the fix is a custom channel group with a regex rule that includes perplexity.ai.

Why does some of my AI traffic show up as Direct in GA4?

A visit lands in Direct when the browser sends no referrer and the link carries no UTM tag. This commonly happens with mobile and desktop apps, in-app browsers, private browsing and copied links. No channel group setting can recover those visits, so treat your AI numbers as a floor.

Do Google AI Overviews and AI Mode count as AI traffic in GA4?

No. Google's channel definitions count clicks from AI Overviews and AI Mode as Organic Search, not AI Assistant. GA4 can't separate them from regular Google search clicks.

Will a custom channel group show my historical AI traffic?

Yes. Google says custom channel groups apply to reports retroactively, so past AI referral sessions are reclassified once you save the group. The built-in AI Assistant channel likely does not reclassify sessions from before May 13, 2026, and Google has not confirmed otherwise.

Abstract blue swirling shapes with light reflections

Let’s build something great together.

Contact us to discuss how we can elevate your business through expert web development, SEO, and digital marketing.

Get a free proposal

Fill out the form and our team will get back to you within 24 hours.

Devma

AI assistant · replies in seconds

Hi there.
How can we help?

Ask about websites, SEO, ads, AI search or our care plans. Answers come from our own guides, and a person is one tap away.

  • Message us on WhatsApp