changed viewName() function to viewNameGA() for google analytics