added analytics - fix #6