The determination of the amount of immunoglobulin G in a sample. The trait is immunoglobulin G measurement (EFO_0020465).