Home / Joomla Tips & Tricks / Joomla Statistics - Don't Turn Your Database Into Another Statistic 
Joomla Tips & Tricks
Feb
12
2007
Joomla Statistics - Don't Turn Your Database Into Another Statistic
Written by Steve Burge   
Avatar

During the last couple of weeks a new client has been complaining to us that their site was always running slow and timing out. The problem got so bad that they asked us to move it from their hosting company to ours in the hope that things would improve.


Over the weekend I had the pleasure of moving the site. There was only one problem - it had had a Joomla statistics component running inside it for over a year. The database was, without exaggeration, about twenty-five times the normal size of a Joomla database. It took several minutes to download the tables from PHPMyAdmin and then the fun was just beginning. Actually trying to upload such a huge file left the server hanging every time. The only way to upload the database was to edit it into small sections and run the queries secion by section. 


I can't guarantee that 100% of the website's speed problems had been caused by the statistics component but the extra database tables were so large and cumbersome that they undoubtedly caused some drag on the site.


The statistics collected by the component were reasonably useful, particuarly when it came to tracking the actions of individual users, but that benefit was more than outweighed by the performance problems it caused.

Four Hints for Collecting Statistics on Your Joomla Site:

  1. Turn off Joomla's default statistics package except for "Log Search Strings" (its useful to know what people are searching for).
  2. Don't use JoomlaStats, BSQ Sitestats or anything else inside of Joomla. Let someone elses' servers store your mountains of data.
  3. Sign up for Google Analytics and put the code at the bottom of your template, above </body>
  4. Use a hosting company that utilizes CPanel and AWStats. Old and somewhat ugly, AWStats is still a great source of data.


For larger companies there are commercial solutions such as Indextools, but small to medium size sites should be able to do a good job of tracking their visitors and conversions with Google Analytics and AWStats, without spending a cent and without turning their database into an 500 hundred pound elephant.


 

Comments  

 
#1 LocaLiceR 2007-02-13 02:50
Really, database driven statistics inflate the database. It should be a serious problem in the case of a size limited database and for sites with high traffic.

In addition to your suggestions I would mention such tools like WebLog Expert (www.weblogexpert.com/) by Alentum Software. These products can access the web server log and generate the statistics using it.
Quote
 
 
#2 Dawn 2008-09-21 12:51
I'm amatuer Joomla user. Our website is running much slower than when I first created it. How do you turn off the statistics package, and how do you check to see if our databases are too large? Thank you!
Quote
 

Add comment


Security code
Refresh