update analytics to use angular-analytics service