George Chrysochou
Conversion tracking and attribution

How to track AI search traffic with server-side, cookieless measurement

George Chrysochou

George Chrysochou

AEO, GEO, SEO Consultant · Updated 29 October 2026

Short answer

AI search traffic reaches a site in three ways. Clicks from assistants such as ChatGPT, Gemini and Copilot carry a referrer, and Google Analytics puts them in its AI Assistant channel. Clicks from Google’s AI Overviews and AI Mode count as Organic Search. Links copied out of an answer arrive as Direct. Server-side, cookieless measurement records each visit and conversion on a server you control, so the source behind a lead survives blocked and expiring cookies.

Key takeaways

  • AI search visits land in three places: the AI Assistant channel, Organic Search for AI Overviews and AI Mode, and Direct for links copied out of an answer.
  • Google Analytics assigns a visit to AI Assistant when its referrer matches Google’s list of assistants, such as ChatGPT, Gemini, Deepseek, Copilot and Grok.
  • Browser tags lose the source over time: Safari deletes cookies set by scripts after seven days without a visit, and basic consent mode sends nothing until a visitor accepts.
  • Server-side tagging runs your measurement on a server you control, on your own domain, and the Measurement Protocol sends conversions from that server to Google Analytics.
  • Attach the source to the lead or order itself, so every conversion traces back to the assistant or search that sent it.

Where AI search traffic shows up

Every visit an AI answer sends lands in one of three places, and each needs its own check.

Google Analytics assigns a session to its AI Assistant channel when the referrer matches Google’s list of AI assistants, with ChatGPT, Gemini, Deepseek, Copilot and Grok as its examples, and sets the medium to “ai-assistant” [1]. Clicks from Google’s own AI Overviews and AI Mode are left out of that channel: they count as Organic Search, together with the classic results [1]. Search Console reports them inside the Web search type [2] and, since 31 August 2026, in its Generative AI performance report, which shows the impressions your pages earn in those features by page, country and device [3].

The third kind carries no source at all. A link copied from an answer into a browser or a message arrives as a direct visit, and so does a visitor who reads about a brand in an answer and later types its address. Similarweb’s study of the downstream effect of AI visibility found that brands recommended in AI answers gained more direct visits and branded searches than brands the answers left out [4].

Where the visit startsWhere Google Analytics counts itWhere else to look
ChatGPT, Gemini, Copilot and the other assistants on Google’s listAI Assistant (medium “ai-assistant”)The referrer, kept with the visit on your server
Google AI Overviews and AI ModeOrganic SearchSearch Console: the Web search type and the Generative AI performance report
A link copied out of an answerDirectDirect visits and branded searches over time
A brand read about in an answer, then searchedOrganic Search or DirectBranded queries in Search Console

Why browser tags undercount it

A standard analytics tag runs in the visitor’s browser and keeps its memory of the visitor in cookies. Browsers keep cutting that memory short. Safari’s tracking prevention deletes every cookie created in JavaScript, and the other storage a script can write, after seven days without a visit to the site; when the visitor arrives through a link that carries tracking parameters, it caps cookies set by scripts on the landing page at 24 hours [5].

Consent cuts it further. In Google’s basic consent mode, Google tags do not load at all until the visitor answers the consent banner, and nothing is sent before they accept [6].

The result is a gap exactly where AI search sits. A buyer asks an assistant for a shortlist, visits three sites, and comes back a week later to buy. By then the browser has forgotten the first visit, and the sale is credited to Direct or to the last ad clicked, while the assistant that started it drops out of the record.

What server-side, cookieless measurement means

Server-side means the measurement code runs on a server instead of in the visitor’s browser. In Google Tag Manager’s server-side tagging, a server container receives the requests from the visitor’s device and turns them into events; it runs on a server you control, and only you have the data until you choose to send it on [7]. Google recommends serving it from your own first-party domain before it takes real traffic [7]. Edge services do the same job one step closer to the visitor: Cloudflare Zaraz loads analytics tools and advertising pixels at Cloudflare’s edge instead of in the page [8].

Cookieless means the setup works without an identifier stored in the browser. Google’s advanced consent mode works this way while consent is denied: the tags load, and send measurements without cookies until the visitor accepts [6]. For conversions, the Measurement Protocol sends events from your server straight to Google Analytics, server to server and offline included; Google built it to add to the tags, not to replace them [9].

This is the tracking I build: source-segmented, cookieless and server-side, across organic, paid, referral and AI-search traffic, with the data connected into Google Analytics and Looker Studio. I have done this hands-on for more than ten years.

