implemented analytics features