googsrc=ai-uk: Google AI traffic is finally trackable (and it's breaking caches)
Over the last day or so I've started seeing a new parameter on landing page URLs: ?googsrc=ai-uk . It's coming from Google's AI features, and it's the first time we've had a clean, URL-level way to say "this visit came from AI Mode or an AI Overview".
That's genuinely useful. It's also already causing a couple of problems, mainly around caching, and nobody (me included) is completely sure yet how Google Analytics is treating it. So this is a write-up of what we know, what we don't, and what I'd check on your own site this week.
What Google has actually said
Google added a short section to its guide to identifying Google Search traffic on 1 December. The gist:
- When someone in the UK clicks an organic link in AI Overviews, AI Mode or the AI bits of Discover, Google appends googsrc=ai-uk to the URL.
- If the URL already has a query string, it's tacked on the end with an ampersand rather than replacing anything.
- It's organic only. Google Ads clicks don't get it.
- Google says it doesn't affect crawling, indexing or ranking.
- They suggest a filter, segment or custom dimension in your analytics, or matching it in server logs, and they warn you to make sure redirects don't strip it.
The timing isn't a coincidence. The CMA's conduct requirement on Google search kicks in on 3 December, and part of it is about giving publishers proper data on engagement with their content in AI features. PPC Land has a good breakdown of how the two line up. Google also rolled out AI click and CTR data in Search Console the same day, and that bit is global ( Barry Schwartz covered it here).
So the "-uk" really does mean UK. If you're a US site you won't see this, and if you're a UK site with international traffic you're only seeing a slice.
Why this is a big deal
Since AI Mode launched, AI traffic from Google has been basically invisible. The referrer just says google.com, same as a normal organic click, so in GA4 it all lands in google / organic and you can't pull it apart. People have tried all sorts (scroll-to-text fragments, landing page guesswork, comparing against Search Console) and none of it was reliable.
Now, for UK users at least, you can see exactly which landing pages AI features are sending people to, and more importantly what those people do next. Search Console can tell you clicks. It can't tell you whether anyone bought anything, filled in a form or bounced straight off. This parameter can, because it travels with the session into your own analytics.
It's still blunt. There's one value for everything, so you can't separate AI Mode from AI Overviews from Discover. But it's a lot better than nothing.
The caching problem
This is the bit that caught us out. Most CDNs and page caches treat the full URL, query string included, as the cache key. So /pricing and /pricing?googsrc=ai-uk are two different objects as far as the cache is concerned.
What that means in practice:
- Cache misses. The first AI visitor to each page goes all the way to origin. On a big site with lots of long-tail pages getting AI clicks, that adds up.
- Some caches don't cache query strings at all. Plenty of WordPress page caches and hosting setups bypass the cache completely if there's a query string. That means every single AI visitor gets an uncached page, which is slower, and it's exactly the traffic you'd want to make a good first impression on.
- It's new, so it isn't on anyone's ignore list. Most setups already strip utm_ parameters, gclid and fbclid from the cache key. googsrc didn't exist last week, so it won't be in those lists unless someone adds it.
The fix sounds simple but there's a trap in it. You want to ignore googsrc in the cache key , not remove it from the URL. If you "solve" it with a redirect that strips the parameter, you've just thrown away the tracking. Google's own guidance specifically warns about this.
How you do that depends on your stack. In Varnish it's the same regex you already use for utm_ and gclid in vcl_recv, with googsrc added. WP Rocket and similar plugins have an ignored parameters list. On Cloudflare and other CDNs look at the cache key settings in your cache rules (what's available varies by plan). Whatever you use, test it: load a page with the parameter, check the response headers for a HIT, and check the parameter is still in the address bar.
One knock-on effect worth knowing about. Once you fix caching, those requests stop reaching your origin, so they'll disappear from origin server logs. If you're planning to count AI visits from logs (which is a really nice way to do it, because logs don't care about cookie banners or ad blockers), use your CDN or edge logs instead.
What's happening in GA4?
Honestly, we're not 100% sure yet, and Google hasn't said. Here's what I'm seeing and what I'd expect:
- Source / medium doesn't change. It's still google / organic. GA4 doesn't treat googsrc as a campaign parameter, so it won't show up as its own channel.
- It is in page_location. The full URL gets sent with the page view, so the data is there. It just isn't surfaced anywhere by default.
- Path-only dimensions drop it. Anything that reports the page path without the query string won't show it. You need "Landing page + query string" or page_location.
- It only exists on the landing page. As soon as the user clicks to a second page, the parameter's gone. So you need session-level thinking, not page-level.
Things I'm still not sure about: whether Google Analytics will start recognising it automatically at some point (it would be odd if it didn't, eventually), and whether any browser privacy features will start stripping it the way Safari does with some click IDs. If you've seen either, I'd love to hear about it.
How I'm tracking it for now
Quick and dirty first, then something sturdier.
1. An exploration segment
In a GA4 exploration, build a session segment where Landing page + query string contains googsrc=ai-uk. Compare it against the rest of google / organic. Engagement rate, conversions and revenue per session are the obvious ones to look at. This works on data you've already collected, so you can do it today.
2. A custom dimension via Google Tag Manager
Create a URL variable in GTM (component type: Query, key: googsrc), pass it as an event parameter on your Google tag, for example ai_click_source, and register it as an event-scoped custom dimension in GA4. That gets it into standard reports and Looker Studio, which is easier for clients than explorations. It won't backfill, so set it up sooner rather than later.
I'd avoid overwriting source or medium with it. It's tempting, but you'll break your organic numbers and make year-on-year comparisons a mess.
3. Server or edge logs
Filter requests for googsrc=ai-uk. This is the closest you'll get to the "true" number because it ignores consent and blocking, and it's the easiest one to sense-check against the new Search Console AI click data.
Don't expect any of these to match each other exactly. Search Console counts a click, analytics counts a page that loaded and ran its tag after consent, and logs count requests. They'll be in the same ballpark at best.
Other gotchas
- Redirects. Check your HTTP to HTTPS, trailing slash and old URL redirects keep the query string. A lot of them don't.
- Canonicals. Google says it won't affect indexing, but make sure your pages have a self-referencing canonical without parameters anyway. Other crawlers and AI bots aren't always as tidy.
- URL sharing. People copy URLs out of the address bar. Expect some ?googsrc=ai-uk links to turn up in Slack, emails and social posts, which will inflate your "AI" numbers slightly with traffic that didn't come from AI at all. Not a huge deal, but worth knowing when a number looks too good.
- Personalisation and A/B tools. Anything that keys off the URL might treat these as different pages. Worth a quick check.
What I'd do this week
- Search your logs or GA4 for googsrc=ai-uk to see if you're getting any yet.
- Add googsrc to your cache key ignore list, then test it.
- Check your redirects preserve query strings.
- Set up the GTM custom dimension so you start collecting cleanly.
- Build the comparison segment and look at how AI visitors behave against normal organic.
It's UK only and it's a bit rough, but this is the first time Google has given us a proper hook into AI traffic in our own data. I'll update this post as we learn more about how GA handles it. If you need a hand getting it set up across a big site, or working out what your AI traffic is actually worth, get in touch.










