Joomla Site Analytics

  • PDF

Website Analytics

Website analytics are a critical component of a successful website - with analytics you can tell why people are coming to your site.  What they are finding useful at your site.  Where people are finding out about your site.  And a range of other useful information.

There are a large number of analytics tools including:

  • Webtrends
  • Omniture
  • Webalizer
  • Google Analytics

and a few Joomla Specific extensions:

  • JoomlaStats
  • AstatsPro
  • Entana Statstics
  • BSQ Sitestats

Google Analytics

Google analytics is a great analytics tool.  It is also free.  (However, Google does have access to your sites data - so make sure this tradeoff is OK with your client.)

To install Google Analytics you will need to sign up for an account.  Then you will need to tag your template's index.php with the google tracking javascript.  It looks like this:

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>

Where the 'UA-xxxxxxx-x' is a the unique tracking code for your website.

This does a great job tracking page visits and overall stats - to track downloads and not track your own visits take a look at the extension at extensions.joomla.org.

A very useful Joomla plugin is the one published by WebGuru look at this to see a well written and functional plugin.