A question on the e107.org forum was posed recently asking whether there was a plugin that could record the internal search terms entered on an e107 site. Now maybe there is – I dont know! It wouldnt be hard. You could create an e_META file that checks e_QUERY when on the search page for a “q=” term and then logs it. You’d then have to write some reports off that data to make it worthwhile. Remember, we are not talking about the search terms entered into Google. The e107 core stats module already tracks and reports on these!
But why not just use Google Analytics!
Installing Google Anlytics in the e107 CMS
There may be some plugins around that help with this, but I always do it the manual way. Simply open up your theme.php file and at the top enter the script supplied to you on the analytics site. The trick here is to ensure you handle the quotes correctly. I chose to assign the script code to a variable and then escape the ” characters with a backslash:
? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” +
gaJsHost + “google-analytics.com/ga.js’ type=
(“[b]ENTER YOU TRACKING CODE HERE[/b]”);
This variable then needs to be inserted right at the end of each $FOOTER and $CUSTOMFOOTER section.
<html template code>$ganal
Switch on Search Term Tracking
First log into you analytics account and on the front page select edit for the website profile you wish to update.
You now need to set it up for e107. The search term is stored in a parameter “q” and search categories (news, forum, downloads, etc) are stored in “t”.
Now you just need to wait for Google to collect the stats information and you can see it under the content page.