add analytics docs. Closes #228