| How to Track Offsite Links for Google Goals in Joomla |
| Tuesday, 19 May 2009 08:29 |
|
Google Goals. Love 'em, use 'em, make business decisions based on them. If you didn't know what a "Google goal" is, its a feature of Google Analytics. It allows you to set up a specific and discrete goal for something on your website. Examples might be:
I'd thought I'd share some help I passed onto students from the Web 2.0 Marketing with Joomla Graduate Course. The class are developing goals for their case study websites and pondering how best to set them up. {readmore}Measuring Goals is CriticalIf you are not measuring goals on your site, its like trying to play darts with a blindfold on. Any adjustment you make to your site, and you'll have no idea as to the cause/effect relationship between it and something you want to happen. Here is an example: I set up a goal for registrations at www.compassdesigns.net, then I made a change which dramatically increased the number of registrations as you can see by the goal graph below:
The change? All I did was add 3 simple words to the registration module (using a template override)
Google Goals are URL PathsTo set up a Google goal, you need to create a path or funnel for the visitor. So in the registration example, you have: Step 1 = /component/user/?task=register Step 2 = /index.php?option=com_user&task=activate&activation= Note that the step 2 URL is the one the user goes to when they come back to the site when they confirm their email address. You'll also notice that the URL is only the first part of the actual URL, this is called "Google Goal Head Matching." Editor's note: Back to URL's. What do you do when you have a goal that is related to a link. Maybe you have a PDF document that you want people to download, or a link to another site? Well, we have two solutions in Joomla: 1. Using weblinks and redirection to track a goalYou could set up a weblinks category for offsite links, and then make each link you want a Joomla weblink. What then happens is that a visitor will use the Joomla weblink URL, and then Joomla will redirect them. The Joomla weblink is still internal though, so you can use it in a goal (I think). Pros: tracks click in backend, control of url structure 2. Use a Google Analytics "virtual page"Analytics has a feature where you can add a bit of code to a link to make it a fake page as far as Analytics is concerned. This function essentially rewrites a link as the page you specify. So for example, if you had a PDF download, you would simply add the following JavaScript in the link (<a> tag): onClick="javascript: pageTracker._trackPageview('/importantpdf/');"
Whenever someone clicked on that link, Google Analytics would log that click as a visit to the virtual page "importantpdf". To use this feature, you do need the latest version of Google Analytics. Visit this GA help page for more details. Pros: Easy to set up
There you have it, two relatively easy ways to track links and events for a Joomla site. There are still some issues with some extensions which don't really provide a good success path, and the traditional contact us form in Joomla still remains tricky, maybe a javascript redirect in a template override? Update: Go make some goals for your Joomla site Useful Links: Does Joomla strip onclick events? Update: |
If you want online classes delivered to the comfort of your own home, then you need to join Joomlashack University - an affordable online Joomla training course taught by the world's leading experts in Joomla education.
If you are struggling with Joomla and want expert help, then fill out the form below. We'll send you some more information and you'll be first in line join the easiest and fastest way to learn Joomla.