title: Does this attach a click even to an anchor tag?
body: <p>I need to add a click event to an anchor for Google Analytics event tracking. I have the main event tracking code in the head section. I've also done this in the head section:</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
  window.onload=function()
  {
  document.getElementById("btn_2_3a4z711fbd39d2fc9634f0yt66b45ht9").addEventListener("click", "_gaq.push(['_trackEvent', 'Webinar', 'Register', 'webinar-july-15']);");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>When I inspect the anchor tag, I don't see the event is there.  I'm going off of this example: <a href="http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_addeventlistener" rel="nofollow">http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_addeventlistener</a>.  The event doesn't show up in the example either when I inspect it.  </p>
  
  <p>I don't see the event coming through in GA. I tried modifying the code to this for testing but I don't see the alert:</p>
  
  <pre><code>.addEventListener("click", "_gaq.push(['_trackEvent', 'Webinar', 'Register', 'webinar-july-15']);alert('popup');");
  </code></pre>
  
  <p>Any ideas what I'm doing wrong?</p>