Moved functions to google-analytics class