Howto track outgoing links with Google Analytics using jQuery

Simply include these lines and the jQuery library in your document.

$(document).ready(function() {
$('a[href^=http]:not("[href*=://' + document.domain + ']")').click(function() {
pageTracker._trackPageview('/out/'+$(this).attr("href"));
});
});

(please indent them!)

Cheers

May 29th, 2009 / Tech Talk / tim

Fluid Design Queenstown

fluid_website

When the guys from Fluid introduced us to their vision of their website, we basically had two options on how to realise it:

Flash or Javascript?

After a few internal discussions, in where we evaluated the pros and cons of both technologies we came to the decision to avoid Flash and make use of the powerful jQuery framework.

The following things lead us to this decision:

  • Accessibility
  • Search engine friendliness

Read the rest of this entry »

May 21st, 2009 / Work / tim