updating google analytics code (asynchronous version) and adding events