title: How to use analytics tracking with jquery
body: <p>I found this code from google in order to add tracking to whatever link I want.</p>
  
  <pre><code>&lt;script&gt;
  var trackOutboundLink = function(url) {
     ga('send', 'event', 'outbound', 'click', url, {
       'transport': 'beacon',
       'hitCallback': function(){document.location = url;}
     });
  }
  &lt;/script&gt;
  
  &lt;a href="http://www.example.com" onclick="trackOutboundLink('http://www.example.com'); return false;"&gt;Check out example.com&lt;/a&gt;
  </code></pre>
  
  <p>Since I need to run the click using jQuery the question is:
  How can I do the onclick outbound from my jQuery file?</p>