This is a video and guide on how to track what people are searching for on your own website using Google Analytics
Below that you will see Query parameter. for this step we will use an example from the Littledata blog.
For the query, we will take part of the url that is associated with the page that we are trying to track. For example in our blog we search for 'report' and in the url we will see that s=report. The query is everything that is after the question mark and before the equals.
Enter the query in Google analytics and check off Strip query parameters out of url. What that will do is just clean up the mess when it appears in Google Analytics.
Click Save.
For more information about site search tracking, take a look at our blog!