11 Mar 2008 |
|
Google Analytics is a free website tracking tool which helps you understand your website's visitor. We highly recommend it, and in this post will run you through how to add Google Analytics to either Joomla 1.5 or Joomla 1.0.1x. We have broken down the answer of this question into two steps: 1. Create a Google Analytics account Create a Google Analytics accountGo to the Google Analytics website and sign up for account. Once you've followed the registration process you will come to a page where you are given a tracking code to add to each page of your website. If you are given the choice to choose between the new tracking code (ga.js) or the old tracking code (urchin.js) choose the new tracking code. Keep this webpage open with the tracking code on as we're going to need it in a few minutes. Add the Analytics tracking code to your Joomla templateAdding the analytics tracking code to your Joomla website is really easy. We're going to show you how to do this through logging in to the administrator backend and editing your template's HTML. In Joomla 1.0.1xIf you are using Joomla 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14 or 1.0.15 do the following:
In Joomla 1.5If you are using Joomla 1.5, 1.51 do the following:
Adding the code within the templateIf you have followed the steps above you should now be looking at your template's HTML.
Here is a screenshot of the HTML of a template before we added the Google Analytics code:
And here is the HTML after we added Google Analytics code:
We look forward to answering your questions and reading your comments... 97 Comments
Write comment
|



Today we're going to answer a very straight forward question that we have been asked: "How can I add Google Analytics to Joomla?"





March 19, 2008
Votes: +16