There's no way to them to get that interstitial data without having code analyzed/reporting per-page on the site (either backend Apache-log analysis or something like Google Analytics). Alexa did this for a while with their "embed your site's score", but that was too easily gamed so it was discontinued as a metric source.
Other sites, like Comscore, use various methods like router-level analysis & client-side monitoring software (like Nielson w/ TVs).
In the end, no method is 100% accurate and the best analysis comes from looking at various sources & taking it all with a grain of salt.