Google’s googsrc=ai-uk tag
breaks caches and leaks onto X
Google now appends googsrc=ai-uk to organic AI Search links clicked from the UK. In 30 minutes on 4 December 2026, we counted 25 tagged links shared on X, and 16 pointed to non-UK domains. Below: what breaks in caches and analytics, and the rules to fix both.
What we foundin short.
- Observed on X (4 December 2026): between 17:29 and 18:00 UTC, 25 public X posts shared URLs carrying
?googsrc=ai-uk, and 16 of the 25 (64%) pointed to non-.ukdomains. In a second 50-post pull across 2 to 4 December, 21 BBC News app shares carried?googsrc=ai-uk&app-referrer=deep-link. - Checked in primary Google and CMA docs: Google added
googsrc=ai-ukto its Search traffic guide on 1 December 2026 (verified against the 30 November Wayback snapshot). The page mentions caching, canonicals and shared links zero times. The UK CMA obligation runs from 3 December 2026 to 10 October 2030. - Verified in CDN docs: Cloudflare caches HTML only when you configure it, and excluding a single query parameter in
Custom cache keyis Enterprise-only. Cloudflare APO for WordPress also leavesgoogsrcoff its 26-parameter allowlist, causing cache bypasses. - Verified in analytics docs: GA4 keeps
googsrc=ai-ukunderOrganic Search, splitsLanding page + query stringrows, and blocks query parameters in Custom Channel Groups. Plausible and Fathom stripgoogsrc=ai-ukcompletely by default. - Reported by practitioners: Salience’s Carl Hendy logged the first hit on 11 November and saw 1 in 4 requests come from bots such as
CrolBot. Google has stated no timeline to expandgoogsrcbeyond the UK.
Want to see which AI answers send buyers to your site and keep your tracking clean? Book a free 30-minute call with Emre →
How googsrc=ai-uk leaksonto X, apps and bot logs.
Under the UK CMA’s Interpretative Notes, the tag follows the visitor’s UK device location on any site worldwide. On 4 December 2026 (17:29 to 18:00 UTC), we pulled the 25 most recent public X posts carrying googsrc, a rate of about 49 leaked links per hour:
Sixteen of the 25 links (64%) pointed to non-.uk hosts, including pmc.ncbi.nlm.nih.gov, en.wikipedia.org, philadelphiafed.org, cochrane.org, hackernoon.com, store.hplhs.org and a PDF on holodomor.ca. Three separate sources now pollute naive googsrc=ai-uk counts:
Copied links on X
25 posts in 30 minutesUK readers copy URLs from AI Overviews or AI Mode and paste them into X replies. Anyone clicking from any country lands with googsrc=ai-uk and a t.co referrer.
App share buttons
21 of 50 X postsIn our second 50-post X pull (2 to 4 December), 21 BBC News shares carried ?googsrc=ai-uk&app-referrer=deep-link, showing mobile app share sheets keep the tag.
Bots and AI scrapers
1 in 4 requestsSalience’s Carl Hendy reported 1 in 4 tagged requests came from bots including CrolBot (cloro.dev). Natzir Turrado logged 46 CrolBot requests on one site in a single day.
Practitioner logs show the rollout started weeks before Google’s documentation and ramped right before the CMA deadline:
- UK CMA imposes Publisher Conduct RequirementOrders Google to supply AI click metrics and referral data for UK users within six months.
- First tagged visits appear in server logsCarl Hendy reports the earliest ?googsrc=ai-uk hit across sites Salience monitors.
- Google Search traffic guide still mentions zero AI tagsWayback Machine snapshot (16:05 UTC) names only gclid under redirect warnings.
- Google documents googsrc=ai-ukAdds #ai-features to identify-google-search-traffic and adds googsrc beside gclid.
- Volume spikes in GA4 and CloudflareGerry White spots hundreds of client URLs breaking Cloudflare caches; Marie Haynes sees GA4 ramp sharply.
- UK CMA rule takes legal effectReferral-data obligation remains in force until 10 October 2030 unless varied or revoked.
What Google’s doc says,and what it leaves out.
On 1 December 2026, Google added an #ai-features section to Identify Google Search traffic and added googsrc beside gclid under redirect warnings. Diffing the live page against the 30 November Wayback snapshot confirms zero edits since 1 December:
When users in the United Kingdom click a link in Search generative AI features (such as AI Overviews, AI Mode, and generative AI features in Discover), Google adds this parameter to the URL: googsrc=ai-uk.
Checking the live Google guide alongside the UK CMA’s Publisher Conduct Requirement Notice shows where official guidance stops:
- Live doc checked
- 4 December 2026 (Last updated 2026-12-01 UTC)
- Documented values
- googsrc=ai-uk only (zero other values on developers.google.com)
- Surfaces covered
- AI Overviews, AI Mode and Discover AI features (one shared value)
- Google Ads links
- Excluded (organic Search generative AI links only)
- Mentions of caching
- 0 occurrences on the page
- Mentions of canonicals
- 0 occurrences on the page
- Mentions of shared links
- 0 occurrences on the page
- UK CMA enforcement window
- 3 December 2026 to 10 October 2030 (device-location scoped)
Google’s redirect warning already showed up in live tests. On 4 December, Mintec checked 7 public redirect hops: 6 preserved googsrc=ai-uk, while bbc.co.uk’s 302 host redirect dropped it. Once tagged URLs land on X, clean parameter-free rel="canonical" tags also keep non-Google crawlers from indexing duplicates.
Six CDNs on ?googsrc=ai-uk,and the Cloudflare plan catch.
On 2 December, SEO consultant Gerry White spotted ?googsrc=ai-uk across hundreds of client URLs breaking Cloudflare caches. Search Engine Journal advised selecting query parameters in Cloudflare Cache Rules, omitting two limits in Cloudflare’s live docs:
- HTML caching must be turned on. Cloudflare does not cache HTML by default, so misses hit zones using Cache Rules, Cache Everything, APO for WordPress (where
googsrcis missing from the 26-parameter allowlist) or origin caches such as Nginx. - Selective cache keys are Enterprise-only. Cloudflare’s Custom Cache Key option to exclude one parameter requires Enterprise. Free, Pro and Business plans only offer
Ignore query stringacross every parameter, or a URL Rewrite Transform Rule.
| Platform | HTML default | Clean fix | Plan |
|---|---|---|---|
| Cloudflare Cache Rules | Cache miss | Custom cache key | Enterprise |
| Cloudflare Transform | Cache miss | URL Rewrite rule | All plans |
| Cloudflare APO | Cache bypass | URL Rewrite rule | All plans |
| Vercel static and ISR | Cache hit | None needed | All plans |
| AWS CloudFront | Cache hit | allExcept policy | All plans |
| Fastly VCL | Cache miss | querystring.filter | All plans |
| Nginx proxy_cache | Cache miss | map and cache key | Open source |
| Netlify static | Cache hit | Netlify-Vary | All plans |
On Vercel and Next.js, static and ISR routes ignore query strings automatically (Vercel CDN docs), while reading searchParams inside a Server Component opts the page into dynamic SSR. AWS CloudFront’s default CachingOptimized policy ignores query strings too. For platforms that miss cache, copy the rule for your stack:
Cloudflare Free and Pro: URL Rewrite Transform Rule
# Menu: Rules > Transform Rules > Rewrite URL > Create rule
# Filter expression (handles ?googsrc=ai-uk when it is the only param):
(http.request.uri.query wildcard "googsrc=*" and not contains(http.request.uri.query, "&"))
# Query > Rewrite to > Static: leave blankRuns in http_request_transform before Cache Rules and cache lookup. Keeps ?googsrc=ai-uk in the browser URL bar for client-side analytics while serving the cached canonical page. For mixed query strings on Free or Pro, add wildcard_replace() rules; regex_replace() requires Business or Enterprise.
Cloudflare Business and Enterprise: single regex_replace rule
# Filter expression:
(http.request.uri.query contains "googsrc")
# Query > Rewrite to > Dynamic:
regex_replace(http.request.uri.query, "(?:^googsrc(?:=[^&]*)?&?|&googsrc(?:=[^&]*)?(&)|&googsrc(?:=[^&]*)?$)", "${1}")Strips googsrc from any position in the query string while leaving other parameters intact. Enterprise accounts that also want origin logs to see googsrc should use Caching > Cache Rules > Custom cache key > Query string > Exclude.
Fastly VCL: strip googsrc in vcl_hash
sub vcl_hash {
set req.hash += querystring.filter(req.url, "googsrc");
set req.hash += req.http.host;
set req.hash += req.vcl.generation;
return(hash);
}Leaves req.url untouched on cache misses, so both browser analytics and origin server logs keep seeing ?googsrc=ai-uk while cached hits share one entry.
Nginx: drop googsrc from proxy_cache_key and keep it on 301s
# Inside http {}:
map $args $cache_args {
~^(.*)&googsrc(?:=[^&]*)?&(.*)$ $1&$2;
~^(.*)&googsrc(?:=[^&]*)?$ $1;
~^googsrc(?:=[^&]*)?&(.*)$ $1;
~^googsrc(?:=[^&]*)?$ "";
default $args;
}
# Inside server {} or location {}:
proxy_cache_key "$scheme$proxy_host$uri?$cache_args";
# Keep query strings on redirects ($request_uri, never bare $uri):
return 301 https://example.com$request_uri;Shares cache entries across tagged and untagged URLs while preserving ?googsrc=ai-uk in the browser and in upstream requests.
One tradeoff applies to every CDN: once the edge serves a cached page for ?googsrc=ai-uk, those hits stop reaching your origin server logs. Read CDN edge logs or client-side analytics to keep counting them, or use a Cloudflare Worker with caches.default if origin logs must still receive the parameter.
Four analytics tools,and the three referrer buckets.
Even with caching fixed, four widely used analytics tools treat googsrc=ai-uk in opposite ways. We checked each vendor’s live documentation on 4 December 2026:
| Tool | Keeps googsrc | Splits rows | Default channel |
|---|---|---|---|
| GA4 | Yes | Yes | Organic Search |
| PostHog | Yes | No | Organic Search |
| Plausible | Stripped | No | None |
| Fathom | Stripped | No | None |
- GA4 hides it inside Organic Search and splits landing rows. Google’s
AI Assistantchannel excludes AI Overviews and AI Mode (confirmed in production by Marie Haynes).Landing page + query stringandpage_locationsplit tagged URLs into separate rows, Custom Channel Groups cannot inspect query parameters, and Data Redaction turns the value into?googsrc=(redacted)while still splitting rows. - Plausible and Fathom drop it completely. Both Plausible and Fathom strip
googsrc=ai-ukby default, hiding UK AI clicks until you add a custom pageview property or custom event. - PostHog keeps it in
$current_url. Path reports stay grouped under$pathname, and addingcustom_campaign_params: ['googsrc']inposthog.init()promotesgoogsrcto a native event and session property.
On any tool that records the parameter, pair googsrc=ai-uk with Referer (matching google.* or android-app://com.google.android.googlequicksearchbox/) and report three buckets:
| Bucket | Referer host | Count as |
|---|---|---|
| Confirmed Google | google.* or Google app | UK AI click |
| Confirmed external | t.co or reddit.com | Shared link |
| Empty or Direct | Blank header | Ambiguous |
That middle bucket stays ambiguous on purpose. Google’s doc notes that private browsing, new-tab opens and mobile search widgets strip Referer on real Google clicks, just as Slack, WhatsApp and email strip it on shared links. Report Google-referrer hits as a floor and Google plus Direct as a ceiling.
Fix caching and trackingin fifteen minutes.
Five steps keep your cache hit rate intact and separate real UK AI visits from shared links and bots:
- 1Ignore googsrc at the CDN edge without redirectingDeploy the Transform Rule, VCL snippet, CloudFront policy or Nginx
proxy_cache_keyabove so?googsrc=ai-ukhits cache while staying in the browser address bar for analytics. - 2Preserve query strings on redirects and clean canonicalsCheck HTTP-to-HTTPS, host and trailing-slash redirects to ensure they keep
$request_uri, and verify every page emits a parameter-free<link rel="canonical">. - 3Split googsrc=ai-uk by referrer and filter scrapersExclude known bots such as
CrolBotin server or edge logs, then report confirmed Google referrers, blank referrers and leaked social referrers separately. - 4Turn on capture in Plausible, Fathom or PostHogAdd
custom_campaign_params: ['googsrc']in PostHog, acustomPropertiescallback in Plausible, or a custom event in Fathom so the parameter is stored cleanly. - 5Test history.replaceState before stripping the URL barCleaning
?googsrc=ai-ukwithhistory.replaceStatestops readers from sharing dirty links, yet GA4 Enhanced Measurement listens toreplaceStateby default and can fire a secondpage_view. DisablePage changes based on browser history eventsor verify in GA4 DebugView, and wait until after consent banners and initial pageview capture finish.
Use these three tested queries and variables to audit edge logs, PostHog and GA4:
Server logs (Nginx or Apache combined format): split by referrer
awk -F'"' '
$2 ~ /[?&]googsrc=ai-uk([& ]|$)/ {
ref = $4
if (ref == "" || ref == "-") bucket = "empty_or_direct"
else if (ref ~ /^https?:\/\/([^\/]+\.)?google\.[a-z.]+\// || ref ~ /^android-app:\/\/com\.google\.android\.googlequicksearchbox\//) bucket = "google_referrer"
else bucket = "non_google_referrer"
counts[bucket]++
if (bucket == "non_google_referrer") leaked[ref]++
}
END {
for (b in counts) printf "%-22s %d\n", b, counts[b]
for (r in leaked) printf " leaked: %-30s %d\n", r, leaked[r]
}
' /var/log/nginx/access.logRun against CDN edge logs once edge caching is fixed, since cached hits stop reaching origin logs. Exclude known scraper user agents such as CrolBot first.
PostHog HogQL: bucket googsrc=ai-uk sessions by referring domain
SELECT
multiIf(
properties.$referring_domain IN ('$direct', '') OR properties.$referring_domain IS NULL,
'empty_or_direct',
match(lower(coalesce(properties.$referrer, '')), '^https?://([^/]+\\.)?google\\.[a-z.]+/')
OR startsWith(lower(coalesce(properties.$referrer, '')), 'android-app://com.google.android.googlequicksearchbox/'),
'google_referrer',
'non_google_leaked'
) AS referrer_bucket,
properties.$referring_domain AS referring_domain,
count() AS pageviews,
count(DISTINCT properties.$session_id) AS sessions
FROM events
WHERE event = '$pageview'
AND timestamp >= toDateTime('2026-12-01 00:00:00')
AND extractURLParameter(properties.$current_url, 'googsrc') = 'ai-uk'
GROUP BY referrer_bucket, referring_domain
ORDER BY pageviews DESCYou can also add custom_campaign_params: ['googsrc'] inside posthog.init() so PostHog captures googsrc as a first-class event and session property.
GTM Custom JavaScript variable for GA4 (event-scoped dimension)
function () {
var params = new URLSearchParams(window.location.search);
if (params.get('googsrc') !== 'ai-uk') return undefined;
var ref = document.referrer || '';
if (!ref) return 'ai-uk:empty_or_direct';
var isGoogle =
/^https?:\/\/([^/]+\.)?google\.[a-z.]+\//i.test(ref) ||
/^android-app:\/\/com\.google\.android\.googlequicksearchbox\//i.test(ref);
return isGoogle ? 'ai-uk:google_referrer' : 'ai-uk:non_google_leaked';
}Register googsrc_attribution under Admin > Data display > Custom definitions so the tag survives subsequent pageviews inside the session.
What isstill open.
- Expansion outside the UK. Google has announced no plan to add
googsrcvalues for the US or Europe. The current parameter tracks the UK CMA’s legal requirement, which runs until 10 October 2030. - Splitting AI Overviews, AI Mode and Discover. All three send the exact same
googsrc=ai-ukstring, and Search Console’s Generative AI report still combines AI Overviews and AI Mode. - Cloudflare APO’s allowlist. Cloudflare had not added
googsrcto APO’s 26-parameter ignore list as of 4 December 2026, leaving WordPress sites relying on manual Transform Rules. - Dark-social versus stripped Google clicks. Because Slack, WhatsApp, email and stripped mobile Google clicks all arrive with an empty
Referer, client-side analytics cannot separate that middle bucket.
Read nexton bots and crawlers.
Sourcesand primary docs.
Questions.
What is ?googsrc=ai-uk in my server logs or GA4 URLs?
Google appends googsrc=ai-uk to organic links when a user in the United Kingdom clicks out of AI Overviews, AI Mode or generative AI features in Discover. Google documented it on 1 December 2026, two days before the UK CMA Publisher Conduct Requirement took legal effect on 3 December.
Why am I seeing googsrc=ai-uk on a US or European website?
Google adds the parameter based on the visitor's UK device location, regardless of where your company or domain sits. In our 30-minute sample of 25 public X posts on 4 December 2026, 16 of 25 leaked googsrc=ai-uk links (64%) pointed to non-.uk domains, including US government, Wikipedia and commercial sites.
Does googsrc=ai-uk break Cloudflare caching on every site?
Only when HTML caching is turned on, such as Cache Rules, Cache Everything or Cloudflare APO for WordPress. Cloudflare does not cache HTML by default. When HTML caching is enabled, Cloudflare's Standard caching level keys on the full query string, and googsrc is absent from APO's 26-parameter allowlist as of 4 December 2026.
Can I exclude just googsrc in Cloudflare Cache Rules on a Free or Pro plan?
No. Selective per-parameter query string rules inside Custom Cache Key require Cloudflare Enterprise. On Free and Pro plans, use a URL Rewrite Transform Rule under Rules > Transform Rules > Rewrite URL to strip googsrc internally before cache lookup, which keeps ?googsrc=ai-uk visible in the browser URL for client-side analytics.
Why does filtering GA4 on googsrc=ai-uk overcount Google AI clicks?
Because readers copy URLs straight from the address bar or mobile app share buttons and paste them into X, Reddit, Slack and email. Anyone clicking those shared links lands with googsrc=ai-uk and a social or blank referrer, and scrapers such as CrolBot also hit tagged URLs.
Should I strip googsrc=ai-uk from the browser URL with history.replaceState?
Only after testing your analytics setup. In GA4, Enhanced Measurement's default Page changes based on browser history events option listens to replaceState and can fire a second page_view event on every UK AI landing. Wait until after consent and initial capture, and check GA4 DebugView before deploying.
Google tagged UK AI clicks.See the rest of AI search.
Book a free 30-minute call with Emre. We’ll check which AI bots reach your site, run your buyers’ real questions across ChatGPT, Gemini and Perplexity, and map which B2B growth channels fit your stage.
Choose a time for your free 30-minute call.