Plugin Support
Lap
(@lapzor)
Can you go to the Koko settings page and just click the save button, that should re-create the tracking endpoint. Let me know if that doesn’t fix it.
Thread Starter
René
(@mobiflip)
I have tried this several times and it has not changed anything.
Hey @mobiflip,
That is really strange. When I go to your website I do see the tracking request and it does return a HTTP 200 OK response, so that part seems to be working.
If you go into your uploads directory, do you see a pageviews.php
file there?
Thread Starter
René
(@mobiflip)
in the root of the uploads directory? no, there are only my upload folders
Hm… And if you go to your website’s root directory, what are the contents of the koko-analytics-collect.php
file?
Thread Starter
René
(@mobiflip)
<?php
/**
* @package koko-analytics
* @license GPL-3.0+
* @author Danny van Kooten
*
* This file acts as an optimized endpoint file for the Koko Analytics plugin.
*/
// path to pageviews.php file in uploads directory
define('KOKO_ANALYTICS_BUFFER_FILE', '/data/web/1/000/018/061/26351/htdocs/xxx/wp-content/uploads/pageviews.php');
// path to functions.php file in Koko Analytics plugin directory
require '/data/web/1/000/018/061/26351/htdocs/xxx/wp-content/plugins/koko-analytics/src/functions.php';
// function call to collect the request data
KokoAnalytics\collect_request();
Thread Starter
René
(@mobiflip)
After I deleted the file koko-analytics-collect.php and saved the settings again, the file pageviews.php is now also available. Stats are still not displayed.
Plugin Support
Lap
(@lapzor)
Hi, I just checked our site and (as long as I do not send the “do not track’ request that is now enabled by default in many browsers) it does seem to track the request. At least it’s sending the tracking data to the server and getting a 200 success response.
Do you see at least some data now?
Next thing we can check into is your WP Cron, maybe it’s not executing or the site has low traffic and it’s just executing once in awhile.
Thread Starter
René
(@mobiflip)
No data 😞 https://monosnap.com/file/oaNMg3JgklAqZIv4bnmf2zmByX9lPk
my settings https://monosnap.com/file/6XsAGgWtm7ppIvcXAY6y6uBFk4bTTK
how can I check WP Cron?
edit: i noticed that the database size has increased. last week it was 1.78 and now it is 1.81. so obviously something is being tracked but not displayed.
-
This reply was modified 3 years, 9 months ago by
René.
Plugin Support
Lap
(@lapzor)
You can install Advanced Cron Manager plugin and see if koko is in the cron queue and if there is something on top of the queue that may be stuck / if the queue is executing at all. Some hosting providers need you to setup a normal cron job to activate wp-cron.
Thread Starter
René
(@mobiflip)
Looks inconspicuous to me …
https://monosnap.com/file/gfLlEQpRnaY09L88jtdecoxl3kUupF
-
This reply was modified 3 years, 9 months ago by
René.
Plugin Support
Lap
(@lapzor)
If 29 seconds later you refresh that page, does it still have that other task that is supposed to run once in 14 days on the top? If so, can you remove that from the queue and then check back a minute later to see if Koko aggregate did finally run?
It will execute that queue from top to bottom so if that task on top never completes it can never reach the koko task.
Thread Starter
René
(@mobiflip)
i have disabled the inpsyde_phone-home_checkin cron. Unfortunately, that didn’t help. i have also started the koko cron manually. this also did nothing.
Thread Starter
René
(@mobiflip)
i found the following error https://monosnap.com/file/OGi4dp9lt5xFAh6RwazuvE82WqGokE under /wp-admin/index.php?page=koko-analytics#/. it could be related?
Plugin Support
Lap
(@lapzor)
Yes, on what page / when do you see that error?