# Search Console

Connect Google Search Console to see the queries, pages and countries that bring people to your site from Google search.

The Search page shows the words people searched on Google before they reached your site, with clicks, impressions, click-through rate and average position for each query, page, country and device. Google keeps the search out of the link people click, so no analytics script can see it. The numbers come from Google Search Console instead, the same place Google Analytics gets them. Search Console comes with Insight and Foresight.

## Connect Search Console

1. Open your site's settings, then **Search Console**. Owners and admins see **Connect Google**.
2. Pick the Google account that can read your site in Search Console. Google asks you to allow read-only access to Search Console data.
3. Back on the settings page, check the property. We pick the one that matches your domain, a domain property such as `sc-domain:example.com` first, then a URL-prefix one such as `https://example.com/`. Pick another from the list if you need to.

A site reads one property at a time. Switching to another property drops the old property's numbers and reads the new one's history.

A domain property covers every subdomain. A site on `blog.example.com` that reads `sc-domain:example.com` counts searches for the whole domain, so pick the URL-prefix property `https://blog.example.com/` to count only the blog. When no property matches your domain, the settings ask you to pick one, and nothing is read until you do.

Your Google account must have access to the property in Search Console, as an owner or a full or restricted user. An account Google lists as unverified for a property cannot read it.

## What we read

The first read brings in up to 16 months of history, Google's limit, or your plan's history if that is shorter. The newest days show within a few minutes, and older ones fill in over the next hour.

After that we read once a day, and read the last 4 days again, since Google settles each day's numbers 2 to 3 days later. The date range ends on the last day Google has reported, not on today, and the page names that day. Search Console counts days in Pacific time, so a day there may not match a day in your site's time zone.

Google leaves rare queries out of its query lists to protect the people who searched them, so the queries on the page add up to less than the totals, which include them.

## The page

- **Clicks, impressions, click-through rate and average position** for the range, with an arrow against the period before. A lower position is better, so an arrow down on position is good news. Click one to draw it on the chart.
- **The chart** shows the picked number by day, or by week over 12 months, with your [annotations](/docs/tracking/annotations) marked.
- **Queries, Pages, Countries and Devices.** Click a query to see the pages, countries and devices it brought, and click a page to see the queries it shows up for. Click it again to go back.
- **Landing pages from Google** sets Google's clicks beside the visits we counted from Google search on the same pages and days, with their bounce rate and goal conversions. The two counts rarely match. Google counts a click even when the page never loads, and the script counts a visit only once the page runs it.

Google never says which visitor searched which query, so conversions per query do not exist. With a query picked, the landing table still counts every visit from Google to those pages.

The date range and the page, entry page, country and device filters apply to the page. Search Console has no browser, goal or other visit detail, so with such a filter on, the cards gray out and say which filter they leave out.

The **Keywords** tab beside Sources on the Overview lists the top queries for the range. Click one to open it on the Search Console page.

## Paid keywords

Ads tagged with `utm_term` already show their keyword under UTM term in Explore, the query API and exports. Google Ads tags visits with `gclid` instead, so add the keyword yourself. In Google Ads, open your account's settings and set the **Final URL suffix** to:

```
utm_term={keyword}
```

Google fills in the keyword of each click, and it shows under UTM term from then on.

## Disconnect and clear

**Disconnect** in the site's settings revokes our access at Google and stops the daily reads. The data already pulled stays in the reports until you clear it, or until it is older than your plan's history. **Clear data** deletes it from the reports within a minute.

If the member who connected Google leaves the organization, or Google stops accepting the connection, the reads stop and owners and admins get a notification to connect again. On Glance the reads stop too, and the data comes back when you move to a paid plan.

## The query API and agents

`GET https://api.ultanimus.com/v1/sites/{id}/search` with a key that can read stats returns the same report as the page. It takes `range`, `from` and `to`, `compare`, and filters as `f=query:pricing`, `f=page:/pricing`, `f=country:DE` or `f=device:mobile`, with `!` before a filter to leave its value out. AI agents connected over MCP can call `get_search_queries` for the top queries.

## What we keep

We keep the clicks, impressions and position Google reports per day, query, page, country and device, and Google's daily totals, for your plan's history. We store the Google account's email to show owners and admins which account is connected, and the access Google grants, encrypted. Other members never see the email. We use the data only for your site's reports, never to train AI and never outside your organization, as Google's API Services User Data Policy requires.

## Self-hosting

Search Console needs a Google OAuth client of your own. Until both keys are set, the dashboard says Search Console is coming soon.

1. In Google Cloud, create a project, turn on the Google Search Console API, and set up the OAuth consent screen.
2. Create an OAuth client of the type **Web application**, with the redirect URI `https://your-domain/api/v1/search/google/callback`.
3. Set `SEARCH_CONSOLE_CLIENT_ID` and `SEARCH_CONSOLE_CLIENT_SECRET` on the api and the worker, beside `ENCRYPTION_KEY`, and restart them.

Read-only Search Console access is a sensitive scope, so Google verifies the app before anyone outside your test users can connect.
