
Hello,
I've just started using your Statistics program and it works great.
One thing bothers me though. Your JS Tracking Code wont validate at W3C (http://validator.w3.org/check/referer)
I've tried playing with the code but nothing seems to help.
It either validates but the counter wont work or the other way around.
Please help!
Regards,
Romi
Tracking Code Validation
If you replace all instances of "&" in the tracking script with the HTML Character Entity for ampersand, it'll validate and work!
http://www.w3schools.com/html/html_entities.asp
I'd also suggest putting the Javascript in an external file and including it with:
Mark Voss
http://www.markvoss.net
Tracking Code Validation
Here's the script for future generation: 8)
counter.html:
metatraffic.js:
track();
function track() {
var pagetitle = document.title;
var scriptlocation = "/smc/stats/track.asp";
var pagedata = 'mtpt=' + escape(pagetitle) + '&mtr=' + escape(document.referrer) + '&mtt=2&mts=' + window.screen.width + 'x' + window.screen.height + '&mti=1&mtz=' + Math.random();
document.write ('');
}
You're welcome,
Romi
http://www.kung-fu.co.il