Analytics & Testing, WordPress

WordPress: Track Site Searches with Google Analytics

Google Analytics has a nice feature, the ability to track internal searches on your site. If you’re running a WordPress blog, there’s quite a simple way to set up Google Analytics Site Search:

  1. Select your site in Google Analytics and click Edit.
  2. Navigate to a view in which you want to set up Site Search.
  3. Click View Settings.
  4. Under Site Search Settings, set Site Search Tracking to ON.
  5. In the Query Parameter field, enter the word or words that designate an internal query parameter, such as “term,search,query”. Sometimes the word is just a letter, such as “s” or “q”. (WordPress is “s”) Enter up to five parameters, separated by commas.
  6. Select whether or not you want Google Analytics to strip the query parameter from your URL. This strips only the parameters you provided, and not any other parameters in the same URL.
  7. Select whether or not you use categories, such as drop-down menus to refine a site search.
  8. Click Apply
Download a Sponsored Marketing Whitepaper:
B2B Marketer's Guide to Account-Based Website Personalization

B2B Marketer's Guide to Account-Based Website Personalization

70% of B2B buyers cite your website as the most influential channel to identifying top vendors, yet only 45% stay on your site more than 15 seconds. Download Now


  1. 1
  2. 2
  3. 3

    Thanks for the Tip! I had installed this a few days ago and was unsure of the search parm’s and was wonder why it was not reporting yet. You addressed both issues!

  4. 4