Edit:
this may not be a plugin issue. I just found out that Top 10 also records 0 visitors. Only Google Analytics records more. So there’s something weird going on which I’ll have to investigate myself for now. There’s still the warning issue of course
Found it: the Minify setting in WP-optimize was activated and the page caches were not counted anymore.
I would have deleted this post or changed the title, but I don’t see an edit-link. Sorry for the confusion. But maybe the reported error is of any use.
Hello,
Thank you for opening the topic and giving us the insights.
Let me know please if you have any further questions.
Best
Some more detail in case others may have the same issue: Wordfence has an option to ‘disable code execution in uploads directory’. Which is very safe but conflicts with Statistics’ ‘bypass add blocker’ setting (which moves the tracker code to the uploads directory)
Hi @ambientblog,
Thank you again for the diagnosis. After re-checking the code on our side, the Wordfence + uploads/ interaction you flagged has now been removed at the source: as of the next release, “Bypass Ad Blockers” no longer writes a copy of the tracker into wp-content/uploads/ at all.
The proxy serves the original tracker file directly from the plugin folder, so security plugins or hosting setups that lock the uploads directory down can no longer interfere.
The fix landed here: https://github.com/wp-statistics/wp-statistics/commit/2e0bf1bb0912256b5dd8b0cab1171ee4cef44e3f
It will ship in WP Statistics v14.16.7. After updating, you’ll get the new behavior automatically once the option mapping refreshes, which happens on the next frontend page load, or you can toggle Bypass Ad Blockers off and on to force it. The leftover hashed JS file in wp-content/uploads/ is cleaned up at the same time.
Thanks again for taking the time to diagnose this carefully and share back. Really appreciated.
Best
Glad to have helped, and thanks for your extensive reaction