How to set it up, step by step

  1. List the sources to separate: the assistants on Google’s AI Assistant list [1], plus any assistant your server logs show sending visits, each reported under its own name.
  2. Move collection onto your own domain: a server container on a first-party subdomain [7], or an edge service such as Zaraz [8], so your measurement loads as part of your site.
  3. Capture the source when the visit starts: the referrer and the landing page, read on the server, before any cookie can be lost.
  4. Attach that source to the conversion itself: pass it with the form, the booking or the order, so the lead record carries its first click.
  5. Send the conversion from your server: when the form or order completes, your server sends the event and its source to Google Analytics through the Measurement Protocol or the server container [9], and keeps its own copy.
  6. Respect consent: where the law asks for consent, ask for it, and use advanced consent mode so measurement continues without cookies while consent is denied [6].
  7. Report the three streams side by side in Looker Studio: AI Assistant sessions and conversions, Organic Search with Search Console’s Generative AI performance report beside it [3], and Direct, each with its leads and revenue.

Step 4 carries the most weight. A cookieless setup cannot link two visits days apart, by design; the lead record, which keeps the source of the visit that converted, is what joins the click to the revenue. The conversion tracking page shows how I run this for clients.

From AI visits to leads and revenue

Sessions say an assistant sent people; conversions say whether they were the right people. Google reports that clicks from results pages with AI Overviews are higher quality, with visitors more likely to spend more time on the site [2]. Measure that for your own site: conversion rate, lead quality and revenue per AI-referred session, next to the same numbers for search and paid.

AI visits often start a purchase rather than finish it, so assisted conversions matter as much as last clicks. On one program for an e-commerce brand, citations in AI answers for its buying guides drove 38% more AI-referred sessions and 19% more assisted conversions in 60 days, with the AI-referred traffic measured as its own source. Visibility is the other half of the picture: how often the assistants name and cite you, which I cover in how to measure AI search visibility.

A worked example: one month of AI search traffic

The firm and its numbers here are illustrative. A project management software company sees 310 AI Assistant sessions a month in Google Analytics and 6 trial signups from them. Its server logs show 520 visits with an AI assistant as the referrer in the same month, and its sales team keeps hearing “I found you through ChatGPT” from leads that Analytics credits to Direct.

The fix runs in three steps. A server container on a subdomain of its own site takes over collection. The referrer and landing page are captured at the first request and passed into the signup form, so each trial record carries its source. The signup is sent from the server to Google Analytics with that source. A month later the report shows 500 AI-referred visits, 17 signups traced to an assistant, and which assistant and which landing page sent each one: enough to decide which pages to build next.

Frequently asked questions

Does Google Analytics track traffic from ChatGPT?

Yes. When a visit’s referrer matches Google’s list of AI assistants, Google Analytics puts it in the AI Assistant channel with the medium “ai-assistant”. ChatGPT, Gemini, Deepseek, Copilot and Grok are among the examples Google gives.

Why do AI Overviews clicks not show in the AI Assistant channel?

Google counts clicks from AI Overviews and AI Mode as Organic Search, together with the classic results. Search Console’s Generative AI performance report shows the impressions your pages earn in those features by page, country and device.

Is cookieless tracking accurate?

It records the visits and conversions that reach your server, including those of visitors who refuse cookies or whose browser deletes them. What it cannot do is link two visits days apart without an identifier, so the source is attached to the lead or order itself.

Does server-side tracking replace Google Analytics?

It feeds it. The server container and the Measurement Protocol send events on to Google Analytics, and Google designed the Measurement Protocol to add to its tags rather than replace them. Your team keeps the reports it knows, with cleaner data in them.

Do I still need cookie consent with server-side tracking?

Where the law asks for consent, yes: moving measurement to a server changes where it runs, and the consent rules stay the same. Google’s advanced consent mode sends measurements without cookies while consent is denied, and the full data once the visitor accepts.

Sources

  1. Google Analytics Help, “[GA4] Default channel group”, read 29 October 2026. support.google.com
  2. Google Search Central, “AI features and your website”, last updated 10 December 2025. developers.google.com
  3. Search Console Help, “Generative AI performance report (Search)”, read 29 October 2026. support.google.com
  4. SparkToro, Rand Fishkin, “New Research from Similarweb: How AI Brand Mentions Influence Direct Visits & Traditional Search Queries”, 28 June 2026. sparktoro.com
  5. WebKit, “Tracking Prevention in WebKit”, read 29 October 2026. webkit.org
  6. Google Tag Platform, “Consent mode overview”, last updated 30 July 2026. developers.google.com
  7. Google Tag Manager, “An introduction to server-side tagging”, last updated 30 July 2026. developers.google.com
  8. Cloudflare, “Cloudflare Zaraz” overview, last updated 14 August 2026. developers.cloudflare.com
  9. Google Analytics, “Measurement Protocol”, last updated 8 June 2026. developers.google.com

Related insights

George Chrysochou

George Chrysochou

AEO, GEO, SEO Consultant

George Chrysochou is an AEO, GEO, SEO Consultant based in Paphos, Cyprus, with 13+ years in search. He builds his own AI search tooling, used by hundreds of SEO professionals worldwide, and led AEO and GEO at Calendly. He gets brands found, cited and recommended in AI search and on Google.

See where your brand stands in AI answers

The AEO and SEO Industry Report benchmarks it against up to 100 competitors across more than 50 AEO, GEO and SEO metrics, with a one-hour call to walk through it.

Connect on LinkedIn About the report