diff options
Diffstat (limited to 'static/js/home.js')
| -rwxr-xr-x | static/js/home.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/home.js b/static/js/home.js index 59d4c3d..60b5d07 100755 --- a/static/js/home.js +++ b/static/js/home.js @@ -5,7 +5,6 @@ function ifEnter(fn) { } function initLoginForm() { - var nick = "#nickInput", nickFiller = "username" var pass = "#passwordInput", passLabel = "#passwordInputLabel", passFiller = "password" var submit = "#signin-submit" @@ -152,6 +151,8 @@ function login() { var onSuccess = function(json) { location.href = location.href; + if (typeof pageTracker !== 'undefined') { + pageTracker._setCustomVar(1, "logged-in", nick, }; var onError = function(resp, textStatus, errorThrown) { |
