title: JSF commandlink and form submit Google Analytics event tracking
body: <p>I am trying to get, first, a h:commandLink to send off a custom _trackEvent to our analytics profile. </p>
  
  <pre><code>&lt;h:commandLink id="clDisplayDoc" action="#{displayDocManagedBean.displayDocument}" onclick="_gaq.push(['_trackEvent', 'practitionerDocs', 'download']);"&gt;
  </code></pre>
  
  <p>This isn't working as I suspect the event is being canceled by a page refresh or submission. </p>
  
  <p>Secondly, I would like a form submission to send a custom event.</p>
  
  <pre><code>&lt;h:form id="practitionerForm" onsubmit="_gaq.push(['_trackEvent', 'Submit', 'Provide Feedback']);"&gt;
  </code></pre>
  
  <p>This isn't working either. Is there a way to ensure both events get sent off correctly? </p>