I think they have people to install their browser toolbars, which monitor the sites they visit. Their statisticians then extrapolate the trends to the entire population.
I believe "quantified sites" embed a line of code and that becomes public on quantcast ie- public google analytics. Not sure what else they mash the data up with.