As the country scrambles to control the rapidly spreading coronavirus, government agencies are putting in place or considering a range of tracking and surveillance technologies that test the limits of personal privacy.

The technologies include everything from geolocation tracking that can monitor the locations of people through their phones to facial-recognition systems that can analyze photos to determine who might have come into contact with individuals who later tested positive for the virus, according to people familiar...