implemented analytics