Google Analytics Joomla: Outgoing Link Tracking Asynchronously
Did you know you can synchronize your email on multiple computers?
Automatically? And without buying expensive software or paying for subscriptions?
Use your favorite email software and work with your email on any computer!
See how the brilliantly simple Easy-Email solution will make your life easier by watching the quick video Thunderbird Sync.
Download
2010-03-28 - Version 1.0 - plugin_track_outgoing_link_asynchronously_v1.0.zip
Background
Google has opened up for a new way of incorporating the Google Analytics code on your web site: Asynchronous loading.
This has changed the syntax for outgoing links and downloads tracking.
We needed this functionality and could not find a plugin to do this... so we modified the component Track Outgoing Link, which was written by e-dijon.
We thought the plugin could be of use to others so we put it up for download. This web site is not dedicated to Joomla stuff but it was the easiest place for us to put up the component for download.
The plugin is released under the GPL license and you are most welcome to use it as you see fit.
Requirement
You need Google Analytics working in Asynchronous mode on your web site.
You can find several different extensions to do this at the Joomla Extensions Directory.
Or you can use our extension here.
Note! We have only tested outgoing link tracking in combination with our own extension for asynchronous Google Analytics tracking, but it should work fine with any of them.
Always test a new component in a test environment
before installing on a production server!
Installation
Log in to the admin interface of your Joomla site.
Go to Extensions -> Install/Uninstall.
Browse to the file you downloaded and click Upload File & Install.
Go to Extensions -> Plugin Manager.
Find the plugin Content - Track Outgoing Link Asynchronously.
Click on it to open the settings page.
Enable the plugin.
Optionally modify the file extensions you wish to track downloads for. If you leave the field empty no downloads will be tracked.
Verify it works
Go to your web site.
View the page source for a page with an external link or a file download.
You should see the added onclick code:
...
onclick="javascript:_gaq.push(['_trackEvent','download','click','.../plg_system_analyticsasynchronous_1.0.zip']);"
...
After a while we can see the tracking in Google Analytics.
(Click the image for a larger version)
On the Lables tab we can see which files have been downloaded and which outgoing links have been clicked.
Contact
If you have any questions or suggestions please contact us here.
Legal stuff
This business is not affiliated with or endorsed by the Joomla! Project. It is not supported or warranted by the Joomla! Project or Open Source Matters. The Joomla! logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();
</script></body>




