Added logic for use google analytics script in specific environments.