Google Analytics implementation for Joomla!


Joomla is a Free and open CMS (Conetent management system). It’s one of the most popular CMS amongst WordPress, Drupal and many others.Since Joomla CMS has been downloaded 23 million times, there are fair chances that a lot of people who use a CMS might be using Joomla.

Implementing Google analytics with Joomla!

The purpose of this blog post is to make Joomla users understand the importance of Google Analytics implementation on Joomla websites. There are two ways you can implement Google Analytics on your Joomla enabled website.

  1. Manual implementation
  2. Using extensions
    1. Manual implementation: When you are using a CMS, it becomes easy to manage and enhance features. In a non-CMS website, you have to add Google Analytics codes manually on each pages. In a Joomla website, you just have to paste the code to your main template page, and it gets added to all other pages of the website.


      1. Log-in to your Joomla account.
      2. Go to Template manager from Extension menu
      3. Select the default template, click edit. On the edit page, click Edit HTML.
      4. Paste your Google Analytics code in the <head> tag and click Save. It will add the code to all other pages of your website.


  1. Using extensions: Extensions in Joomla are like add-ons. They are also called modules or plug-ins. Extensions are ready made features for your Joomla website. E.g., a Google plus extension adds Plus 1 button to your website with a few clicks. There are more than 7,400 extensions available on official Joomla! Extensions directory, and many more are available otherwise. From this huge list, there are a lot of extensions available for Google Analytics implementation.

Here are some of very popular Google Analytics extensions we found.

  • J! Analytics
  • OpenPotion
  • Bigshot
  • Asynchronous Google Analytics
  • Google Analytics plugin for Joomla 1.6
  • iBualoy Analytics
  • WebGuru’s Google Analytics
  • AS Google Analytics

Out of these extensions, we found the J! Analytics Extension cool, and it’s very popular amongst its competitors. It’s also available for the latest Joomla version, 1.6.

Here’s how you can install J! Analytics extension on your Joomla website.

    1. Download the J! analytics extension from the Joomla Extensions directory.
    2. Log-in to your Joomla admin account.

Joomla Admin Login

    1. From main menu, click Extensions > Install/Uninstall

install extension menu

    1. Browse the file and install it.

Browse the file
You’ll see a notification once the installation is complete.
installation notification

    1. Go to Module Manager and click on J!Analytics to edit it.

J!Analytics to edit

    1. Make necessary configuration changes as shown in the screenshot below.

edit module

On the right side of the same page, enter values as below.

Module Parameter
Click Save once you’re done.

    1. Done. This will paste Google Analytics code to all of your pages. Open any page of your website and see whether the code exists in the source.

GA Tracking code

It’s this easy to install Google Analytics code to your website. This was for J!Analytics. For other extensions mentioned above in the list, We recommend the automatic installation over manual code pasting. Why?

  1. For non-techie users, it’s the best option. Just a few clicks and settings, and over
  2. It’s likely to make mistakes while going the manual way
  3. These Extensions are free, why not use them?

Google Analytics Implementation for Joomla! VirtueMart

If you are running an e-store on your Joomla enabled website, most probably you are using VirtueMart as your Shopping Cart Application, and it must reflect in your Google Analytics profile properly. e.g., it should show revenue numbers for each product, and show how each product is performing.

It’s important to use an extension for e-commerce tracking while you are using Joomla with VirtueMart. Again, there are a lot of options available in the Extensions directory. We installed JAnalytics and these are the steps to follow.

  1. Download the J Analytics plugin from Extensions directory.
  2. From main menu, click Extensions > Plugin manager
  3. Go to plugin manager and click on “janalytics virturemart” to edit it.
  4. Follow step 6 from above example.
  5. Done. Now, open the order confirmation page source of any successful transaction look whether transaction details are being passed properly. Check the screenshot below.

GA Code

Done. Isn’t it cool? If there were no plugins/extensions for Virtue mart, you might have to write scripts to capture the product details. Here’ you can implement it in moments without a techie.

One very important thing to note: When you install a plugin/extension for VirtueMart, don’t forget to disable any other Google Analytics plugin/extension you have installed. Otherwise, it will reflect duplicate visits in your Google Analytics profile.

I hope this post gave you enough information on implementing Google Analytics with Joomla. Feel free to post comments or any queries you might have.

The following two tabs change content below.


Kamaksh looks after User Experience at Tatvic. He's more than 5 years of experience in PPC, e-commerce and UI/usability. He generally writes about improving User experience and conversions rates, and things that can make life easier. Google Plus Profile:
Previous Post
Page Importance Level Scorecard using Google Analytics Custom Reports
Next Post
Do it yourself Pay Per Click Audit

4 Comments. Leave new

  • Pringlebay Dreams
    November 30, 2011 8:32 pm

    Seems you have to add code in the template according to the video… The above instructions did not work for me! Seemed so easy. Did you watch the video for J Analytics? Why does it not correspond with your instructions above???

    • If you install and enable J Analytics module on your Joomla installation it would, automatically included in your template’s output say in “footer” position (which is available in default positions with all templates). Yes, If you use a custom position say “googleanlaytics” that position will be needed call in your template.

      If you install and enable J Analytics plugin for virtuemart which is more better then module. though its intended for Virtuemart you can still use it for a normal website. The better part of the plugin that you not need to call it in a module and it would be loaded in your tag.

      What part didn’t work for you? can you please explain? we can change our instructions accordingly if that helps. I appreciate your feedback. Thanks.

  • A very informative post recently my website theme moved to Joomla I am new for Joomla your article read after cleared its.thanks for sharing


Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed