Tracking WordPress site searches in Google Analytics - Tracking WordPress site searches in Google Analytics

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:-

https://www.webbit.com.my/?s=term

That query variable makes tracking site searches from WordPress in Google Analytics very easy.

Step 1

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.

site seach01 - Tracking WordPress site searches in Google Analytics

Step 2

Once that page is loaded, scroll down and find the “Site Search Settings“. If the slider is showing “OFF“, change it to “ON“.

site seach02 - Tracking WordPress site searches in Google Analytics

Step 3

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:

site seach03 - Tracking WordPress site searches in Google Analytics

Step 4

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!

site seach04 - Tracking WordPress site searches in Google Analytics