fix bug for google analytics