Skip to content

Engagement

Site search

Site search tracking records the searches visitors run in your own website's search box, including the words they typed. It shows what people came for and could not find from the navigation, in their own words.

Also called internal search, site search tracking, search terms report, view_search_results Updated

search usage = sessions with a search ÷ all sessions

How is it calculated?

Most sites put the search term in the results page’s URL, such as /search?q=refund+policy. An analytics tool reads that query parameter and records the term, either as part of the page address or as a separate search event.

In Google Analytics 4, per Google’s help page on enhanced measurement events, site search sends a view_search_results event when a results page loads with one of the query parameters q, s, search, query or keyword (you can add others), and puts the term in the search_term parameter, which fills the Search term dimension. A search that does not change the URL needs a custom event instead.

Example

  • 10,000 sessions
  • 14% search usage
  • 230 searches
  • 60% search again

A help centre has 10,000 sessions in a month and 1,400 include a search: 14% search usage. The top term is “cancel subscription” with 230 searches, and 60% of those searchers search again within the same session. The answer exists, but the result does not match how people ask, so the article gets a new title.

Common mistakes

  • Ignoring searches with no results. They are the clearest list of content you are missing.
  • Storing search terms without thinking about privacy. People type email addresses, order numbers and names into search boxes.
  • Looking only at volume. A term searched often and then refined is a failing result, which matters more than a popular term that works.

How CrispStats shows it

CrispStats has no dedicated site search report. By default it removes query strings from stored paths, so search terms are not collected. To track them, add your search parameter, such as q, under Query parameters in the site’s general settings and update the snippet, which then carries data-keep-params; results pages appear in the pages report as /search?q=.... Or send a custom event with the term as a property. Either way, keep in mind that visitors sometimes type personal data into search.

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.