WordPress: Track Site Searches with Google Analytics

Depositphotos 12483159 s

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


  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

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.