fixed google analytics timing issue