add analytics, fix #13