Conditioning google analytics

I added a condition to make analytics work only in production site and
not in local/dev