Analytics & Testing

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

Douglas Karr

Douglas Karr is a fractional Chief Marketing Officer specializing in SaaS and AI companies, where he helps scale marketing operations, drive demand generation, and implement AI-powered strategies. He is the founder and publisher of Martech Zone, a leading publication in marketing technology, and a trusted advisor to startups and enterprises… More »
Back to top button
Close

Adblock Detected

We rely on ads and sponsorships to keep Martech Zone free. Please consider disabling your ad blocker—or support us with an affordable, ad-free annual membership ($10 US):

Sign Up For An Annual Membership