Google Analytics Document

Written by John on Monday, 21 February 2011
  1. Download and install Joomla plugin CodeIs Google Analytics.
  2. In Joomla Plug-in Manager, find System - CodeIs Google Analytics, and click the link.
  3. In CodeIs Google Analytics configuration page, input Web Property ID(UA-xxxxxxx-x) and enable the plugin. If you don't have a Google analytics account yet, you can register here, it is free.
  4. Clear the cache, and in the front site, you can find some JavaScript code like:
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-4973264-2']);
      _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> 
    
    UA-4973264-2 is the Web Property ID of codeis.com, your site may have a different one.