change GA code to be async