---
title: "How to Track AI Traffic in GA4: A 1-Minute Marketing Tip"
description: "https://youtu.be/UGxoiTbrHA8?si=TTkgH24gNYHOpHY_ The 1-Minute Marketing tip \"How to See AI Traffic in GA4\" explains how to track website traffic from AI tools and assistants using GA4 custom channel..."
url: https://www.boxcarmarketing.com/how-to-track-ai-traffic-in-ga4/
date: 2026-05-13
modified: 2026-05-12
author: "Monique Sherrett"
image: https://www.boxcarmarketing.com/wp-content/uploads/tracking-ai-traffic-andrea-de-santis-zwd435-ewb4-unsplash2.jpeg
categories: ["Google Analytics"]
type: post
lang: en
---

# How to Track AI Traffic in GA4: A 1-Minute Marketing Tip

The 1-Minute Marketing tip “How to See AI Traffic in GA4” explains **how to track website traffic from AI tools and assistants using GA4 custom channel groupings**. The process involves creating a new channel called AI/LLMs and using regex (or regular expression) to identify referral traffic from AI. Once the new channel is created, marketers can compare AI-driven visits to other referral traffic, social media, or search. Adding a custom channel for AI allows for a more granular understanding of referral traffic, separating AI from humans.

## To set up a custom channel group in GA4 to track AI and LLM traffic, follow the below steps:

1. Go to Admin in GA4, and select Channel Groups from the Data Display section.
2. Click on Create new channel group. Name the channel something descriptive like AI/LLM Traffic.
3. Then define the conditions. Select Source and matches regex. Copy/paste the regex string below, which contains a list of the common AI tools (e.g., chatgpt, claude, perplexity, gemini). Save the channel.
4. Next click Reorder and drag your AI channel above Referral. Click Apply. Then save the Channel Group.

Reordering the channels is important because GA4 buckets, or groups, traffic in the order the channels appear. If Referral is above AI (vs. below), then AI traffic will continue to be categorized as standard referral traffic. Remember to Reorder, Apply, and Save.

The new custom channel grouping can now be used in any of the GA4 traffic reports. And, the nice thing is that channel groups are retroactive so you can immediately see the impact of AI traffic on your site.

**Here’s the regex I used:**

```
^(?:chatgpt\.com|chat\.openai\.com|openai\.com|platform\.openai\.com|labs\.openai\.com|claude\.ai|anthropic\.com|anthropic-api\.com|perplexity(?:\.ai)?|gemini\.google\.com|bard\.google\.com|notebooklm\.google\.com|ai\.google\.com|vertexai\.google\.com|deepmind\.google\.com|palm\.google\.com|copilot\.microsoft\.com|copilot\.azure\.com|bing\.com|edgeservices\.bing\.com|grok\.x\.com|x\.ai|meta(?:\.ai)?|pi\.ai|heypi\.com|mistral\.ai|chat\.mistral\.ai|deepseek\.com|chat\.deepseek\.com|qwen\.ai|chat\.qwen\.ai|qwenlm\.ai|huggingface\.co|huggingchat\.com|character\.ai|jan\.ai|phind\.com|you\.com|poe\.com|kagi\.com|search\.brave\.com|brave\.com|duckduckgo\.com|andisearch\.com|consensus\.app|exa\.ai|waldo\.fyi|komo\.ai|tavily\.com|venice\.ai|sider\.ai|wrtn\.ai|liner\.ai|jasper\.ai|copy\.ai|app\.copy\.ai|writesonic\.com|app\.writesonic\.com|quillbot\.com|blackbox\.ai|iask\.ai|aitastic\.app|deepl\.com|notion\.so|notion\.com|reka\.ai|cohere\.ai|forefront\.ai|ai21\.com|openrouter\.ai|coze\.com|my-ai\.snapchat\.com|firefly\.adobe\.com|suno\.com|chat\.suno\.com)$
```

Note that the regex will have to be updated as AI tools continue to evolve and new tools appear. If you have any issues, double check that you copied the whole string, and make sure there are no line breaks or extra spaces. Or get in touch if you want Boxcar Marketing to set this up for you.
