added analytics to front