shortstat resource reporting problem
-
Here’s my info if you all want to take a look:
web site
https://www.accommodatingly.com/shortstat – short stat reporting (you have to copy and paste this into the browser.I’ve been trying to get shortstat to work. It didn’t want to report at all when I used the standard call (<?php @include_once($_SERVER[“DOCUMENT_ROOT”].”/shortstat/inc.stats.php”); ?>) for the shortstat include, so I changed it to call the absolute URL: <?php @include_once(“https://www.accommodatingly.com/shortstat/inc.stats.php”); ?>
I placed this call at the top of every template page that isn’t a WordPress include: index.php, single.php, etc.
It is now recording hits, but only to the resource /shortstat/include/inc.stats.php. It also doesn’t seem to be recording referrers, search strings, and all that jazz.
I think this might be a case of “a little knowledge is a dangerous thing.” I knew enough to figure out that if the $_SERVER[“DOCUMENT_ROOT”] thing wasn’t working, I should change the path, but is that killing the more robust stats reporting functions?
- The topic ‘shortstat resource reporting problem’ is closed to new replies.