Tag NDIR gas analysis for hydrocarbons