add analytics; fixes #5