LEO Is the New SEO: Tracking AI Traffic in Google Analytics

LEO Is the New SEO: Tracking AI Traffic in Google Analytics

SEO Professionals Are Starting to Pay Attention to AI Traffic

More and more SEO professionals are beginning to take notice of traffic generated by AI.

In fact, traffic coming from various models, systems, applications, and increasingly from AI agents is growing steadily.

It’s now reaching a point where it can’t be ignored. There’s a growing consensus that websites should be optimized not just for human users and traditional search engines, but also for AI. A new term has even been coined for it: LEO (LLM Engine Optimization).

In my next blog post, I’ll walk you through how to optimize your site for AI crawlers. But in this one, I’ll show you how to configure Google Analytics to track traffic coming from AI sources like ChatGPT, Perplexity, Anthropic, Gemini, and others.


Custom Setup for GA4 Explore

  1. In GA4, go to the left-hand menu and click “Explore.”

Step 1

  1. Under the “Explorations” section, click “Blank.”

Step 2

  1. In the left-side submenu, click “Dimensions.” Step 3

  2. Select “Session source/medium” and click “Confirm.” Step 4

  3. Now click on “Segments.” Step 5

  4. In the new window, click “Create a new segment.” Step 6

  5. Choose “Session segment.” Step 7

  6. Name it “AI Sources” and add a condition for “Session source.” Step 8 Step 9

  7. Click “Add filter.” Step 10

  8. Choose “matches regex” Step 11 and paste in the following value:

.*chatgpt.com.*|.*perplexity.*|.*edgepilot.*|.*edgeservices.*|.*copilot.microsoft.com.*|.*openai.com.*|.*gemini.google.com.*|.*nimble.ai.*|.*iask.ai.*|.*claude.ai.*|.*aitastic.app.*|.*bnngpt.com.*|.*writesonic.com.*|.*copy.ai.*|.*chat-gpt.org.*
  1. Click “Save Property.”

When done, the “Variables” panel should look like this: Step 12

  1. Now in the “Settings” submenu, click “Segment comparisons” Step 13 and choose “AI Sources.” Step 15

  2. Change the granularity to “Week.” Step 16

  3. Under “Breakdowns,” select “Session source/medium.” Step 17

You should now see a report showing traffic from AI-based sources. Step 18


Ongoing AI Traffic Monitoring – Traffic Acquisition Report

If you want continuous reporting, you’ll need to create a new Channel Group:

  1. Click on “Admin.”

  2. Select “Channel groups.” Step 20

  3. Click “Create new channel group.” Step 21

  4. Name it “Channel Group with AI.”

  5. Click “Add new channel.” Step 22

  6. Name it “AI,” click “Add new condition,” choose “matches regex,” Step 23 and paste in the same value as above:

.*chatgpt.com.*|.*perplexity.*|.*edgepilot.*|.*edgeservices.*|.*copilot.microsoft.com.*|.*openai.com.*|.*gemini.google.com.*|.*nimble.ai.*|.*iask.ai.*|.*claude.ai.*|.*aitastic.app.*|.*bnngpt.com.*|.*writesonic.com.*|.*copy.ai.*|.*chat-gpt.org.*
  1. Click “Reorder” and move “AI” to the 9th position. Step 24

  2. Go to Reports > Acquisition > Traffic Acquisition. Step 25

  3. From the dropdown, select your newly created “Channel Group with AI.” Step 26

  4. You should now see “AI” as a traffic source in the list. Step 27

From here on, you’ll be able to track AI-generated traffic directly in your reports.