Search Console never says which person searched what, and analytics never sees the query. Join them by landing page and date: queries that showed the page, next to Google visits that started there and what those visits did.
Why a query cannot be tied to a visitor
Analytics does not receive the query. When someone clicks a result and lands on your site, the browser may send a Referer header describing where they came from. Under the default policy, strict-origin-when-cross-origin, a cross-origin request sends only the origin, not the path or query string. So at best your analytics sees that the visit came from Google, with nothing about the search itself.
Search Console does not describe individual people either. Its Performance report gives counts of clicks and impressions grouped by dimensions such as query, page, country and device. Some queries are left out to protect privacy: those not issued by more than a few dozen users over a two-to-three month period are omitted from the tables, though they stay in the chart totals. There is no visitor ID to join on. See Search Console data limits.
Any tool that claims to show "the keyword that led to this sign-up" is guessing. The two sources share only the page and the day. For the same idea beyond search, see page-level analytics.
What the join gives you
For each landing page, you can put these side by side:
Swipe sideways to see the whole diagram.
The diagram as a list
- Search Console gives clicks and impressions for each page and day.
- Analytics gives Google organic visits and sign-ups for each entry page and day.
- Joining on page and day gives one row per page with all four numbers.
- The queries sit beside the row as evidence about the page, not about a person.
- the queries that showed the page, with their clicks and impressions (Search Console);
- the number of visits from Google organic that started on that page (analytics);
- how many of those visits signed up, bought or reached another goal (analytics).
Build the join step by step
1. Pull Search Console by page and date
Use the Search Analytics API with page and date as dimensions. Set aggregationType to byPage, which aggregates data by canonical URL, and type to web. A request body looks like this:
{
"startDate": "2026-09-01",
"endDate": "2026-09-30",
"dimensions": ["page", "date"],
"type": "web",
"aggregationType": "byPage",
"rowLimit": 25000
}
Page through the results by raising startRow until a response returns 0 rows. Google's guide to getting performance data recommends one query per day of data, which stays inside the quota.
Then run a second pull with page and query as dimensions, for the whole period rather than per day. This one is for the query lists. Google warns that grouping by page and query may drop some data, so the page totals from the first pull are the ones to trust for counts.
2. Normalise URLs on both sides
Search Console reports canonical URLs. Your analytics records the URL the visitor actually landed on. These often differ. Reduce both to a path with the same rules:
| Difference | Rule |
|---|---|
| Protocol and host | Drop them, or keep only the host you care about |
| Trailing slash | Pick one form and apply it everywhere |
| Query strings | Remove tracking parameters such as utm_source; keep only parameters that change the content |
| Fragments | Drop anything after # |
| Case | Lower-case the path unless your server treats case as significant |
| Canonical versus landing | Map duplicate or parameterised landing URLs to their canonical page |
The last row needs your list of canonical URLs, which a crawl or your sitemap will give you. Pages that do not match after this step are worth checking by hand: they often show a redirect or a duplicate you did not know about.
3. Take Google organic sessions, grouped by entry page and day
In analytics, filter sessions to those whose source is Google and medium is organic. Group them by entry page (the first page of the session) and by day. For each group, count the sessions and the sessions that reached your goal.
4. Join on page and day
Join the two tables on normalised path and date. Use a full outer join: a page can have impressions and no tracked visits, or visits with no Search Console row, and both facts are useful.
5. Attach conversions to the entry page
Credit each conversion to the session's entry page, not the page where the form was submitted. That keeps the question simple: of the visits that began here, how many ended well?
6. Show top queries beside the numbers
For each page, rank its queries by clicks and show the top 3 to 5 next to the page's clicks, visits and conversions.
Here is the whole thing in generic SQL. The table and column names are illustrative: gsc_page_day holds the daily Search Console pull, gsc_page_query the period pull, and sessions your analytics sessions.
WITH gsc AS (
SELECT page_path, day,
SUM(clicks) AS clicks,
SUM(impressions) AS impressions
FROM gsc_page_day
GROUP BY page_path, day
),
visits AS (
SELECT entry_path AS page_path, session_day AS day,
COUNT(*) AS visits,
SUM(CASE WHEN converted THEN 1 ELSE 0 END) AS conversions
FROM sessions
WHERE source = 'google' AND medium = 'organic'
GROUP BY entry_path, session_day
)
SELECT COALESCE(g.page_path, v.page_path) AS page_path,
COALESCE(g.day, v.day) AS day,
COALESCE(g.clicks, 0) AS clicks,
COALESCE(g.impressions, 0) AS impressions,
COALESCE(v.visits, 0) AS visits,
COALESCE(v.conversions, 0) AS conversions
FROM gsc g
FULL OUTER JOIN visits v
ON g.page_path = v.page_path AND g.day = v.day;
And the query lists, ranked within each page:
SELECT page_path, query, clicks
FROM (
SELECT page_path, query, SUM(clicks) AS clicks,
ROW_NUMBER() OVER (
PARTITION BY page_path ORDER BY SUM(clicks) DESC
) AS rank_in_page
FROM gsc_page_query
GROUP BY page_path, query
) ranked
WHERE rank_in_page <= 5;
In a spreadsheet, the same shape works with two tabs and a lookup on the normalised path.
Why clicks will not equal visits
Expect the two numbers to differ, often by a lot. Google's help page on differences between Search Console and other tools lists the reasons:
- Search Console removes duplicates and visits from robots, and analytics may count differently.
- Tools such as Google Analytics track only visitors who have JavaScript enabled.
- Privacy filtering hides rare queries, and Search Console stores top rows rather than all rows.
- Data can take 2 to 3 days to appear.
On your side, add consent banners that stop the script, blockers, and pages where the tracking script failed to run. None of these is a bug in the join. They mean you should compare ratios and trends for the same page over time, not demand that clicks equal visits. A page whose visits-to-clicks ratio suddenly falls may have a broken script or a slow load.
Align the time zones
Search Console days run on Pacific Time. The API states that dates are in PT (UTC - 7:00/8:00), and the help page says the report tracks daily data by local time in California, while Google Analytics shows the site owner's local time zone. Other analytics tools may use UTC or a zone you set.
Check the time zone of each source, then either convert one side to match or compare weeks instead of days. Weekly totals smooth out most of the mismatch, and Search Console offers weekly and monthly granularity for the same reason. Also leave out the most recent 2 to 3 days, because Search Console data is not final yet.
Do not trust small numbers
A page with 4 visits and 1 sign-up does not have a 25% conversion rate. It has 1 sign-up. A 95% Wilson interval for 1 out of 4 runs from roughly 5% to 70%, which says almost nothing.
Two habits help:
- Show the number of visits behind every rate, so a reader sees that "25%" rests on 4.
- Below a threshold, show the count instead of the rate. Pick a threshold you can defend, such as 10 visits, and fade rates that rest on fewer than about 30.
The Wilson interval behaves well at small counts: add it as low and high columns, and sort by the lower bound for a list of pages you can trust.
Add AI assistant visits to the same row
Add one more column: visits from AI assistants such as ChatGPT or Perplexity, so one row shows both routes in. Counting them is covered in AI assistant traffic in analytics.
How Lundot handles this
The page report puts Search Console clicks, AI requests and visits on one row per page, after each source is counted. Rates show a sample size and a 95% interval. Connect Search Console. Lundot does not show the query of an individual visitor, because that data does not exist. See how Lundot measures.
Sources
- MDN: Referrer-Policy header, last modified 4 September 2026
- Google Search Central Blog: A deep dive into Search Console performance data filtering and limits, 19 October 2022
- Google for Developers: Search Analytics: query, last updated 11 August 2026
- Google for Developers: Getting your performance data, last updated 28 August 2025
- Search Console Help: About Search Console data, read 22 October 2026
- Search Console Help: Performance report (Search results): Overview and basic setup, read 22 October 2026