added condition to not track data in localhost