title: Track a login event in Google Analytics
body: <p>I would like to track a login event on my website.
  The user writes username and pass then clicks on login, the form is submited and server checks if password is correct then redirect to the home page if it is.
  But how could I add a Login event to GA? If I add it to the login button it wont be totally accurate as it will count even the failed login attempts.</p>
  
  <p>Any ideas on how to solve this?</p>
  
  <p>Thanks
  Chris</p>