BigQuery SQL for Search Console Image and Video Exports
When you report page-level results from Google Search Console’s Image and Video tabs, you query searchdata_url_impression and filter search_type to image or…
When an AI product displays a link to your page inside an answer, it creates an AI citation. When a person clicks that link and lands on your site, they create an AI referral. An AI product can cite your page without anyone clicking through, and a visitor can arrive from an AI product without leaving a trace of which product sent them.
Google Analytics 4 (GA4) records incoming visits and whatever source data reaches your site during them. It does not track every time an AI product lists your page as a source. To investigate incoming visits, check GA4 alongside your server logs, which record the raw requests your server receives. To confirm that an AI product cited your page, rely on a record from the AI product itself or a direct observation of its answer. When a visit arrives with no identifiable source, treat it as unknown.
Three separate events happen between a citation and a recorded visit. First, an AI product selects your page and displays a link to it. That display happens inside the AI product and sends no traffic to your site. Second, a person may click the link. Their browser or app then sends a request that may include a referring URL, a tracked URL parameter, both, or neither. Third, your server and your analytics tag receive that request and record only the details that arrived.
For example, ChatGPT Search can show links to relevant sources. That feature confirms ChatGPT Search can display a citation link, though it tells you nothing about whether anyone clicked it. On the other side, GA4’s traffic-source fields describe visits and session attribution. They cannot tell you which answer, source card, or citation position a visitor saw.
These GA4 fields and server records answer different questions:
| GA4 field or record | What it tells you | What it cannot establish alone |
|---|---|---|
page_referrer or the Page referrer dimension |
The referring URL GA4 received for a page event, usually pulled from the browser’s document.referrer. |
Whether that URL contained a citation to your page or which link a person clicked. |
| Session source, Session medium, and Session source / medium | How GA4 attributes the session. Use these to see what GA4 classified as the source for that visit. | The exact AI answer or citation that prompted the visit. |
| Landing page and Landing page + query string | The first page in the session, including query parameters when they are available. | The source when both the referrer and campaign parameters are missing. |
page_location |
The page URL GA4 recorded for the event, which you can compare with the requested URL in your server logs. | The preceding answer or the contents of a citation panel. |
BigQuery session_traffic_source_last_click |
GA4’s processed, session-level last-click traffic attribution, including manual campaign source and medium where applicable. | An independent raw record of every navigation detail. |
| Server or CDN request log | Depending on your setup, the requested path and query string, timestamp, user agent, and incoming HTTP Referer header. |
What appeared on the visitor’s screen or whether they clicked a specific citation. |
Google documents page_referrer as the full referring URL and notes a 420-character limit for the field. Its GA4 dimension documentation also distinguishes session-scoped acquisition fields from first-user fields. If you want to know what sent a specific visit, check session source dimensions instead of First user source / medium, which records how GA4 originally acquired that user.
If you query raw data in a warehouse, Google documents session_traffic_source_last_click as session-level attribution in its BigQuery traffic-attribution documentation. Treat that field as GA4’s processed attribution. When you debug how a request arrived, compare it against event parameters and your own first-party request logs.
When GA4 records an AI product’s domain in page_referrer and your server log shows the same incoming Referer header, you have strong evidence that the request arrived with that source data. Under a documented reporting rule, you can classify that visit as AI-referred. Even then, those records do not prove your page appeared in a specific answer.
A campaign parameter, which appends tracking data to a URL, can strengthen your attribution. OpenAI states that URLs from ChatGPT search results include utm_source=chatgpt.com. When that parameter survives navigation and GA4 captures it, the session carries a ChatGPT-specific marker. That marker shows which landing URL GA4 attributed to the session, though it still cannot tell you which answer or citation the visitor saw. A person can also copy and share that tracked URL somewhere else, so the parameter alone cannot guarantee where the click originated.
Google’s default channel grouping sorts traffic into standard categories and includes an AI Assistant channel for qualifying traffic from recognized AI assistants. The default channel documentation explains how Google classifies those visits, though it never counts citations that go unclicked. If you want to build your own grouping, Google’s custom channel instructions let you write rules around source values. Inspect the source values in your property and document your rules, because broad domain-name patterns can pull in traffic you did not mean to count.
To report a citation, you need a record from the AI product or a reliable observation showing your URL in an answer’s source list. That evidence confirms the citation appeared, while visit records are still required to show a click or landing request. For more on inspecting answer-side evidence, see how to inspect AI answer sources and inline citations.
When a request arrives without a referrer, you cannot tell whether an AI product sent or influenced the visit. Browsers enforce referrer policies, which are rules that control how much of the previous page’s URL they pass along, and those rules often limit or strip referrer data. The W3C Referrer Policy specification details how those behaviors work.
GA4 labels traffic without a clear referral source as (direct) / (none). In its guidance on direct and none traffic, Google lists common causes including untagged links, redirects that strip URL parameters, URL shorteners, offline documents, and ad blockers. None of those causes point to an AI product. A spike in direct sessions, the topic of the page, or timing that lines up with an AI citation still leaves the true source unknown.
Keep these visits in an unknown or unattributed bucket unless another reliable record identifies the sender. Moving them into an AI referral category based on suspicion will corrupt your reporting.
Report AI-referred sessions and AI-cited appearances in separate views. Count a referral when GA4 session data supports the source classification, and record the landing page along with any campaign marker that survived in the URL. Count a citation only when a product record or direct observation confirms your page appeared. Never use GA4 sessions as a stand-in for citation counts.
Separate your conversion reporting as well. A conversion tied to an AI-referred session answers a different question than a citation impression, and the total depends on which attribution rule you apply. State that rule clearly in the report so readers understand what the number measures.
If you track Google AI Overviews, Search Console counts a click on an external link inside an overview as a click in its search-performance report. That data is useful evidence from a separate tool, though it still does not turn GA4 into a log of every time your page appeared in an AI answer. See Google’s explanation of Search Console clicks and impressions for details.
When you suspect an AI product sent a visit, start with the raw request that hit your server and compare it against GA4’s processed session attribution:
Referer header, and user agent. This shows what reached your server, though keep in mind that a header can be missing or sent by a non-browser client.page_location and page_referrer on the session’s first page event. Verify that your tag does not override page_referrer or set ignore_referrer=true, which Google notes in its GA4 configuration reference will stop the referrer from showing up as a traffic source.Following these steps keeps your labels accurate. Mark a visit as AI-referred when the visit records back it up, log a citation when answer-side evidence confirms it, and leave everything else as unknown. For warehouse-specific analysis, see querying AI referrals in GA4 BigQuery.
Article setup: technical explainer: direct mechanism (private trial 2026-10-04). The records below are hypothetical examples rather than trial results.
| Hypothetical record | Defensible interpretation |
|---|---|
A landing request contains utm_source=chatgpt.com, and GA4 records the landing page with an AI Assistant session classification. |
Evidence of a session with a ChatGPT-marked URL, subject to your attribution setup and the URL’s provenance. It does not identify a specific citation. |
| A page appears in an AI answer’s source list, and no landing request or GA4 session follows. | Evidence of a citation if the observation is reliable. No referral visit is recorded. |
A landing request and GA4 event have no referrer or preserved campaign parameter, and GA4 reports (direct) / (none). |
An unattributed visit. These records do not support labeling it AI-referred. |
A server log shows an AI-product Referer, and GA4 has no matching session. |
Evidence that a request reached the server carrying that header. Check tagging, consent, filtering, redirects, and whether the request came from a human visitor. It does not establish citation display. |
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com