added new Google analytics functionality