Quote:
Originally Posted by ruff
What is the best way to accurately count hits? Surely not Alexa. Google admits their analytics are not accurate. Extreme Tracking does not allow porn. Is Stats Counter all that's left?
|
If you just want hits ...
ssh
Code:
$cd /log/file/path
$wc -l [logfile]
or you would have to grep the datestamp range
Code:
$grep -i "june" logfilename|wc -l
12385 logfilename
12385 is the line count for the term june and that would be the "hits" or file requests
You could use a tracking script to count pages and inject a tracking pixel in each pages HTML and the script code. In the header or footer (some file on all pages).
or
Code:
$grep -i "footerfilename" logfilename|wc -l
43256 logfilename
43256 is the linecount of your "footerfilename" in the logfile. If your footer is on every page of the domain then that is your page count.