When I took over the website of a regional museum, the navigation had been designed by committee. The main menu read: Visit, Explore, Learn, Support, About. Nobody on the committee could say with certainty what belonged under Explore as distinct from Learn.
I had been in the post a month before I thought to look at what people typed into the search box. The log went back two years and had never been opened.
The most frequent query, by a wide margin, was "opening hours". The second was "parking". The third was "cafe". Then "tickets", "prices", "dinosaur" and "toilets".
Every one of those was answered somewhere on the site. People were searching for them because they could not tell which of our five elegant words to click.
Why search logs are unusual
Most analytics is inference. A page view tells you that someone arrived, and you guess why. A search query is a statement. The visitor has written down, in their own words, what they are looking for at that moment.
It is unprompted, too. Nobody was asked a survey question that might shape the answer, so the language is theirs.
And it comes from people who were motivated enough to type. Studies of how people use websites generally find that most visitors try the navigation first and turn to search when browsing fails or looks unpromising. On many sites, then, the search log is in large part a record of navigation that did not work.
Getting the data
Most site search tools keep a log, and most analytics packages can record queries if told which parameter in the address carries the search term. For each search it is worth having the query as typed, the number of results returned, whether the visitor clicked a result and which one, and what they did next.
Queries occasionally contain personal information. People paste in email addresses and order numbers. Remove such entries, and keep the logs no longer than you need.
The shape of the list
Sort the queries by frequency and a characteristic pattern appears. A small number are very common. Then comes an extremely long list of queries that occurred once or twice each.
On our site the top 50 queries, out of more than 14,000 distinct ones, accounted for about a third of all searches. This is typical. Query frequencies follow a long-tailed distribution similar to the one that describes word frequencies in language.
The practical consequence is welcome. You do not have to read 14,000 lines. Reading the top hundred carefully tells you what a large fraction of searchers want. The information architect Louis Rosenfeld, who wrote the standard book on the subject, recommends exactly this as the place to begin.
Five things to look for
1. What the top queries have in common
Our top twenty were almost all practical: hours, parking, prices, food, how to get there. Not one concerned the things the organisation was proudest of, such as the research programme and the history of the building.
That told us what the home page was for. We put the opening hours, admission prices and address in plain view at the top of every page. Searches for "opening hours" fell by about four fifths in the following quarter, which is how you know that such a change has worked.
2. Queries that return nothing
A report of searches with zero results is the most actionable list a content team can have. Each entry falls into one of a few kinds.
A different word for something we have. People searched for "cafe" and our page was titled "Refreshments". They searched for "kids" and we said "Families and young people". They searched for "jobs" and we said "Work with us". The content existed and the vocabulary did not match.
The remedies are to use the visitors' word on the page and in its title, and to add synonyms to the search engine's configuration so that either word finds the page.
A misspelling. "Dinasaur", "exibition", "resturant". A search tool that does not tolerate spelling errors fails a meaningful share of users. Most can be configured to.
Something we do not have and should. A surprising number of people searched for "birthday party". We did not offer children's parties. The education team had been discussing whether there was demand, and the log settled the question with 340 searches in a year.
Something we do not have and never will. People looked for the exhibits of a different museum in the same city. A short page saying so, with a link, was the courteous answer.
3. Searches followed by nothing
Some queries returned results that nobody clicked. The visitor searched, looked and left, or searched again with different words.
This indicates that the results were poor even though they existed. For "tickets", our search returned forty press releases mentioning tickets before it reached the booking page. We set the booking page as a pinned result for that term. Most search tools allow this, under names such as best bets or promoted results, and for the top fifty queries it is worth doing by hand.
Repeated reformulation is a related signal. Someone who searches "membership", then "join", then "annual pass" is telling you three words that should all lead to the same place.
4. Where the search started
Knowing which page a person was on when they searched is illuminating. A burst of searches for "group booking" from the Visit page meant that visitors expected to find it there and did not. We added a link at that spot.
Searches from the home page tend to show what the site as a whole fails to signpost. Searches from deep within a section show local gaps.
5. Change over time
Queries are seasonal. "Half term" rises in February and October. "Christmas opening" starts in November. Laid out by month, the log shows when people begin looking for something, which is the time to have it prominent. We had been publishing holiday information about three weeks after the searches for it began.
A sudden spike in an unfamiliar query usually means that something has happened: a mention on television, a problem with a booking system, a rumour.
Grouping by intent
Individual queries become more useful when grouped by what the person is trying to do. I sorted our top 300 into a dozen groups: planning a visit, buying a ticket, finding something for children, a specific object or exhibition, school trips, venue hire, jobs, contact, and so on.
Counting searches in each group gave a ranked list of what our audience wanted from us. Planning a visit accounted for more than 40 per cent. We compared that with the proportion of the home page given over to it, which was about a tenth, and redesigned accordingly.
For a large log this grouping can be partly automated. Language models are good at clustering short phrases by meaning, and at proposing a label for each cluster. I would still read the top few hundred myself. The point of the exercise is to hear the audience's words, and a summary takes them away.
The words themselves
The most durable benefit was to our vocabulary.
Organisations name things from the inside. We had "Learning" where visitors said "schools". We had "Collections" where they said "what's on display". We had "Support us" where they said "donate". Every label had been approved by people who knew what it meant.
The search log is a free, continuous survey of what your audience calls things. Labels drawn from it are understood at once. They also match what people type into public search engines, so pages titled in visitors' language are more likely to be found from outside.
We rewrote the navigation: Plan your visit, What's on, Schools, Venue hire, Join and donate, About us. It is less elegant than the old one. Use of the search box fell by a third, and I count that as a success.
Limits
A search log is strong evidence about a particular group. It does not represent everyone.
People who search are those who chose to. Visitors who found what they wanted by browsing, and those who gave up without searching, are absent.
Queries are short, often one or two words, and can be ambiguous. "Membership" might be someone wishing to join or a member looking for their benefits.
And small sites may have too few searches to show a pattern. A few hundred a month is enough to begin.
A quarterly hour
The routine I settled on takes about an hour, four times a year.
- Export the quarter's queries with counts and result numbers.
- Read the top 100. Note anything new.
- Read the top 50 with zero results. For each: rename, add a synonym, write the page, or accept.
- Check the click-through on the top 20. Pin a best result where needed.
- Compare with the same quarter last year.
- Send the three most interesting findings to the people who write for the site.
People enjoy that last step more than I expected. Hearing that 340 people asked for something you do not offer is more persuasive than any amount of internal debate. The committee that designed the original menu could have used the same information, which had been sitting in an unopened file for two years.



