AI Visibility

How to Track AI Traffic in GA4 and Shopify (2026 Setup Guide)

Track ChatGPT, Perplexity and Gemini visits in GA4 and Shopify: the AI Assistant channel, a tested regex, revenue reports, and how to see AI crawlers.

Sakshi Gupta

Table of contents

Talk to us

Summarize using AI

ChatGPT Custom Icon
Claude Custom Icon
Gemini Custom Icon
Perplexity Custom Icon
Grok Custom Icon

AI traffic shows up in three places. GA4 now sorts visits from ChatGPT, Gemini, Claude and similar assistants into a default AI Assistant channel. Shopify reports can be filtered by referrer name to isolate ChatGPT sales. AI crawlers and shopping agents never appear in either, so you read them from edge or server logs.

That split matters for an ecommerce team. Clicks from AI answers are humans you can attribute revenue to. Crawls and live fetches are machines deciding whether to recommend you, and they happen long before any click. This guide covers both, with exact menu paths and a regex you can paste.

How do I track AI referral traffic in GA4 for an ecommerce site?

Start with what GA4 already does. On May 13, 2026, Google added an AI Assistant channel to the Default Channel Group. When a visit's referrer matches Google's list of recognized AI assistants, GA4 sets the medium to ai-assistant, the campaign to (ai-assistant), and files the session under AI Assistant (GA4 What's new; GA4 default channel group).

Google names ChatGPT, Gemini, Deepseek, Copilot and Grok as examples, but it does not publish the full list. The channel also excludes Google's AI Overviews and AI Mode, which stay in Organic Search. So the default channel is a good start, not a complete answer.

Step 1: check the default channel. Go to Reports > Acquisition > Traffic acquisition, keep "Session primary channel group" as the dimension, and look for the AI Assistant row. Add "Session source" as a secondary dimension to see which assistants are sending traffic.

Step 2: build a custom channel group you control. A custom group lets you name the exact sources, and Google says custom channel groups can be applied to reports retroactively (GA4 custom channel groups). You need the Editor role or above.

  1. Go to Admin > Data display > Channel groups.

  2. Click Create new channel group. This starts from a copy of the default group.

  3. Name it, for example "Channels with AI".

  4. Click Add new channel, name it "AI Assistants", then click + Add condition group.

  5. Set the dimension to Source, the condition to matches regex, and paste the regex below.

  6. Click Save channel.

  7. Click Reorder, drag "AI Assistants" above "Referral" (and above "Organic Search"), then click Apply.

  8. Click Save group.

Order matters. GA4 puts each visit in the first channel whose rule it matches, so an AI channel below Referral catches nothing (Google).

Here is a regex that matches the main assistant hosts and nothing else on a typical store's source list:

.*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai|deepseek\.com|grok\.com).*

We tested it against common sources. It matches chatgpt.com, chat.openai.com, www.perplexity.ai, gemini.google.com, copilot.microsoft.com, claude.ai, chat.deepseek.com and grok.com. It does not match google, mail.google.com, bing, m.facebook.com or email. GA4 channel rules are not case sensitive, so capitalization does not matter.

Google's own help article offers a broader example regex that also catches fragments such as "gpt" and "bard". It works, but it is looser, so check the matched sources in Explore before you rely on it.

Step 3: report on it. In Traffic acquisition, switch the dimension to your new channel group. For revenue, open Explore, build a free-form table with your channel group and "Landing page + query string" as rows, and add Sessions, Key events, Ecommerce purchases and Purchase revenue as values.

One gap remains whatever you do in GA4: a visit with no referrer and no UTM tag, such as a link copied out of a chat and pasted into a browser, lands in Direct. Treat AI Assistant numbers as a floor.

If you want the next layer down, our post on why AI referral traffic lands on product pages covers what those visitors expect when they arrive.

How do I track revenue from ChatGPT traffic on Shopify?

Shopify has no dedicated AI channel in its reports today, but you can isolate ChatGPT with filters. Shopify's own guidance is to open any report, go to Filters, choose Referrer name or Order referrer name, and enter "ChatGPT" (Shopify blog).

The reports worth filtering:

Question

Shopify report

Path

How many sessions came from ChatGPT?

Sessions by referrer

Analytics > Reports > Category: Acquisition

How much revenue did AI traffic drive?

Performance by marketing channel

Analytics > Reports > Category: Marketing

Which campaigns or UTM tags drove sales?

Performance by marketing campaign

Analytics > Reports > Category: Marketing

Where did one buyer first come from?

Conversion summary on the order

Orders > select order

