GA4

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

What GA4's new AI Assistant channel changed, how to set up AI traffic tracking step by step, the main gaps that remain, and what an order-based view shows that GA4 cannot: multi-touch AI revenue for stores and AI-triggered events for service businesses.

Tilen Ledic

Tilen Ledic

Written by

| | 9 min
How to Track AI Traffic in GA4 (ChatGPT, Gemini, Perplexity)

Someone asks ChatGPT which standing desk to buy, gets three recommendations, clicks one, and places an order. That customer exists in your store today. The question is whether your analytics can see where they came from.

This guide shows how to track AI traffic in GA4 in four parts: what changed with the new AI Assistant channel, how to set everything up step by step, the main issues that remain even with a perfect setup, and what an order-based view adds on top for both e-commerce and service businesses.

What changed in GA4: the new AI Assistant channel

On May 13, 2026, Google added "AI Assistant" as a default channel group in GA4, with the rollout completing over the following weeks. You will find it in Reports → Acquisition → Traffic acquisition, next to Organic Search, Referral and the rest.

Under the hood it works like this: when a visit arrives from a referrer Google recognizes as an AI assistant, GA4 rewrites the traffic medium to ai-assistant and files the session under the new channel. The recognized list currently covers ChatGPT, Gemini, Copilot, DeepSeek and Grok.

If you see the channel in your reports, you already have baseline AI referral tracking without touching anything. The setup below makes it complete; the section after it explains where even a complete setup stops.

Setup 1: check AI traffic with a filter (no configuration)

The fastest way to see your AI traffic, including history and including LLM chatbots the new channel does not recognize:

  1. Open Reports → Acquisition → Traffic acquisition
  2. Change the primary dimension to Session source
  3. Click Add filter → Session source → matches regex and paste:
chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|grok\.com|deepseek\.com|mistral\.ai|meta\.ai|poe\.com|you\.com

This works on any date range, because referrer domains were always recorded; only the channel label is new. Two mistakes to avoid, both common: GA4 regex is case-sensitive, so keep the pattern lowercase, and never use a shortcut like .*ai, which happily matches mail, domain and half the internet (a classic over-matching trap).

Setup 2: a custom channel group for Perplexity and Claude

