title: Google Analytics Event Tracking on Links
body: <p>I've set up Google Analytics on my site, now there are some external links that I have to track.</p>
  
  <p>According to the <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#events" rel="nofollow noreferrer">official Google Analytics documentation</a>, you just have to add a onclick EventListener on your element. Like this:</p>
  
  <pre><code>&lt;a href="#" onclick="ga('send', 'event', 'EventCategoryName', 'EventName');"&gt;click me&lt;/a&gt;
  </code></pre>
  
  <p>But it does not seem to work on my site. I disabled all ad-blockers, etc.
  If I check the network tab in my developer tools, there is no request once I click the link. I'm working with the latest google analytics.js</p>
  
  <p>Can anybody give me a hint?</p>