At Webbit, we use WordPress as our clients CMS project, and while far from perfect, the built-in search is good enough.
When a user searches, WordPress using a URL structure as below:-
That query variable makes tracking site searches from WordPress in Google Analytics very easy.
Login to Google Analytics and go to the Admin button. Find the property and select the view you want to edit.
Click on the “View Settings” link for that property.
Once that page is loaded, scroll down and find the “Site Search Settings“. If the slider is showing “OFF“, change it to “ON“.
Once changed it, you see some additional menu items appear. For WordPress, it’s very simple, just enter the letter “s” in that box. They look like below here:
That’s it, you’re good to go. Allow Google Analytics a day or so to gather up some search terms and you have data on what your users are searching for. You can use that data to determine if you’re having navigation issues, content strategy and much more. Enjoy!