SAN FRANCISCO — Trading unvarnished emails before acquiring an industry rival, Bazaarvoice executives unwittingly handed the government damaging pieces of evidence.

The company’s former CEO, Brett Hurt, took the stand on Tuesday to try to take them back.