added analytics features