finished login, add analytics code