Reimar schrieb am 21.01.17 um 20:31:46:
Hi there,
renaming should be possible if you are using a tool like notepad++ and try the search&replace function in combination with "all php files in a folder".
But this has to be done manually by searching for "track.php". It is not so simple I think.
So the name of the track script is hardcoded, no good. I prefer the workaround because change an harcoded string is dangerous. There is track_file.php maybe there is the string $track.php, maybe there is a file function-track.php and so on. In many case found and replace is dangerous.
Reimar schrieb am 21.01.17 um 20:31:46:
Your workaround does not look bad, but I am not sure if there could be raise some problems. Please keep us updated here, or you post within the tips and tricks section.
Sure.
This is how the workaround works. The thin blue line is a custom rtrack.php (sum of phone, tablet and computer device type), the big blue line is the workaround rtrack.php->track.php. PHPWebStat has some sites in blacklist and custom rtrack.php doesn't. The wa (workaround) start from 18/01. Before the 18/01 there is not wa and the tracker name is track.php, so many adblocker block the tracker PHPWebStat. The bold blue is lower than thin blue because adblocks stop PHPWebStat. After 18/01 the two lines are the same except for a small amount because (I suppose) there is some sites in black list in PHPWebStat that is not banned in custom counter rtrack.php and (I suppose) there are other reason that I don't know..
Note that the two trackers have the same code inserted in my site pages: the script part (mode=js) and the noscript part (mode=img). My custom script output nothing nor the js code nor the image binary.
Reimar schrieb am 21.01.17 um 20:31:46:
Regarding your problem getting tracked even though having js disabled, this seems (hopefully) not a bug. Normally the stat works with the image tag to track if js is disabled. Looking at your code (including the track), it will always track, no matter if js is disabled or not. Try it again with different browsers, cache and cookie erased, and the original configuration, not rtack.php. If it still appears, let us know.
Thx
Reimar
Yes I agree. There is a noscript part that is execute when js is disabled and that fetch track.php with mode img. But I suppose (hopefully) that I can detect those browsers with js disable watching the browser icons in PHPWebStat statistics, put the mouse pointer over the browser icon and read the mode (mode=js or mode=img). It is not so, the mode is always js even when I have js disabled. I hope to have describe the things clearly, if no I retry.
Edit 23/01/2017:
In this image:

you see the mouse pointer over browser icon (chrome) and you see the mode (mode=js). If I delete the cookie of autotracking and if I disable the js then I'm tracking by image, so I suppose to see in last hits my entry with the string mode=img if my mouse pointer is over the browser icon. It is false, I see mode=js.