Google Fixes AI Mode Traffic Attribution Bug

t2van

Senior Member
Founding Member
Bronze Star Bronze Star Bronze Star Bronze Star
Joined
Apr 22, 2025
Messages
1,308
Reaction Score
3,344
Feedback
0 / 0 / 0
Google AI Mode traffic bug fixed after organic search was mislabeled as direct traffic in Analytics.



I'm not sure if the other place ever covered adding in AI event tracking into Analytics, as it's surprising how many people I talk to have not done it. I followed a guide on Reddit a while ago, which went something like (I think it's maybe changed a little since then but I'm not so sure)

Tracking AI Engine Traffic In GA4: What We Are Testing​


Of course, we are still working on getting keyword ranking tracking for AI engines like Google AI Overviews, ChatGPT, Perplexity, CoPilot, etc, but in the meantime, we identified a way to at least be able to track if a user clicks into the site from these engines and thought we'd share (of course, this will only track people clicking into the site for more information, which 0 click results will make difficult, but hey, we have something to monitor).

1) Edit your main traffic acquisition report by clicking the 'pen' at the top right.

r/GenEngineOptimization - 📈 Tracking AI Engine Traffic In GA4: What We Are Testing
2) Update your dimensions and metrics as you see fit (we like to look at things with the default as landing page).

3) Then, add a filter for 'session source'.

r/GenEngineOptimization - 📈 Tracking AI Engine Traffic In GA4: What We Are Testing
4) From here, use the filter option of 'matches regex' and input this into the field:

(?i)(.*gpt.*|.*chatgpt.*|.*openai.*|.*neeva.*|.*writesonic.*|.*nimble.*|.*outrider.*|.*perplexity.*|.*google.*bard.*|.*bard.*|.*edgeservices.*|.*gemini.*google.*)

Source:
Code:
https://www.reddit.com/r/GenEngineOptimization/comments/1duncjz/tracking_ai_engine_traffic_in_ga4_what_we_are/
 
Back
Top