Add analytics. Closes #1.