Fixed bugs in google analytics script