Comments (9)
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.
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:
from koko-analytics.
@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.
I took a full size screenshot.
koko_analytics_aggregate_stats is not showing up.
from koko-analytics.
Searching only for koko_analytics
from koko-analytics.
Another site located at another web host.
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.
Ok I am getting somewhere here.
Deactivated Duplicator Pro. Deactivated All in One Security plugin. Turned off the Brave shield.
Hard refreshed multiple times.
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.
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.
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.
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)
- Feature: Most viewed post of the day widget HOT 2
- Cron Job Hammering Stylesheet HOT 1
- Translate month and day names on dashboard
- Absolute and relative change make no sense for periods in (partial) future
- UTM Tracking in the URL HOT 3
- Weekdays and month names should not be hardcoded, WordPress or PHP localization should be used HOT 1
- Got this problem "Please wait, your Koko Analytics dashboard is booting up..." HOT 2
- Nonce for requests to REST API expire before WP admin session does
- Chart tooltip not showing day after SSR
- Optimized endpoint installation process
- Not tracking any new visitors
- Use colors from WordPress admin again? HOT 1
- Chart on WP dashboard empty for some users HOT 1
- Replace `script.js` with inline JavaScript? HOT 2
- Keyboard shortcuts? HOT 1
- Difference between demo and plugin install HOT 2
- Add exactly total visitors and pageviews as tooltips on mouse hover HOT 2
- String concatenation if number of visitors (from API response) is 0
- Exclude by IP address does not work properly with full page caching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koko-analytics.