This page contains a regular expression pattern designed to help you identify and filter incoming traffic from known AI tools, bots, and services.
The REGEX targets user agents and domains associated with popular AI platforms such as ChatGPT, Claude, Gemini, Perplexity, and others.
You can integrate this pattern into your analytics, by create a filter in GA4:
“Session source / medium” = “Regex contains” (the next REGEX code)
.*chatgpt.*|.*karmanow.*|.*gemini.*|.*perplexity.*|.*chatboxapp.*|.*claude.*|.*mistral.*|.*gpt.*|.*pilot.*|.*ai$|^\w+ai\.\w+$|.*grok.*|.*deepseek.*|.*minimax.*|.*storytell.*|^ai\..*