For both the list of Popular Searches and type-ahead suggestions in Autocomplete, we utilize the top 5,000 high quality (see below) suggestions from the search history for your site as logged by Searchspring's search tracking.
When fetching these top 5,000 suggestions, they are:
- Sorted by "Average Daily Queries" from the past 90 days.
- Example: If a query has been searched 125 times in the past 90 days, the "daily average" would be around 1.39.
- If there is a tie of "Average Daily Queries", the final sub-sort is alphabetical.
- There are 4,000 queries with at least 1.39 searches per day. All of these are included.
- The next 2,000 queries all have the same score of 0.50 searches per day. Only the first alphabetical half of these will be included to meet the 5,000 needed.
- The query "baseball caps" (score 0.50) will be included, but not "tee-shirt" (score 0.50), because it is in the second half alphabetically.
"High Quality" suggestions
In order to be considered as an autocomplete suggestion - a query must, in the past 90 days, consistently:
- Not be an Expanded Search
- Not have suggested a "Did You Mean?" to the customer
- Have had more than zero results
- Only include standard alphanumeric characters, spaces, slashes, single/double quotes, hyphens, periods, number signs, and percent signs.
- Be between 3 and 70 characters long (including spaces)
- Be no longer than 10 words
- Not have any words longer than 20 characters
- Except for words that have a comma and slash (to prevent blocking chemical names like "3,5-Dinitrobenzoyl"
Supplemented Suggestions from Google Analytics
If we haven't found 5,000 high quality suggestions from our own search data for the site, we will attempt to supplement the remainder from your site's Google Analytics account.
Queries fetched from Google Analytics must:
- Have more than 10 Unique Searches
- Have an Exit Rate lower than 75
These queries are sorted by Unique Searches, descending.
Normalizing the Suggestions
We then prune the suggestion set that has been gathered:
- Remove any queries that have had any zero result searches in the past 90 days.
- Remove duplicate queries
Because this pruning occurs after we fetch up to 5,000 queries, the final number of available suggestions may be lower than 5,000.