Free tools › GA4 AI traffic regex generator (ChatGPT, Perplexity, Gemini, Claude)

GA4 AI traffic regex generator (ChatGPT, Perplexity, Gemini, Claude)

The question: How do I see visits from ChatGPT and other AI assistants in GA4?

GA4 lumps ChatGPT, Perplexity, Gemini and Claude visits in with every other referral. Google's own help suggests a custom channel group with a regex. Tick the assistants you want, copy the pattern, and test it against real source values from your reports before you save it.

1. Which AI assistants should count?

2. Your regex

3. Test it

Paste session source values (one per line) from Reports › Acquisition › Traffic acquisition, with Session source as the dimension.

How to set it up in GA4

  1. Go to Admin › Data display › Channel groups. You need Editor access or above.
  2. Click Create new channel group. It starts as a copy of the default group.
  3. Click Add new channel, name it AI assistants, add a condition on Source, choose matches regex and paste the pattern above. Save the channel.
  4. Click Reorder and drag AI assistants above Referral. Traffic goes into the first channel it matches, so below Referral it would never be counted.
  5. Save the group, then open Acquisition › Traffic acquisition and pick your new group as the dimension.

Good to know

Private by design. This tool runs entirely in your browser. Nothing you type is sent to us or stored. Facts were taken from official help pages (below) on 3 November 2026. Rules change, so check the source before you rely on it.

Sources

Want the full workflow?

This tool answers one question. The matching workflow goes further, with a copy-ready AI prompt and step-by-step checks: Track ChatGPT and AI assistant visits in GA4 and Shopify

More free tools

Free tool

EU product identifier checker for Shopify (GTIN, S-PID, NS-PID)

What do I need to add to this product so my EU parcels aren't held from 1 November 2026?

Answer five questions and get the exact identifier to add (GTIN, or the Y081 declaration), plus a bulk GTIN check-digit validator.

Free tool

Merchant Center misrepresentation suspension: ready to request a review?

My Google Merchant Center account is suspended for misrepresentation. Can it be fixed, and am I ready to ask for a review?

Tick off Google's own misrepresentation checklist, see what's still missing, and find out whether you're ready to use your review request.

Free tool

Shopify Catalog eligibility checker: why isn't my product included?

Why isn't my store or product in Shopify Catalog (the source for Shop and AI agents)?

Look up your admin's ineligibility message, check the store and product requirements, and scan a product for categories Shopify excludes.

Free tool

AI Shopping Readiness Checker

Check a Shopify store's public product data and get a what-to-fix-first list.

One tested AI-shopping workflow every week

A short email each Monday: one workflow, what it found on a real store, and what's changed in ChatGPT and Google AI Mode for UK & EU sellers. Coming soon.

Placeholder: the newsletter isn't live yet and this form doesn't send or store anything.