The native channel cannot be edited, but you can build a better one beside it. In Admin → Data display → Channel groups, create or edit a group and add a channel with two conditions joined by OR:

  • Session source matches the regex above (catches Perplexity, Claude and friends)
  • Session medium exactly matches ai-assistant (inherits everything Google's list already catches, including future additions)

Then the step everyone skips: in the group editor click Reorder and drag your AI channel above Referral (rows get a drag handle; drop the row higher up, then Apply and Save). GA4 assigns each session to the first rule that matches, top to bottom, and new custom channels get added near the bottom of the list. A visit from perplexity.ai matches two rules, yours and the built-in Referral; if your rule sits below Referral, Referral wins every time and your channel never fires, staying at zero forever even though the rule itself is correct.

Setup 3: find out which pages AI assistants actually cite

Knowing the volume is nice; knowing which content earns the citations is actionable. In Explore, create a free-form report with dimension Landing page + query string, metric Sessions, and a filter on Session source using the same regex. The result is a ranked list of the pages ChatGPT and Perplexity send people to. These are disproportionately comparison pages, buying guides and product pages with very specific specifications, which tells you exactly what kind of content to write more of. That list is also the practical core of generative engine optimization (GEO): write more of what AI assistants already cite.

Where GA4's AI traffic measurement still falls short

1. Perplexity is not on Google's list. The most shopping-oriented AI assistant of them all still lands in plain Referral unless your custom channel group from Setup 2 catches it.

2. The native channel is forward-only. Sessions recorded before the rollout keep their old classification forever. Your "AI Assistant" chart starts in May 2026 even if ChatGPT has been sending you buyers since 2023.

3. AI Overviews are invisible by design. Clicks from Google's AI Overviews and AI Mode carry regular Google referrers, so they land in Organic Search and cannot be separated inside GA4 at all. The channel measures third-party assistants, not Google's own AI answers. And a zero-click search, where the visitor reads the AI Overview and never visits your site at all, produces no session for any tool to count.

4. Apps and copy-paste turn AI visits into Direct. The ChatGPT mobile apps open links in ways that strip the referrer, and many users copy a recommended URL and paste it into the browser. Both arrive with no source at all and get filed under Direct, and no regex can match a source field that is simply empty. The partial exception: ChatGPT appends utm_source=chatgpt.com to many links, and because a UTM travels inside the URL itself it survives the app click; but it is not added to every link, and copied URLs usually lose it. Industry estimates put visible AI referrals at only 30 to 40 percent of actual AI-driven visits; the rest is dark traffic. Whatever your AI channel shows, the real number is higher.

5. It counts sessions on a last-click basis, and AI rarely gets the last click. An AI assistant usually opens a buying journey: the visitor gets a recommendation, clicks through, looks around, and comes back days later through Google or by typing the address directly. Last-click attribution hands the whole credit to that final visit, so the AI touch that made the buying decision disappears from every GA4 report. This is the expensive one, because it systematically makes the channel look worthless exactly when it is working.

How Enalitica tracks AI traffic on real orders

Enalitica does not classify sessions; it attributes orders. Every order from your store carries its full journey, so AI traffic is measured by what it sells, not by what it clicks. That closes the gaps above in one move: detection runs on 35+ AI domains including Perplexity (kept up to date for all clients at once), it works on your full history because it reads sources rather than Google's channel label, and last-click blindness is replaced by multi-touch attribution.

AI channel report with multi-touch attribution: 149 AI sessions, zero direct revenue, one influenced order worth 496.63 EUR nested under Perplexity, the platform that started the journey

The report above shows what that looks like on real store data, and why the difference matters. Here is what you see that GA4 cannot show:

  • Direct vs influenced revenue. Two numbers instead of one: revenue where AI was the last click, and revenue where AI appeared anywhere in the journey. In the example above: 149 AI sessions, direct revenue zero, but one influenced order worth 496.63 EUR that started in Perplexity and closed through organic search days later. GA4's last-click view reports this exact situation as "AI does nothing".
  • Orders, not sessions. Each multi-touch order is listed under the platform that touched it, with order number, date, products and the channel that closed the sale. You know what AI helps sell, not just that it sends visits.
  • Per-platform performance. ChatGPT, Gemini, Perplexity and the rest, each with sessions, direct and influenced orders side by side, so you see which assistant actually recommends you.
  • Conversion rate that includes influence. Counted properly, the AI sessions in the example converted at 12 percent, well above a typical site average and consistent with Adobe's finding that AI visitors arrive unusually ready to buy.
  • For service businesses: events instead of orders. The same multi-touch logic runs on your conversion events. Every form submission, call click or booking appears with the journey that produced it and a clear flag showing whether an AI assistant triggered it, even when the conversion arrived through another channel days later. A law firm or clinic answers the same question a store does: not "did AI send visits" but "which enquiries did AI start".

Book a demo and we will show you, on your own orders or leads, which journeys your AI channel has been quietly starting.

Frequently Asked Questions

Why does my ChatGPT traffic show up as Direct?

Because a large share of it genuinely arrives with no referrer: mobile app clicks, copied and pasted links, private browsing. ChatGPT does append utm_source=chatgpt.com to many links (since mid-2025), which helps when present, but it is not universal. Treat an unexplained rise in Direct traffic that started alongside your AI mentions as a hint, not a coincidence.

Why is my AI traffic so small?

Two honest reasons. First, it genuinely is small for most stores today: typically under one percent of sessions. Second, it is undercounted for all the reasons above. The interesting part is not the volume but the quality: Adobe's data across trillions of retail visits shows AI-referred traffic to US retail sites grew 138 percent year over year in May 2026, and by March 2026 AI-referred visitors converted 42 percent better than the site average, a full reversal from a year earlier when they converted worse. Small stream, unusually ready to buy.

Do AI crawlers like GPTBot show up in GA4?

No. Crawlers fetch your HTML but do not execute JavaScript, so they never fire a GA4 tag. GA4 shows you humans arriving from AI answers; if you want to see the bots reading your catalog to build those answers, that lives in your server logs or CDN dashboard, not in analytics. (If automated sessions do show up in your reports, that is a different problem: how to detect and block bot traffic in GA4.)

Can I see AI traffic from before May 2026?

Yes, with Setup 1: the source-based regex works on any historical date range. Only the native channel label is forward-only.

Which assistants does the native channel recognize?

ChatGPT, Gemini, Copilot, DeepSeek and Grok at rollout. Perplexity, Claude and smaller assistants still classify as Referral, which is why the custom channel group in Setup 2 is worth five minutes.

Is AI traffic worth optimizing for at under 1% of sessions?

The share is small; the trend and the intent are not. Adobe measured 138 percent year-over-year growth in May 2026 and above-average conversion. The stores building AI visibility now are buying the cheap version of a channel that will not stay cheap.

See your real numbers

Import 30 days of orders or leads instantly during 5-minute onboarding. Works for e-commerce and service businesses.

Start free