Did you realise that Analog CE can report in searches made through internal website search engines as well as external ones? This article discusses how to connect the WordPress search function to the Analog CE Internal Search Reports.
Keeping an eye on your users
Knowing what your users are searching for should be a core part of your SEO strategy. The Analog CE Internal Search Query and Internal Search Word reports can be a useful tool in understanding user interest and habits.
Analog CE’s two Internal Search reports are disabled by default. To enable them, you must edit your site config file. If you are using a Global/Site config file structure, you should use the local site config file. Not the Global config file. The exception should be if your Analog CE install is being used for WordPress web-farming.
Edit your Analog CE configuration file
Before you can edit the config file you must know the path to your WordPress install. The path should be relative to the root domain of your website.
Tip: Locate the xmlrpc.php, wp-config.php and wp-cron.php files for your install on your web server. This is the root folder of your WordPress installation.
For example. Assuming that your root domain is
- If your wp-config.php is located at
www.mysite.com/wp-config.php, your Internal Search Engine Path is “/”.
- Alternately, if your wp-config.php is found at
www.mysite.com/blog/wp-config.php, your Internal Search Engine Path is “/blog/”.
Edit your Analog CE configuration file by adding the following lines:
INTSEARCHQUERY ON INTSEARCHENGINE <Internal Search Engine Path> s INTSEARCHQUERYFLOOR 10r INTSEARCHWORDFLOOR 10r
INTSEARCHQUERY ON INTSEARCHENGINE / s INTSEARCHQUERYFLOOR 10r INTSEARCHWORDFLOOR 10r
This config sample will:
- Enable the report
- Tells Analog CE how to find the search term (the user provided value of ‘s’)
- Sets the Search Query report to only show searches that occur 10 or more times
- Configures the Search Word report to only show keywords that occur 10 or more times
The next time Analog CE runs, you will have “Internal Search Query Report” and “Internal Search Word Report” sections. If you are running Report Magic, they will be at the bottom of the side-navigation.