Updated Gapi class for Google Analytics