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... Comments (230)
![]()
...
Thank you very much! I originally downloaded a module that supposedly made this process easy. It didn't make it easy, because there was a lack of documentation, and it only supported the legacy mode of Google Analytics.
...
The next problem, once Analytics was collecting data, was that all of the page names show up in the reports as:
...
I would say it is better to add the GA code directly after the opening body tag, rather than directly before the closing body tag. I know Google say to place the code before the closing body tag, but they don't mean directly before.
...
I have only very recently started to work with Joomla and have found it very confusing. I am slowly suppose to take over a site someone design with Joomla. I am trying to add the analytic codes but your instructions do not match what my menu has. I checked and I am using Joomla Version 1.5.7 Production/stable [Wovusani]. Can you give me any assistance with putting these codes on my site?
...
Excellent article. I've been getting advice on how to add Analytics to Joomla and it hasn't worked, until now. Other persons I've talked with stated I should install a new module and then input the necessary data, which doesn't work. I wasted many hours trying to do it the other way and less than 5 minutes your way.
...
hi, i just don't understand s/thing. the google tutorial says that i should see the tracking code in a web browser (developer -> html code). i've inserted the code in the template in the way described above but i don't see it there. so i'll wait till the next morning and see if it works.
...
For some reason "Template Manager" does not show up under my Extensions menu. I only have "Install/Uninstall", "Module Manager", and "Plugin Manager". Do you know why this isn't showing up or how I can get around it to ad Google Analytics. I'm using version 1.5.3 of Joomla.
...
Any updates or advice on conversion tracking for an e-commerce store using VirtueMart/Joomla? Is there a way to have a 'thank you' page generate after each sales process is confirmed? Trying to figure out how to determine what URL to use to monitors goals.
...
I think I must be missing something. I followed the steps and everything seems to work. However, the content tracking in Google Analytics shows the visited content in the following format.
...
Hi...
...
I have added the code as described and have an icon on the GA panel indicating that the web site is not being tracked. Does this mean that the process has not worked or does this mean that the process worked and GA has not yet updated? I have tried to save and refresh but it makes no difference.
...
using Joomla 1.5.15 and Rhu-Milkyway template..I added the analytics code immediately before the /body tag, and it shows up on every page if you viewsource. No problems with page loading. I will wait a day and look for data, but this isn't my first time using analytics so I am sure it will work.
...
As an update to the above...in Google Analytics, sometimes it takes a while for the little yellow yield triangle status symbol to go away. You can manually force google to look for the code by clicking on "edit" at the end of the row. Then on the new page, at the upper right hand corner of the table is a small link that says "check status". Click "check status" and the new page should tell you immediately if the code is installed correctly.
...
Hi Guys,
...
Hi there, and thanks so much for this (hopefully) helpful info. However, when I added my GA code and tried to save it I got the folliwing message:
...
Yeah, you said right, I just sooooooo agree with you, did some websites before,at that time I really wanna someone can give me a hand about it, and then a friend tell me a really good company that doing it well, they help me a lot!!maybe they can help you too, http://www.joomlaus.org/, here you go, good luck
...
Thanks for simplifying this even for dummies like me!
...
Hi,
...
hi dony
...
Very good article!
...
Hi All,
...
just going through the google analytics instructions and it tells me that i need to insert the code just before the tag. Not sure if this article is just old or when using a joomla website i need to place the code before the tag. Can anybody help please?
...
I've found the answer somewhere else... yes, is adding the code to every page of your site. But is still one question: on google analytics site it says "Copy the following code, then paste it onto every page you want to track immediately before the closing tag" ... so not the tag...
...
Thanks, for article. It was of great assistance. Just for the sake of any new people that may get confused, let everyone know that when it comes to Joomla everything can be a little different. Example: In the Google Analytics instructions it says to put the script within the head tag where because of Joomla's dynamics, it should be placed at the end of the HTML code as you've instructed.
...
Jason's post....
...
Thank you so much. I used it on my site http://www.nlp-prvi.rs.
...
Hi,
...
Damn, no link??? Ok, HERE IT IS: http://www.knowledgetantra.com...oomla.html
...
Something funny is going on with my attempts to comment here, so the above link is for those people who have templates without needed HTML tags in them, so they can't use the solution described in this article. So, those should use the solution described in the above link. Works perfectly, bear in mind that if you don't have "footer" section you will have to select other one. I used "debug". Works perfectly.
...
Just make sure you have the latest version of the Analytics code which loads asynchronously and thus eliminate code blocking of page rendering.
...
This is my website: www.reproductionartgallery.com. The problem is i had a company built this for me therefore I dont have HTML access to this even now I am the webmaster.
...
Hi
...
My website is http://www.latu.org.uy/observatorios I had no problems setting GA up! thanks Rajesh
...
Great article:-)
...
I don't usually don't do any of the programming on Joomla, I have a great programmer who looks after that... however I needed to add a dual profile GA code snippet to a version 1 Joomla site, and just thought it would be easy enough to do myself. A quick couple of searches to make sure the code was correct, and here I landed to install it. Your instructions were perfect - works like a charm. Thanks David :-)
...
I am taking over a website for someone ... www.shrinkrapinc.com. In Admin, I do not have "Template Manager" under "Extensions". All i have are "Module Manager" and "Plugin Manager". How can I add Google analytics to this Joomla 1.5.25 website. |



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







