Track site search is very important when you want to know your visitor searching in your website or eCommerce site.
What is track site search?
At Webbit, we use WordPress as our clients WordPress projects, 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.
Step 1: Log in to Google Analytics
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.
Step 2: setup track site search setting
Once that page is loaded, scroll down and find the “Site Search Settings“. If the slider is showing “OFF“, change it to “ON“.
Step 3: Add Query Parameter
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!