Google Analytics Tracking Snippet for External Links using jQuery

// external link tracker using jquery
$("a[rel*='external']").click(function(){
    if (typeof _gaq !== "undefined" && _gaq !== null) {
        _gaq.push(['_trackEvent','/outgoing/'+ $(this).text(),'/outgoing/'+ $(this).attr('href'),'/outgoing/'+ $(this).attr('title')]);
    }
});