Fixed test url for checking connection with GA, moved public functions at the end of the file.