Title: Modifying the Widget + Feature Request
Last modified: February 12, 2020

---

# Modifying the Widget + Feature Request

 *  Resolved [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/)
 * Heya there,
 * Iam having Koko Analytics running since yesterday and iam very pleased about 
   the slim Design. Ive two questions about the Plugin.
 * 1. How can i modify the Koko Popular Post Widget to show Topics in a time range
   of 24 hours or 2 days instead of 7?
 * 2. (Feature Request) Is it possible to make a Filter Function in the Admin Area?
   Like for showing hits and pageviews which include a specific keyword?
 * Sincerely
    Stefan

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12424966)
 * Hello [@santacruze](https://wordpress.org/support/users/santacruze/),
 * 1. You can’t do that easily right now, but I’ve just [changed the widget form so that you can use any number of days](https://github.com/ibericode/koko-analytics/commit/0ff30d535edfb15ab7cd01e8ee229aa8e2737232)
   instead of only the options from the dropdown. This will be included in the next
   plugin update, which I hope to release later this week. Thanks for bringing it
   to my attention!
 * 2. Can you elaborate on what you would like this to look and function like please?
   Like a search box that lets you search through the pages in the “Pages” and “
   Referrers” table?
 *  Thread Starter [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12425149)
 * Heya Danny,
 * Thanks for the quick heads up.
 * About 2: Yeah, a search box to show hits from pages which include a specific 
   keyword in the permalink or title would be nice. I have a similar function in
   slimstat analytics where you can filter hits and pageviews from a specific word
   in permalinks.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12435659)
 * Hey [@santacruze](https://wordpress.org/support/users/santacruze/),
 * Noted – I think that is indeed a neat idea. It’s on my list of things to look
   add!
 * Also just released version 1.0.8 in which you can specify any number of days 
   for the most viewed posts widget.
 *  Thread Starter [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12437268)
 * Hey Danny,
 * Thanks for the quick heads up. I already installed the latest Version 🙂 But 
   i encounter a new problem now. Since the Update it Shows me the following msg:
 * “There seems to be an issue with your site’s WP Cron configuration that prevents
   Koko Analytics from automatically processing your statistics. If you’re not sure
   what this is about, please ask your webhost to look into this.”
 * But Tracking seems to be working.
 *  Thread Starter [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12437784)
 * Btw.
 * Google Chrome Developer Console tells me that:
 * admin.js?ver=1.0.8:6 Unexpected date in response data 2020-02-11
    (anonymous)
   @ admin.js?ver=1.0.8:6 (anonymous) @ admin.js?ver=1.0.8:6 Promise.then (async)
   value @ admin.js?ver=1.0.8:6 value @ admin.js?ver=1.0.8:6 value @ admin.js?ver
   =1.0.8:6 Au @ admin.js?ver=1.0.8:22 t.unstable_runWithPriority @ admin.js?ver
   =1.0.8:30 Qa @ admin.js?ver=1.0.8:22 Ru @ admin.js?ver=1.0.8:22 ku @ admin.js?
   ver=1.0.8:22 yu @ admin.js?ver=1.0.8:22 as @ admin.js?ver=1.0.8:22 (anonymous)
   @ admin.js?ver=1.0.8:22 Eu @ admin.js?ver=1.0.8:22 cs @ admin.js?ver=1.0.8:22
   render @ admin.js?ver=1.0.8:22 (anonymous) @ admin.js?ver=1.0.8:44 n @ admin.
   js?ver=1.0.8:1 (anonymous) @ admin.js?ver=1.0.8:1 (anonymous) @ admin.js?ver=
   1.0.8:1
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12445005)
 * Hello [@santacruze](https://wordpress.org/support/users/santacruze/),
 * Does your by any chance website have a low number of visitors, say less than 
   one per hour?
 *  Thread Starter [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12445292)
 * Heya Danny,
 * Well my Blog got about 2k Visitors per day. But i think it could also be a problem
   of the cronjob. Actually iam moving on to another hoster. Maybe the problem will
   be gone by then.
 * Sincerely
    Stefan
 *  Thread Starter [SantaCruze](https://wordpress.org/support/users/santacruze/)
 * (@santacruze)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12446424)
 * Hey Danny,
 * The Errors are gone on the new Server. But iam running into another problem. 
   The Cronjob “koko_analytics_aggregate_stats” seems to be running every minute.
   Is this supposed to be right?
 * Sincerely
 * Stefan
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12449307)
 * Hi [@santacruze](https://wordpress.org/support/users/santacruze/),
 * Awesome, happy to hear it. The cronjob is indeed running every minute, but it
   will immediately quit if there is no work to be done so it’s not like this is
   taking up a lot of resources.
 * The way this works is that the plugin temporarily stores each pageview in a simple
   append-only file and then only aggregates them once every minute, as this prevents
   your database from getting hammered and allows the plugin to easily handle thousands
   of pageviews per minute.
 * If there were no pageviews in the last minute, the cronjob immediately finishes.
 * So it looks like you’re all set now!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Modifying the Widget + Feature Request’ is closed to new replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/modifying-the-widget-feature-request/#post-12449307)
 * Status: resolved