Ensure logged in when enabling or disabling the analytics