Update Google Analytics code to async