add analytics (fix #28)