How to add Google Analytics to Joomla 2.5 and 3.4

Written by Super User on . Posted in Blog

       After making a site as an end user the first thing you would like to see is how many people are viewing your site. Google Analytics is a well known service through which you can create and analyze the traffic stat reports. But the first thing that comes into a novice users mind is how do I enter the complex looking code. A simple solution is through a third party plugin. Joomla has an extensive list of plugins for site analytics.

  • I would personally recommend using BigShot Analytics plugin. You can download the same from the below link :

https://www.thinkbigshot.com/joomla-extensions

  • Normally the code for Google Analytics would looks something like below :

  • <script>   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)   })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-xxxxx-x', 'auto');   ga('send', 'pageview');

    </script>

    Observe the UA-xxxxxx-x your code would be a little different. This is the code that you will need to enter in the bigshot analytics plugin.
  • After installing the extension you need to go to Extensions > Plugin Manager > System - BigShot analytic plugin. Publish the plugin.
  • Now you need to keep the UA-xxxx-x code in the web property id of the plugin. Save and close.
  • You are all set now.

This is how you set the Google Analytic code in Joomla site.

 

Tags: Google Analytics Joomla

Follow Twitter!

Add Facebook

Add on Linkedin

You are visitor number

  • 1.png6.png6.png8.png0.png9.png
 

Copyright @2015 All Rights Reserved