Update
2008-11-08 Version 1.3.0 released with German, Portuguese and Brazilian translations available thanks to João Martins and Tom. Replaced _gat is not defined fix with official Google fix.
2008-11-08 Version 1.2.1 released with Spanish translation available thanks to Francisco José Vela Roncero.
2008-10-27 Version 1.2.0 released with fix for "_gat is not defined" Javascript error.
2008-07-21 New version 1.1.0 released with subdomain tracking support within the same Google Analytics account.
Introduction
J!Analytics is a new Joomla 1.5 only module which inserts Google Analytics code into your web site pages.
Google Analytics allows you to track visitors to your web site and much more. For more information and to get your Analytics ID visit Google Analytics.
J!Analytics uses the latest ga.js script from Google as default and also allows you to use the legacy urchin.js script as well.
Download
You can download directly from this site: J!Analytics
or download from JoomlaCode.org - http://joomlacode.org/gf/project/mod_janalytics/.
Installation
Installation of J!Analytics is extremely simple and will take only a couple of minutes to do. Below is a step by step procedure for installing J!Analytics into your site.
Step 1 - Modify Template
Don't panic, this is a very easy simple thing to do. What you need to do is add some code at the bottom of your template so that you can place the Google Analytics code in the right place.
Open up your template by going to Extensions -> Templates.

Here you need to click on your template to edit it.
You will see an Edit HTML button which allows you to edit your template HTML directly.
Locate the following code - It will be at the very bottom of the page.
Add this line directly above the </body> tag.
<jdoc:include type="modules" name="googleanalytics" style="raw" />

It should look like something similar to the above image.
Step 2 - Install J!Analytics Module
Installing extensions in Joomla 1.5 couldn't be any easier.
Go to Extensions -> Install/Uninstall

Browse for the file you downloaded (mod_janalytics-1.0.0.zip) and click install.
You should see a success message!
Step 3 - Enable Module & Set Parameters
Before you can start using J!Analytics you need to set some parameters and enable the module.
Navigate to Extensions -> Module Manager to see all your modules.

Click on J!Analytics to edit default setting.

Set Show Title to No
Set Position to googleanalytics (Hint: you can type this directly into the Position box.)
Set Enabled to Yes

Change Google Analytics Id to your own Id provided by Google Analytics. If you leave it as the default it will not work.
Optional - Change "example.com" to your primary domain if you want to support subdomains in your Google Analytics account, otherwise leave as is. (Only works with Google Analytics Code).
Optional - If you would like to use the old Urchin code provided by Google check the Urchin radio button to enable.

Save your module and you now have Google Analytics installed on your site.
Feed back
I would love to get your feedback on this module and especially any enhancements you might like me to do. Send me an email.











