adds analytics (fixes #6)