8.1 - Google Analytics
Video Tutorial on How to Add Google Analytics to Joomla
Joomla provides some basic statistics about how often your content is being read but if we really want to understand how people are using our web site, how often they are visiting it's far better to install Google Analytics.
In order to do this we first need to go to the http://google.com web site and create an analytics account. The web site is http://google.com/analytics If you haven't already created an account at Google you must do so now otherwise sign in. There is a three step process. To begin with let's sign up. You want the Classic Analytics and enter your web site name. Your web site address and then give Google some information about your site. So I am going to select Retail and I am in the United Kingdom and set my timezone.
Give your new account a name and click on the Get Tracking ID. You will need to confirm to the Terms of Service. And now we have our Tracking ID. Google suggests that we insert this piece of code into every page we want to track. In a Joomla web site that would mean inserting it into the template. But we are not going to do it that way. Because it is too easy to forget that you've changed the template and you haven't copied this across.
So instead of that we're going to use a Joomla method. Go to the Joomla Extensions site. If you remember you can go to Help, and Joomla Extensions. If we search for Google Analytics we'll find lots of different add-ons that provide a dashboard and also for inserting the analytics themselves. I am going to use one called Asynchronous Google Analytics Plugin I've found it to be the easiest one to use. So if I click on the link I can once again confirm it's for Joomla 3 and then click on the Download.
This takes me to the developers web site where I can find out how to configure the plugin and all its advanced features but for now lets just scroll down and click on the download and download this to our computer. Once the download is complete return your web site Choose the File we've just downloaded Open it and Upload & Install. We can see the message that this plugin installation was successful.
We now need to configure it. As its a plugin we need to go to Extensions and then Plug-in Manager As we have a lot of plug-ins we can either scroll through them all or we can simply search. This is the one we've just installed the Asynchronous Google Analytics Plugin. Let's select it and first of Enable it. then if we go to the Basic Options we can see here it is asking for the Google Analytics Web Property ID. Go back to your Google Analytics web site there is the code so let's just Select and Copy it and Paste.
That's all we need to do but there are some Advanced Options if you want to learn more about customising your Google Analytics. I am just going to click Save & Close. The Google Analytics is now running and operating on your web site. If you return to the Google Analytics web site you will be able to test it.