title: Google Analytics tracking pdf downloads
body: <p>I have a problem with <code>Google Analytics</code>.</p>
  
  <p>I want to track clicks on an <code>&lt;a&gt;</code> tag which links to a PDF file, for which I'm using a function which will be called when user clicks on download link.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$('.dl-tracking').on('click', function (){
      ga('send', 'event', 'download', 'click', 'link');
  });
  </code></pre>
  
  <p>But it doesn't work.</p>