ibericode / koko-analytics Goto Github PK
View Code? Open in Web Editor NEWPrivacy-friendly, open-source and lightweight analytics for your WordPress site.
Home Page: https://www.kokoanalytics.com/
License: GNU General Public License v3.0
Privacy-friendly, open-source and lightweight analytics for your WordPress site.
Home Page: https://www.kokoanalytics.com/
License: GNU General Public License v3.0
At first, I thought I was making a mistake when installing the project via the command line, but it is happening also from the WordPress official repo.
It has happened in my live website and also in my local environment.
Inside phpMyAdmin, the table koko_analytics_referrer_urls
was missing (as well as the wp-option koko_analytics_settings
). Naturally, the plugin admin area didn't show anything!
To fix it, I created the table koko_analytics_referrer_urls
by myself, and that fixed the issue.
I found this explanation on StackOverflow, but I am not sure exactly how to fix it.
Perhaps an important note: I am using a custom table prefix.
Let me know if you need more info π.
Noticed the tracker was causing 400 errors via Chrome devtools as shown here. This was due to my CDN serving up an old copy of the scripts.js file. I was able to manually correct by purging my CDN. I'm wondering if cache busting could be built into the plugin itself. One method would be to rename scripts.js to a dated version and updated if it includes breaking changes.
As a start, we can support holding ALT
while clicking to jump to the last page right away?
It adds the number pageviews to visitors, instead of overlapping. How I could have missed this, I donβt know. At least it seems no one noticed yet. π
Currently, Koko Analytics sets a simple cookie that expires in 6 hours to keep track of pages viewed so we can determine whether a pageview is unique.
A setting to disable the cookie would stop us from detecting new visitors or unique pageviews, but it may be worth it for some that don't want to set a cookie in the visitor's browser.
Notify when done:
Please vote on this feature suggestion using π or π below.
For a lot of us the WordPress Dashboard serves little to no use, it would be super cool to have an option to redirect the Dashboard to the Analytics page instead.
Please vote on this feature suggestion using π or π below.
Send a weekly or monthly e-mail report to the client with all the most important information. This is important for those clients that don't access the dashboard frequently or ever. Thank you for your amazing work!!
Please vote on this feature suggestion using π or π below.
For each new site visitors, keep track of their browser type and perhaps major version number.
Please vote on this feature suggestion using π or π below.
See data for kokoanalytics.com as an example. The https://news.ycombinator.com/ referrer is showing up twice, both with and without a trailing slash. This should probably be a single row as it's pretty much the default for routing to not care.
When visiting a date range containing only two days, Koko shows a completely blank screen (due to a javascript error).
[Error] RangeError: Invalid time value β admin.js:1:29852
Select two dates next to each other, and refresh the page.
(Alternatively, just visit https://yoursite.com/wp-admin/index.php?page=koko-analytics#/?start_date=2020-1-28&end_date=2020-1-29)
Another form of this bug occurs if, when making a date selection, the user chooses only a single date, then refreshes the page before selecting the second date.
Since the date range is stored in Local Storage, refreshing the page doesn't help. Nor does manually specifying different dates. The user needs to empty their browser's Local Storage.
Like we do with pages, posts and other post types, we can also keep track of internal search queries.
Please vote on this feature suggestion using π or π below.
This is not an exhaustive list, so suggestions are welcome.
Like we keep track of post, page and post type views, we could also keep track of pages that return a 404 page not found error. This can be helpful in discovering dead links.
Please vote on this feature suggestion using π or π below.
Like category and tag pages. Currently these are ignored, to save some processing and because usually they are not as important as the homepage and singular post-type pages.
Please vote on this feature suggestion using π or π below.
I'd like to suggest adding the option to show the last 28 days in the main chart - similar to the last 14 days view of the dashboard widget.
Last 28 days is the default view in Google Analytics, and I think there are good reasons for this. For instance, it is the best use of screen "real estate", as most other views that include the current day (e.g. this week, month, year) also show future days without any data yet. In contrast to that, a "floating" view of xx days would make sure that the chart always shows the maximum amount of data and information possible.
However, I also understand that there has to be a limit regarding the one-click options for the date picker.
My idea would be to limit the other options to "today, this week, this month, this year" and add the option to click through to the previous/next respective period (maybe with arrows above the chart like in the visits and pageview tables).
So when I want to see the stats for december I would switch to "this month" and then navigate back via the arrows.
This is useful as it explains about dips in traffic. On a weekend: expected. During the week: what up with that.
Ctrl + Arrow key isn't working for me in Firefox on OSX to cycle through date ranges.
This is one of those features that while cool, I never really use it or use it for decision making. So I am fine leaving this out personally.
Please do let me know in the comments below if you feel otherwise though, I might be overlooking something.
Please vote on this feature suggestion using π or π below.
I am not sure if this feature might break the privacy following the plugin has, but it would be a super nice feature to include.
Personally, I would find this feature useful when I am testing something and I need to be logged off from my WordPress site to do it properly (normally, I just go into Incognito Mode, or a different device that I am not signed in).
Excluding by IP address is a good and standard way of doing this. What do you think?
Please vote on this feature suggestion using π or π below.
Now that #16 is merged into master, when the use of a cookie is disabled, Koko Analytics can no longer determine whether a visitor is returning so the number of visitors and the number of pageviews will always be the same.
We should probably just hide the "visitors" column in those cases.
Hey,
Love this extension - great work!
One feature I'd like is to see what search engine phrases people are using to find my site.
Is this possible?
Cheers!
Two issues, to be precise :-)
First, the numbers just don't seem to match up. Intuitively, I would expect a comparison between the period that is currently selected and the respective period preceding it.
So for instance: week 10 had 10.000 pageviews, week 11 had 11.000 pageviews. When selecting week 11, it should put out "1K more than previous period / +10%".
However, it doesn't do that at all. Generally speaking, the numbers are way too high, in one case even indicating there were 13K less pageviews although the pageviews were exactly the same for both weeks.
I'm using Koko Analytics without Cookies, so maybe it has something to do with that?
And second, the "less than previous period / more than previous period" strings are not translateable right now. If you set this up with the next update, we could have a 100% German version of Koko Analytics soon :-)
Technically this is a little hard to build into the current set-up, but there are options. Visitors is problably impossible without hurting performance and/or the privacy centric approach, but pageviews in last X minutes should be doable.
Please vote on this feature suggestion using π or π below.
Personally I feel event tracking, like keeping track of the number of people submitting a contact form, is one of the most important metrics for a lot of website where the main goal is to get people to reach out to the website owner.
Two possible ways of going about this:
We could start out with just the manual approach and when that's working well enough, slowly shift to a more automated way.
Please vote on this feature suggestion using π or π below.
Hi, I think this is a really great product. One suggestion would be to remove the query string from referrers, or show it separately. If you have a long query string then it completely messes up the display:
I am thinking something similar to this (although this does compress referrers by changing the different locales of Google, Facebook etc to a single entry):
For example the REST routes can return 404
when the server is misconfigured, causing the client-side Koko application to choke on the data.
Would be nice if data could be purged after a set number of days, months or years.
This shouldn't normally be necessary for performance or storage size reasons given that data only takes up a single row per day, but I'd say that it's almost never really required to see how your website was doing 5 years ago.
Please vote on this feature suggestion using π or π below.
Add setting to be able to purge data older than a date range or being able to set data to only be stored for XX number of days.
Instead of having the hover the stacked bar specifically, show both totals right away.
Hi, I am testing on one of my websites alongside Google Analytics Dashboard for WP (GADWP) and everything seems to work great apart from one thing!
It counts views but fails to display the Title/Link of WP Events Manager (https://wp-events-plugin.com/) posts (see attached).
Let me know if you need me to run any tests or require additional info.
David
For each new site visitors, keep track of their operating system.
Personally I feel this is almost never required. It has certainly never influenced any decision I made in building or managing a website.
Please vote on this feature suggestion using π or π below.
Hello! I stumbled upon your plugin and immediately was hooked! Just yesterday I was researching for Google Analytics alternatives, but hadn't thought about a built-in solution! I have been meaning to contribute to open-source projects, so here it goes!
In my opinion, the current system to exclude pageviews by user role is clunky. For example, once a single user is selected, there is no way to unselect it.
In the screenshot I have attached, I propose a different system. I am not going to explain it, as I think it is a pretty common and intuitive system, understood by the majority.
What do you guys think? π
For each new visitor, we could keep track of the browser language and show stats (like a pie chart) on the language distribution. Unlike geo-location IP addresses, this does not require installation of a geo-IP database, so it would be a relatively easy and cheap (in terms of computing power) operation to add.
Please vote on this feature suggestion using π or π below.
This could be useful for people showing their Koko Analytics on a dashboard and leaving it open for hours at a time.
Minimum interval should be 1 minute, as that is the interval used by the aggregation process.
For each new site visitor, keep track of their device type so we can show a simple device split in the totals bar at the top of the dashboard page.
Personally I think a "mobile" and "desktop" split is good enough, but I'd love to get some input on this from others.
Please vote on this feature suggestion using π or π below.
I think the daily stat collection makes sense as the default option. That goes with the performance focus of the plugin. I would be interested to see an hourly increment option. Even if that includes a warning that it may impact performance.
Also an hourly option would allow me to potentially import historically stats from another open source stats tracking system. π
Please vote on this feature suggestion using π or π below.
For example, to make it easier to migrate data for Koko Analytics alone from one website to another website.
Would also help in #7 so data can be stored permanently while also purging it from the production database.
Please vote on this feature suggestion using π or π below.
As requested here: https://wordpress.org/support/topic/today-view-and-default-view/
Alternatively, do not use a setting but switch to the last known view instead? So if you navigate away after looking at the "this month" view and then return through the menu link on the left, the "this month" view is re-opened.
As pointed out by @hchouhan
To make it much easier to determine trends over longer periods of time, especially in the yearly view.
Please vote on this feature suggestion using π or π below.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.