View Single Post
Old 06-24-2015, 07:48 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Quote:
Originally Posted by ruff View Post
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.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote