Plugin Author
Adnan
(@hiddenpearls)
Hi @generosus Yea, only one other user reported this issue so far and We noticed, This is conflicting with Siteground Cache. As, All my sites are using Analytify and all these sites are on Cloudflare as well.
So, Can you share, you have Siteground Cache setup?
@hiddenpearls,
Yes, there’s a strong possibility that SG Optimizer is causing the issue.
Here’s the info you requested plus our Cloudflare Page Rules
SG Optimizer Caching Settings
Cloudflare Page Rules
Also, please refer to this SG Optimizer support topic. It may shed more light for fixing our issue.
Last, please know that SG Optimizer is now available to the public (not just SiteGround hosted websites). Can you guys test your website with SG Optimizer installed? If so, please test it with SGO (Full Page Caching) activated.
Looking forward to your fix or recommendation to “bypass” SG Optimizer’s caching or breaking of your widget’s stats.
Thank you!
Update:
We performed several in-depth tests of this issue. Results below.
Findings:
(1) The issue continued after deactivating ALL plugins (including SG Optimizer) and Cloudflare, except Analytify.
(2) Based on other users’ experience with SG Optimizer and their reports related to erratic stat reports, it appears using a Real Cron may be part of what’s causing our issue. We deactivated it, and are now using WP_CRON. Please refer to the support topics listed below for more information.
SG Optimizer: Real Cron Creating Issues with XML Feeds
SG Optimizer: Existing Images Stuck on Zero
SG Optimizer: Auto Purge Not Working With Comments
(3) We’re not sure if Analytify relies on REST API but, just in case, we re-enabled it for plugins (not just the Administrator).
So, after making the above changes, it appears the issue is fixed. Still monitoring.
Questions:
(1) Does Analytify rely WP_Cron alone – or – can we also use a Real Cron? If yes, please provide your code for using a real cron. For example:
php /home/customer/www/your-domain.com/public_html/wp-content/plugins/wp-analytify/wp-analytify.php /dev/null 2>&1
(2) Does Analytify rely on REST API? Does it need to be activated all the time – or – can we leave it on for Administrators only?
Thank you!
Questions: (continued)
(3) Does Analytify depend on XML-RPC? We have it disabled at this time.
Thank you!
Final Update | Root Cause Identified:
We performed additional tests and have concluded that our “random” issue is not random.
The issue (zero traffic) is being caused by your datepicker when we select “Today”.
Every day — and with “Today” selected — all of our statistics drop to zero around 6 PM local time, and return the next day around 6 AM local time. That’s every 12 hours.
When we select any other time interval with your datepicker, everything is OK.
We believe the issue started with V4.1.6 of your plugin (see below). We also believe your code (datepicker) for “Today” is tied to a 12-hour cron (or similar).
Kindly review and advise. A fix is appreciated.
Thank you!
——————–
4.1.6 – 2021-12-27
Bug Fix: Fixed the issue with the date picker that was showing incorrect start date.
Hi @generosus
Thank you for letting use know. We will appropriate changes in our next update.
@artisticasad,
Thank you. Looking forward to your fix.
If you don’t mind (apologies if I confused you), can you answer Questions (1), (2), and (3) above?
Again, thank you.
(1) Does Analytify rely WP_Cron alone – or – can we also use a Real Cron? If yes, please provide your code for using a real cron. For example:
php /home/customer/www/your-domain.com/public_html/wp-content/plugins/wp-analytify/wp-analytify.php /dev/null 2>&1
Analytify replies on WP_Cron. It is not supported by Real Corn so we cant provide any code at the moment.
(2) Does Analytify rely on REST API? Does it need to be activated all the time – or – can we leave it on for Administrators only?
Yes, Analytify dashboard stats relies on REST API, it best to leave them on as you are currently for Admin.
(3) Does Analytify depend on XML-RPC? We have it disabled at this time.
No, it doesn’t relies on XML-RPC.
Thank you!
@artisticasad,
Thank you. Very helpful. I’m closing this topic as “Resolved” but re-opening it under your plugin, “Google Analytics Dashboard Widget by Analytify” (more appropriate).
Cheerio.
Hi @hiddenpearls and @artisticasad,
Re-opening this topic. The Zero Stats issue reported here affects both this plugin and your plugin, Analytify Dashboard Widget.
To close the loop, please refer to this topic for more information.
We have sent you an email with all the details as well.
Thank you!
Great News!
Your plugin update, V4.2.2 (released today), fixed this issue. Hurrah!
You guys are awesome. Keep up the excellent work.
Cheers!