We describe the benefits of an online continuous flow differential electrochemical mass spectrometry (DEMS) method that allows for realistic battery cycling conditions. We provide a detailed description on the buildup and the role of the different components in the system. Special emphasis is given on the cell design. The retention time and response characteristics of the system are tested with the electrolysis of Li2O2. Finally, we show a practical application in which a Li-ion battery is examined. The value of long-term DEMS measurements for the proper evaluation of electrolyte decomposition is demonstrated by an experiment where a Li(1+x)Ni(0.5)Mn(0.3)Co(0.2)O2 (NMC 532)/graphite cell is cycled over 20 charge/discharge cycles.