I need to insert analytics on my joomla site but not sure how.the couple extensions i looked at looked pretty terrible based on their comments so i tried another that seems good. its the Google Analytics Tracking Module for joomla. I installed it. but doesnt seem to be working. Google says its retrieving data but I dont see the code when i view source and according to that, i have no visits for today! which is false.
Just add like my site has it. Works perfectly. Open the index.php file and scroll down to the bottom and add your analytics code so it will look like this: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2034680-9"; urchinTracker(); </script> </body> </html> HTML:
you can insert in file index.php in fordel template what you use. You can login administrator choise template and insert code
Oh yeah, sorry. Forgot to add that it's important to add this code to index.php what is located at maincategory/templates/yourtemplate/index.php . Not in the main category index.php. Thank you.
Thanks guys. I don't know why I didn't do that before. Why the hell do they have stupid modules for something so simple? anyway, i pasted it in there and its retrieving data.
Many Joomla users don't know that how easy is to add any code or script in Joomla website, and basically there is really no need to install any Module or Plugin for this kind of tasks. A very nice Tuorial about Google Analytics for Joomla can be found here savoniatech.com/how-to/7-how-to/8-how-to-add-google-analytics-in-joomla.html and it shows step by step with screenshots.
In your admin panel, go to Site, Template manager, Site Template. Check the radio box right next to the template you are using, click Edit HTML, add analytics code right above /body tag. Cake.