edited code for google analytics