How to install google analytics in Joomla 2.5
- Details
- Written by Luis Posselt
Today I will show you how to install Google Analytics inside your Joomla Websites.
Now this tutorial it is really simple and we are not going to be using any Joomla Extensions. In my personal opinion, there is no need to install any Extension in order to use Google Analytics on Joomla.
Have in mind that the process while installing Google Analytics is the same on every Joomla Version.
It does not really matter if you are using Joomla 1.5, 1.6, 1.7, 2.5, or the future 3.5 because basically what you will need to do is install the Google Analytics code at the bottom of your Joomla Template index.php file.
This code will just go before the ending body tag.
Installation Example Keep in mind that I recommend you install Google Analytics Code just before the ending </body> tag. <script type="text/javascript">var _gaq = _gaq ||[];_gaq.push(['_setAccount','UA-15483298-8']);_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://')+'google.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();</script></body></html>
However before everything, you will need to have ready one thing only and that will be opening your account with Google Analytics.
If you want to learn that, click on this link How to Open Your Google Analytics Account
FREE VIDEO JOOMLA TUTORIALS