A device for UV-spectrometric analysis of gaseous compounds in a UV radiation range with wavelengths shorter than 190 nm, said device comprising: - a measurement channel intended to accommodate a flow of sample gas to be analyzed, - a window member transparent for ultraviolet radiation arranged at a first end of the measurement channel, - a radiation source capable of generating ultraviolet radiation arranged to emit radiation through the window member and into the measurement channel, - a spectrographic member for measuring of ultraviolet radiation emitted by the radiation source arranged at a second, opposite, end of the measurement channel, wherein the device is arranged such that ultraviolet radiation entering the measurement channel at the first end can propagate through the measurement channel, interact with the accommodated gas and be measured by the spectrographic member at the second end of the measurement channel, wherein the first end of the measurement channel is open towards the window member a channel (6, 18) for guiding a protection gas is arranged in connection to the window member such that protection gas fed through the protection gas channel (6, 18) is allowed to flow over and cover the side of the window member facing the measurement channel and to flow further into the measurement channel, and the spectrographic member is provided with an opening through which ultraviolet radiation passes into the spectrographic member during operation of the device, wherein the second end of the measurement channel is open towards the spectrographic member such that an inside of the spectrographic member and the measurement channel are in communication via said opening, wherein the spectrographic member is arranged to be filled with a protection gas, and wherein the device is arranged such that protection gas fed to the spectrographic member is allowed to flow through said opening and into the measurement channel, and further wherein the radiation source is a deuterium lamp, and wherein the window member forms an integrated part of the deuterium lamp. - a measurement channel intended to accommodate a flow of sample gas to be analyzed, - a window member transparent for ultraviolet radiation arranged at a first end of the measurement channel, - a radiation source capable of generating ultraviolet radiation arranged to emit radiation through the window member and into the measurement channel, - a spectrographic member for measuring of ultraviolet radiation emitted by the radiation source arranged at a second, opposite, end of the measurement channel, wherein the device is arranged such that ultraviolet radiation entering the measurement channel at the first end can propagate through the measurement channel, interact with the accommodated gas and be measured by the spectrographic member at the second end of the measurement channel, wherein the first end of the measurement channel is open towards the window member a channel (6, 18) for guiding a protection gas is arranged in connection to the window member such that protection gas fed through the protection gas channel (6, 18) is allowed to flow over and cover the side of the window member facing the measurement channel and to flow further into the measurement channel, and the spectrographic member is provided with an opening through which ultraviolet radiation passes into the spectrographic member during operation of the device, wherein the second end of the measurement channel is open towards the spectrographic member such that an inside of the spectrographic member and the measurement channel are in communication via said opening, wherein the spectrographic member is arranged to be filled with a protection gas, and wherein the device is arranged such that protection gas fed to the spectrographic member is allowed to flow through said opening and into the measurement channel, and further wherein the radiation source is a deuterium lamp, and wherein the window member forms an integrated part of the deuterium lamp.