add google analytics

Sorry about the big commit, I will break it down to smaller ones next time. To test it you need to set the env variable GACODE. I will invite everyone to the shared google analytics account tomorrow.