Google Analytics Asynchronous Tracking for Joomla 1.5
It has long been rumored that Google was going to start ranking pages based on page load time. Think about it, if your page takes longer to load then visitors won’t get to see as many pages. Less pages mean that Google doesn’t get to serve as many advertisements to those visitors and they end up making less revenue.
Google asynchronous tracking optimizes how browsers load the Google Analytics JavaScript, so its impact on the user experience is minimized. It also allows you to put your Analytics snippet higher in the page without delaying subsequent content from rendering. Visitors get to see your pages faster, and Google gets to serve more adds – everybody wins!
I put together a new Joomla 1.5 plugin so that you can easily add the new tracking code to your Joomla powered site.
Installation is easy:
- Download the plg_FCGanalytics1.0.0.zip
- From the Joomla administrator console go to Extensions/ Install
- Under “Upload Package File” click “choose file” and browse to the file you just downloaded. Once you select it, click “Upload File & Install“
- Once you see the “Success” message, go to Extensions/ plugin manager and click on the plugin named “FreshClicks Google Async Analytics”
- Under the plugin paramaters add your Google Analytics UA Code (the code should look something like UA-123456-1), under Enabled choose “Yes” and then click “Save”
That’s it- You new site should now start reaping the benefits of Asynchronous Tracking!
If you find this code useful or have any questions, please comment below and make sure to vote for this plugin on Joomla!
Related posts:
- Mix n’ Match Analytics Campaign Tracking
- Tracking Corporate Activity with Google Analytics
- Initial Referrer: The missing metric in Google analytics
- Did you just break your Google Analytics Installation?
- New FeedBurner BuzzBlast Joomla Module



Thanks for your efforts on this plug-in. Can you explain what kind of customizations you implemented? I see that the second part of the Asynchronous Tracking code is inserted after the closing tag.
Thanks Elijah! Actually all of the Asynchronous code takes place before the closing tag which is the new recommended location for Google code. The only thing you have to do with this plugin is make sure to enable the plugin and add your Google UA #
Just want to make sure – if we add this to our site, we don’t have to put any other google code (other than our account #) on our site for Google Analytics to work. Have I got that right?
Harry – You got it correct. no additional Google code is needed.
I installed the plugin, and it seemed to work fine, except my sitemap generated by XMAP no longer works. When I disable FGCAnalytics, the xmap sitemap starts working again. I would love to use the plugin, but I can’t with this problem. Any ideas on how to fix it?
Hi!! The plugin is also problematic when used together with Logos Form and Report Manager. I also have problems with XMAP-sitemaps as mentioned above.
Also probs. Installed this and all the pages are now blank? Any idea how to work this out?
Parsing bug in Internet Explorer 6 and 7 on some pages:
Please have a look here: http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html (Installation Instructions, point 2)
Maybe you an add a plugin parameter in the next version to select the proper code position manually?
Thanks for the cool plugin!
Hi,
I have the XMap problem as well. The Javascript from your plug-in appears at the bottom of the XML sitemap from XMap…