A holder for a liquid separator (1) is disclosed herein. The liquid separator includes a separator body (9) for dividing a sample flow into two separate flows, one of said flows substantially free of liquid being for the gas measurement and another of said flows including at least one of liquid and gas bypassing the measurement, and which liquid separator also includes a detachable liquid container (10) for receiving the another flow. The holder includes a space (21) receiving the liquid separator and also includes a frame (22) surrounding at least partly the space and which frame including a first contact point (23) being in contact with the separator body. The frame also includes a second contact point (24) being in contact with the liquid container and which first contact point together with the second contact point are adapted to hold the liquid separator.