Removes angulartics and adds function to controller to take care of Google Analytics functionality