The determination of the amount of trefoil factor 2 in a sample. The trait is trefoil factor 2 measurement (EFO_0021846).