The importance of socio-demographics in online surveys

Should you ask about socio-demographics in your survey? If so, which ones should you ask and where should you put them?