Two recent changes affect these numbers. In September 2026, Shopify rebuilt Performance by marketing channel to cover all online store traffic, including organic and referral rows, and retired "Performance by referring channel" and "Performance by UTM campaign" in favor of the channel and campaign reports. Shopify also changed session measurement from September 21 to 23, 2026, and now filters identified bot sessions out of session reports by default (Shopify analytics updates). Do not compare session counts across that window without a note.

Mind the attribution model. Most Shopify reports default to last non-direct click, and you can switch models from the Attribution menu in a report's configuration panel (Shopify marketing reports). A shopper who reads a ChatGPT answer, leaves, and comes back through a branded Google search gets credited to Google under last click. Use first click as a cross-check.

For single orders, the order's conversion summary shows where the customer's first visit came from and the landing page, when available, and View full sessions shows referral and UTM details for each visit (Shopify conversion summary).

Keep one line separate. When an AI agent completes a checkout natively, through rails like ACP, UCP or Shopify agent endpoints, that is a different event from a human who clicked a link. Nudge reports agentic revenue narrowly as those native agent checkouts, keeps AI-referred human visits as a separate line, and never counts Shop App volume as agentic. That keeps the AI number honest when a board deck asks "how much did AI sell?"

How do I see which AI bots and shopping agents are crawling my store?

GA4 and Shopify's session reports cannot answer this. GA4 measures browsers that run its tag, and Shopify now filters identified bots out of session reports by default. To see crawlers, you need request-level data from your CDN or server.

Start by knowing who you are looking for. The major AI companies publish their user agents:

Operator

User agent

What it does

OpenAI

OAI-SearchBot

Surfaces sites in ChatGPT's search features; OpenAI recommends allowing it

OpenAI

ChatGPT-User

Fetches pages for user actions in ChatGPT; robots.txt rules may not apply

OpenAI

GPTBot

Collects content for model training

Perplexity

PerplexityBot

Surfaces and links sites in Perplexity results; not used for model training

Perplexity

Perplexity-User

Fetches a page when a user asks a question; generally ignores robots.txt

Anthropic

Claude-SearchBot

Indexes content for Claude's search results

Anthropic

Claude-User

Retrieves content in response to a Claude user's query

Anthropic

ClaudeBot

Collects web content that may be used for training

Sources: OpenAI crawlers, Perplexity crawlers, Anthropic crawler policy. OpenAI and Perplexity also publish IP lists, so you can confirm a request is real and not a spoofed user agent.

The useful distinction for a store is the type of request. A search crawler (OAI-SearchBot, PerplexityBot) builds the index that answers draw from. A user fetcher (ChatGPT-User, Perplexity-User, Claude-User) means a real shopper's conversation pulled your page right now. A training crawler (GPTBot, ClaudeBot) feeds future models. A spike in user fetches on one product page is about as close to live demand as AI data gets.

Option 1: Cloudflare AI Crawl Control. Cloudflare renamed AI Audit to AI Crawl Control. It is available on all Cloudflare plans and shows which AI crawlers hit your domain, with Overview, Crawlers and Metrics tabs, filters by crawler, operator, hostname and path, and per-crawler allow or block controls (Cloudflare AI Crawl Control). On free plans the Metrics tab only covers the past 24 hours; longer windows and detection by Bot Management ID need Enterprise with Bot Management (Cloudflare get started).

The catch for Shopify brands: your domain must be proxied through your own Cloudflare zone. Cloudflare documents an "Orange-to-Orange" setup that puts your zone in front of Shopify's, enabled with a proxied CNAME to shops.myshopify.com on any Cloudflare plan (Cloudflare Shopify guide). Check with Shopify support before changing DNS on a live store.

Option 2: an agent analytics platform. Nudge AI Visibility includes Agent Analytics, which classifies agent requests hitting the store as crawl, citation fetch or training pull, and breaks them down per page, so you can see which product URLs agents actually pull. None of that appears in GA4. Tracking starts on the date it goes live for your store, so read every total as "since tracking went live", not as a full history.

Nudge AI Visibility dashboard with visibility score over time and competitor rank

That per-page view points straight at work. If agents keep fetching a product page whose specs are thin, that is a catalog problem, and Nudge Catalog Enrichment scans each product for AI readability against the live page and produces the JSON-LD and taxonomy fixes behind an approval step.

A free catalog scan shows where your products stand today.

What is the best AI search analytics tool for an online store?

No single tool covers clicks, crawlers and answers. Pick by the question you need answered.

Tool

Answer visibility (what AI says)

Human AI referrals

AI crawlers and agents

Revenue

Cost

Nudge AI Visibility

Yes: tracked prompts in ChatGPT, Gemini, Perplexity and Google AI, per brand and per product, with competitors and cited sources

