Giter Club home page Giter Club logo

Comments (9)

dannyvankooten avatar dannyvankooten commented on June 2, 2024

Hello @paaljoachim,

It's not the tracking that isn't working but the background aggregation process. This means that your WP Cron schedule isn't working as expected, which is usually due to some other process blocking the WP Cron thread by having a scheduled task in there that never finishes. Any scheduled task due after this broken task (like the one Koko Analytics uses for aggregating statistics) will not run until this task is cleared from your scheduled events list.

We also run this aggregation process whenever you visit the analytics page in your WordPress admin to ensure you're viewing the latest data. This is why you're only seeing statistics on the days you actually visit your dashboard.

You can install a plugin like Advanced Cron Manager to debug which scheduled event is at the top of the list that never finishes.

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

Hey @dannyvankooten Danny

Thank you for the response!
I went ahead and installed and activated Advanced Cron Manager.
Went to Tools -> Cron Manager.
I am not seeing anything that is stuck in the top.

This is what I see:

Cron Manager screen

from koko-analytics.

dannyvankooten avatar dannyvankooten commented on June 2, 2024

@paaljoachim Can you search for koko_analytics_aggregate_stats in the list of events? It should be scheduled to run every minute.

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

I took a full size screenshot.

easywebdesigntutorials com_wp-admin_tools php_page=advanced-cron-manager

koko_analytics_aggregate_stats is not showing up.

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

Searching only for koko_analytics

Screenshot 2023-12-13 at 12 52 20

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

Another site located at another web host.

Screenshot 2023-12-13 at 12 55 44

At the above site the Brave shield is up. Not deactivated as I have done with the easywebdesigntutorials.com web site.

NB. This might be a plugin conflict issue. I am exploring now...

All in One Security plugin looks like is impacting the: koko_analytics_aggregate_stats seen in the Cron Manager list for this specific site. As koko_analytics_aggregate_stats did actually show up when I deactivated All in One Security plugin.


I explored another site. Turned off Brave shield. Turned off the All in One Security plugin. Cleared the cache, but koko_analytics_aggregate_stats is still not showing up there.


I am not yet been able to figure out what is actually going on.

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

Ok I am getting somewhere here.

Deactivated Duplicator Pro. Deactivated All in One Security plugin. Turned off the Brave shield.
Hard refreshed multiple times.

Screenshot 2023-12-13 at 13 15 38


I reactivated Brave shield. Did multiple hard refreshes to see if koko_analytics_aggregate_stats still showed up in the list. ---> It showed up.

I reactivated All in One Security plugin. Did multiple hard refreshes to see if koko_analytics_aggregate_stats still showed up in the list. ---> It showed up.

I reactivated Duplicator Pro. It initially showed koko_analytics_aggregate_stats but after a bunch of hard refreshes it hid koko_analytics_aggregate_stats from the Crom Manager list.

Screenshot 2023-12-13 at 13 23 21

I thought that the error in Duplicator Pro had been fixed. I will now share this Github issue with the Duplicator Pro support.

(I am not fully sure that it is Duplicator Pro but it seems like the most logical thing based on the above tests.)

from koko-analytics.

dannyvankooten avatar dannyvankooten commented on June 2, 2024

Hello @paaljoachim,

That looks more like it! If it helps, here's when that event should be scheduled:

  • Upon activating the Koko Analytics plugin.
  • And because this is such an important scheduled event, the Koko Analytics plugin also verifies (and re-creates if it isn't there) the scheduled event upon every POST request in your WP Admin, eg when saving the Koko Analytics plugin settings or saving your WordPress general settings.

So with the above already in place, it's still a bit of a mystery to me why the event isn't there for you. If another scheduled event is hanging the wp cron queue then it should still show up as a scheduled event, just way overdue.

That said, it almost has to be any of the other plugins running on your website though. It could be that one is modifying the scheduled events entry in your database incorrectly or something along those lines...

from koko-analytics.

paaljoachim avatar paaljoachim commented on June 2, 2024

Hey @dannyvankooten

I got the bugs shaken off. Deactivating Duplicator Pro. Doing a bunch of hard refreshes brought the daily stats back again working as it should. I am in contact with Duplicator support to get this thing fixed.

Thanks for being there! Buzz me when a good time would be for me to create a tutorial showing off Koko Analytics. Thanks.

from koko-analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.