The above two answers are good and can be followed.Downward displacement method though old fashioned is a reliable method.However you can pass the gas through Conc. 6N NaOH solution that will remove the CO2 content in your Biogas this will give you biogas containig mostly CH4, H2S and small traces(if any) of CO2.This gas can be then analysed in GC for further confirmation.