Add analytics

Closes #12