BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

Site search: The site: operator and on-site search

Site search means two things: Google's site: operator, which shows indexed pages from one site, and the search box on your own website. How to use both.

Monthly searches · site search
4.4k
Keyword research data
site search
Site search: The site: operator and on-site search
Click the image to view it full size

People who look up "site search" usually want one of two things:

  • The site: operator in Google, which limits results to one website. SEOs use it for quick checks of what Google has indexed.
  • The search box on a website, which lets visitors search that site's own pages. Its search logs tell you what visitors look for.

This article covers both, starting with the operator.

The site: operator in Google

Type site: followed by a domain, a URL or the start of a URL, and Google shows only results from that place (Google Search Central):

Query What it shows
site:example.com Indexed pages from example.com and its subdomains, such as www.example.com and shop.example.com
site:https://example.com/blog/ Pages whose URL starts with that prefix
site:https://example.com/blog/cold-brew Whether that one URL is indexed and showing
site:example.com lemon Which pages on the site can show for the word "lemon"
site:example.com viagra casino Spam that may have been injected into your site

It's one of several Google search operators, and you can combine it with others, such as quotation marks for an exact phrase.

What the site: operator can't tell you

Google built the operator for searchers, not for auditing, and says so. Keep three limits in mind:

  • It isn't a full list. The results don't necessarily include every indexed URL, and big sites shouldn't expect to see them all. Don't read the result count as your number of indexed pages.
  • Without a search term, the order means nothing. Google generally shows the shortest URL first, and the rest in a relatively random order. Add a term if you want to see which pages rank for it.
  • Small differences in the query change the answer. site:https://www.example.com and site:https://example.com/ don't return the same results.

When a page is missing from a site: search, check it with the URL Inspection tool in Search Console, which tells you whether that URL can be indexed and lets you request indexing. For counts across the whole site, use the Page indexing report instead of the operator.

Search on your own website

The second meaning is the search feature on your site: a search box, a results page and the index behind them. Most content management systems include basic search, and hosted services and Programmable Search Engine let you add one without building it yourself.

For SEO and content work, the valuable part is the record of what people type.

Track what visitors search for

Each search on your site is a visitor telling you, in their own words, what they expected to find. Frequent searches with no good result point to a content gap; frequent searches for something you do have suggest it's hard to reach from your navigation.

Google Analytics 4 can record these searches automatically. With enhanced measurement turned on, it logs a view_search_results event when a results page URL contains one of these query string parameters: q, s, search, query or keyword. If your site uses a different parameter, add it in the settings. The words people searched for appear in the Search term dimension (Google Analytics Help).

Keep internal results pages out of Google

Your own search results pages rarely make good landing pages from Google. They mostly repeat content that lives on other pages, and every possible query creates another URL. A common approach is to add a noindex rule to results pages so they stay out of search results. Google can only see that rule if the pages aren't blocked in robots.txt, so don't block them there as well.

Make the results useful

A few checks catch most problems with on-site search:

  • Search for your top products or topics and confirm the right page comes first.
  • Try common misspellings and plural forms.
  • Make sure new pages show up in results soon after you publish them.
  • Give "no results" pages a way forward, such as popular categories or a contact link.
Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.