Reads your connected Google Analytics and Shopify

Yes: Agent Analytics, per page, by request type

Agentic revenue counted separately from AI-referred visits

Not listed; based on usage

GA4

No

Yes: AI Assistant channel plus custom groups

No

Yes, with ecommerce tracking

Free

Shopify Analytics

No

Yes: referrer name filters

No (bots filtered from session reports)

Yes, native

Included

Cloudflare AI Crawl Control

No

No

Yes, by crawler, operator and path

No

All plans; longer history on Enterprise

OpenAI Business Hub

Mentions and discovery topics for ChatGPT only

Website clicks from ChatGPT

No

No

Free; needs a verified business

Profound Agent Analytics

Pages referenced in AI answers

Human visits from AI search

Yes, from server logs

Not stated on its page

See vendor

Nudge AI Visibility is built for the gap between those tools. Answer Engine Insights runs a tracked set of prompts and records whether your brand and each product was named, which competitors were, and which sources the answers cited. Agent Analytics adds the request-level layer, and the platform connects to Shopify, Google Analytics, Search Console and Meta to tie that activity to store performance.

Nudge AI Visibility showing the products AI answers mention most, with shelf share and average position

GA4 is the right free baseline for human clicks. Use the AI Assistant channel for trend lines and your own channel group when you need to name sources exactly.

Shopify Analytics is the place to check revenue, since orders and sales are your system of record and were unaffected by the September session changes.

Cloudflare AI Crawl Control is the cheapest way to see crawlers if your domain already runs through Cloudflare, with the 24-hour limit on free plans.

OpenAI Business Hub shows ChatGPT-only insights over the past 28 days: mentions (when ChatGPT references your website; the brand name alone does not count), website clicks and discovery topics. It requires a claimed business and Persona verification, and it never shows individual prompts (OpenAI Help Center).

Profound Agent Analytics reads server logs rather than a JavaScript tag, tracks which AI bots access your content and how many human visitors convert from AI search, and lists Cloudflare, Vercel, Shopify and other integrations (Profound).

For a deeper look at answer-level tracking, see our roundup of AI share of voice tools and the AI search visibility metrics worth reporting.

One honest limit: Nudge does not replace GA4 or Shopify as your system of record for store revenue, and its answer tracking covers a defined set of prompts, not every shopper conversation. It sits on top of those tools, not instead of them.

What should you do once you can see AI traffic?

Measurement is only useful if it changes a page. Three moves follow directly from the reports above.

  1. Find the landing pages. In your GA4 exploration, sort AI Assistant sessions by landing page. Most will be product pages, not the homepage.

  2. Compare conversion. Put AI-referred conversion rate and revenue per session next to Organic Search and paid social for the same pages. A gap means the page is not answering what the shopper already learned in the chat.

  3. Fix the page for that arrival. Nudge Funnels routes one product URL by origin, so a visitor from an AI platform can see a version matched to that arrival on your own domain, tested against the default page as a control. The lift is measured, not assumed.

If you are earlier in the journey and still working on being named at all, start with how to get products into ChatGPT shopping.

To see your AI answers, agent requests and AI-referred visits in one place, book a demo.

See how Nudge turns clicks into conversions. Book a demo

Frequently asked questions

Does GA4 track ChatGPT traffic automatically?

Yes, partly. Since May 13, 2026, GA4 files visits whose referrer matches a recognized AI assistant under the AI Assistant channel in the Default Channel Group. Google has not published the full list, and visits that arrive without a referrer still land in Direct.

Why does AI traffic show as Direct in GA4?

A visit with no referrer and no UTM tag has nothing for GA4 to classify, so it counts as Direct. A link copied out of a chat and pasted into a browser is a common example. Treat your AI channel totals as a minimum, not a complete count.

Are Google AI Overviews counted in the GA4 AI Assistant channel?

No. Google states that the AI Assistant channel excludes AI Overviews and AI Mode. Clicks from those surfaces are counted in Organic Search, and GA4 does not separate them from regular search clicks.

Can Shopify show sales from ChatGPT?

Yes. Open a report such as Performance by marketing channel, go to Filters, choose Referrer name or Order referrer name, and enter "ChatGPT". Check which attribution model the report uses, because the default is last non-direct click.

Can I see AI crawlers in Google Analytics?

No. GA4 counts browsers that run its tag, and AI crawlers and fetchers do not. Use request-level data instead: Cloudflare AI Crawl Control if your domain runs through Cloudflare, server logs, or an agent analytics tool such as Nudge Agent Analytics.

You don’t control where discovery happens.

You do control whether you show up.