Better implementation for non-production (Google Analytics disabled).