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.
Any ideas on how to solve this?
Thanks Chris