Hello @jonkastonka,
Sorry to hear you’re still having issues with this.
The pageviews.php in the uploads directory is not executed, it is only used as a temporary data storage so the server only needs to have write permissions on it.
It has a .php extensions so that people can’t view the contents of that file when trying to access it through their web browser, since it would give away data about your site’s analytics. So it should not be an issue that WP Engine disallows executing that file, in fact it’s advisable to do so.
Do you have a link to your website so I can take a look to see if the tracking request is being generated at all and what HTTP response it returns?
Plugin Support
Lap
(@lapzor)
I see an error 500 on the tracking script: https://alligatorbioscience.se/koko-analytics-collect.php?p=1363&nv=0&up=0&r=https%3A%2F%2Fwordpress.org%2F&rqp=6qvphtwic5l
Can you check your PHP error log and see what the actual error is that is generated there?
Is the koko-analytics-collect.php set to the proper permissions so it can be executed (it’s in the root folder of the site).
Thanks for letting me know.
The permissions are 664, same as all other php-files in root.
Error log says:
{
"type": "error",
"date": "2021-11-09T16:27:28.000Z",
"message": "preventing possible attempt to enumerate users",
}
Plugin Support
Lap
(@lapzor)
Interesting error. Some sort of intrusion detection system is blocking the tracking because it thinks it looks like enumeration…
Can you contact your hosting provider and ask them if they can exclude the koko-analytics-collect.php from this security filter?
The problem was security settings which prevent PHP files being written to from non-logged-in users. What helped was to introduce an nginx rule on which exempts koko-analytics-collect.php only from that condition, which appears to have resolved the error.