Efforts to track cases have been haphazard but technology companies face pressure to hand over information.