function trackSearchQuery()

in content/js/track-search-terms.js [33:44]


function trackSearchQuery(e){
  const searchHits = window.bookSearchIndex.search(input.value, 10);
  //Call Matomo's trackSiteSearch function to track the search query in its internal search tracking capability
  _paq.push(['trackSiteSearch',
      // Search keyword searched for
      input.value,
      // Search category selected in your search engine. If you do not need this, set to false
      false,
      // Number of results on the Search results page. Zero indicates a 'No Result Search Keyword'. Set to false if you don't know
      searchHits.length
  ]);
}