#koko-analytics — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #koko-analytics, aggregated by home.social.
-
Klant vraagt om Google Analytics te koppelen aan haar website. Ik vraag wat ze er mee van plan is en installeer #KokoAnalytics, om te kijken of dat ook voldoet.
Reactie:
"Dankjewel voor het installeren van Koko Analytics!
Dit is eigenlijk precies wat ik nodig heb/wou doen bedankt."@dvk Goed gewerkt Danny! 😎
-
Which version of the Koko Analytics dashboard do you prefer?
Left (current) or right (concept)?
-
Net op een kleine #WordPress site 160MB schijfruimte vrijgemaakt door Independent Analytics te vervangen door #KokoAnalytics.
Dat scheelt al een geoip database van 133 MB! -
Koko Analytics Pro 2.2.0 just went out, introducing browser/operating system/device stats! 🎉
The new version also comes with a filter hook that allows you to completely disable any feature you don't want to use, stopping all related code from being loaded.
As always, let me know in case of any hiccups.
-
Beta testing a new and much requested feature for Koko Analytics: browser/os/device counting!
May be stating the obvious, but just to make sure everyone knows how privacy is preserved:
- No specifics, only the general browser/os/device family are stored.
- The User Agent itself is never stored.
- Everything happens locally.
- The feature will be opt-in and for users of Koko Analytics Pro only. -
Die Blogstatistik 2025
Also eigentlich bin ich ja schon mitten im Jahr drin. Die Steuererklärung ist angefangen. Allerlei rechtliches Zeugs ist auf dem neuesten Stand, Sicherungen sind durch, usw. Und so ganz nebenbei ist es nun natürlich auch ganz interessant auf die Statistiken für den Blog hier zu schauen. Ende Oktober hatte ich schon mal ausführlicher erklärt und gezeigt wie ich was an Zahlen verfolge und was für Auswirkungen das auf den Blog hat. Daran hat sich nicht viel verändert. Die Zahlen verfolge […] -
The settings page for Koko Analytics was growing a little unwieldy.
Some users were forgetting to hit the "save changes" button because it was pushed off screen - and a lot of web apps save automagically after every change nowadays.
So... time to clean things up! Was not looking forward to this but am getting excited now it's clear how big of an improvement this will be.
-
Hi Danny,
Just saw a small design glitch in the (posts and) pages statistics. When a post or page title exceeds a certain length, the column displaying the number of views is rendered invisible. See screenshot.
Furthermore, I love that #PostFormat archives are now tracked as well.
-
It's beta testing day. Earlier I was testing Koko Analytics 2.0.0 and now I'm working on MainWP Dashboard 5.5.
It's great to help a bit in the development of your favorite tools that you use every day.
-
https://social.emucafe.org/naferrell/newsbreak-app-07-31-25/
I set up a Google News Feed for The New Leaf Journal and registered the site with Google News a few weeks ago (I should do that here too). I did not see any obvious surge in traffic from Google. However, my new articles on local scenes in Brooklyn, New York, have suddenly started doing well on their first days, with Koko Analytics showing what appears to be matching referrals from newsbreakapp[dot]com. I conducted some cursory research and learned that Newsbreak App appears to be a proprietary algorithmic reader app for Android and iOS. Strangely, when I try to go to its website, I get a refuse to connect error (regardless of whether I have Mullvad VPN or adblocking enabled). In any event, count me a fan of random apps sending traffic to articles that typically do not do well in traditional search.
-
Wat gebruik jij voor statistieken op je #WordPress site? Voor mij en veel klanten al lang geen Google Analytics meer, maar een privacy vriendelijk alternatief: Koko Analytics!
Op https://joskleverwebsupport.nl/koko-analytics/ heb ik de functies beschreven.
Voor onderhoudsklanten heb ik ook nog eens een mooi aanbod, want je kunt dan de Pro versie gebruiken voor slechts € 1,- per maand!
-
Five Years of the Koko Analytics WordPress Plugin
https://thenewleafjournal.com/five-years-of-the-koko-analytics-wordpress-plugin/
Commemorating five years of using Koko Analytics for The New Leaf Journal.
-
@dvk Heb je al eens overwogen om een #MainWP extensie te maken voor #KokoAnalytics
Ik denk aan:
- Statistieken inzien vanuit een centraal dashboard voor alle sites met Koko.
- Het opnemen van die statistieken in rapportages.Het geeft je een flink stuk extra zichtbaarheid en dus naamsbekendheid. 🙂
Op https://www.youtube.com/watch?v=01KaWaQ14BA staat het e.e.a. kort uitgelegd.
-
@hgg Ähnliche Erfahrung mit sinkenden Zugriffszahlen (#KokoAnalytics), obwohl ich diese Woche doch über chatGPT als Referrer schmunzeln musste.
Werde mich demnächst mal mit llms.txt beschäftigen müssen. Des Weiteren bin ich auf erste Ergebnisse des AI Teams von #WordPress (.org) gespannt.
-
I like seeing new referring sites in my Koko Analytics logs. I am not so sure about seeing sites which offer school papers for a fee, however.
https://thenewleafjournal.com/dubious-school-paper-service-referral/
-
🆕 blog! “Import JetPack Statistics into Koko”
I've quit JetPack stats. I've moved to Koko Analytics. All the stats code is self hosted, it is privacy preserving, and the codebase is small and simple. But I am vain. I want all my old JetPack stats to appear in Koko so I can look back on the glory days of blogging. Koko has […]
👀 Read more: https://shkspr.mobi/blog/2024/10/import-jetpack-statistics-into-koko/
⸻
#KokoAnalytics #statistics #WordPress -
Import JetPack Statistics into Koko
https://shkspr.mobi/blog/2024/10/import-jetpack-statistics-into-koko/I've quit JetPack stats. I've moved to Koko Analytics. All the stats code is self hosted, it is privacy preserving, and the codebase is small and simple.
But I am vain. I want all my old JetPack stats to appear in Koko so I can look back on the glory days of blogging.
Koko has two main tables. The first is a summary table called
datevisitorspageviews2009-10-3025472009-10-3170862009-11-016172wpbp_koko_analytics_site_stats:That's the total number of visitors and page views for each date.
Then there's a more detailed breakdown at
dateidvisitorspageviews2009-10-30123222009-10-30456562009-10-3078911wpbp_koko_analytics_post_statsThat shows every individual post's number of views and visitors per day.
WordPress's database is MySQL. It can handle CSV imports. So, given these tables are pretty simple, it is possible to get the old WordPress stats, convert them to CSV, and then import them.
Let's go!
As described in a previous post, the JetPack stats API is fairly basic. It doesn't differentiate between visitors and pageviews. So, for this import, we'll pretend they're the same.
This will be a 4 step process.
1. Get all your stats in JSON format
This code loops through your stats and downloads a JSON file for each one.
You will need:
- Your API key - find it at https://apikey.wordpress.com/
- Your blog's web address - I assume you know this
- The earliest date you have for JetPack - you will need to find this yourself
import requestsimport datetimeimport osimport json# Directory to save the JSON filessave_dir = "jetpack_stats"os.makedirs(save_dir, exist_ok=True)# URL of the APIbase_url = "https://stats.wordpress.com/csv.php?api_key=123456789012"+\ "&blog_uri=https://example.com/"+\ "&table=postviews"+\ "&days=1"+\ "&format=json"+\ "&limit=-1"+\ "&end="# Make API call and save the responsedef fetch_and_save_json(date): # Format the date as ISO8601 (YYYY-MM-DD) formatted_date = date.isoformat() # Make the API call url = f"{base_url}{formatted_date}" response = requests.get(url) if response.status_code == 200: data = response.json() file_name = f"{formatted_date}.json" file_path = os.path.join(save_dir, file_name) with open(file_path, "w") as f: json.dump(data, f, indent=4) print(f"Saved {formatted_date}") else: print(f"Failed! {formatted_date} status code: {response.status_code}")# Iterate over a date rangestart_date = datetime.date(2020, 1 , 1)end_date = datetime.date(2024, 10, 30)# Loop through all dates current_date = start_datewhile current_date <= end_date: fetch_and_save_json(current_date) current_date += datetime.timedelta(days=1)2. Generate The Individual Posts' Stats
This takes those JSON files and creates a single CSV ready to upload to
wpbp_koko_analytics_post_stats.import osimport jsonimport csv# Directory where the JSON files are storedjson_dir = "jetpack_stats"# List to hold the loaded dataall_data = []json_files = sorted( [ file for file in os.listdir( json_dir ) if file.endswith( ".json" ) ] )# Loop through all files in the directoryfor file_name in json_files : if file_name.endswith( ".json" ) : file_path = os.path.join(json_dir, file_name) with open(file_path, "r") as json_file : data = json.load(json_file) all_data.append(data) # Add the data to the listprint(f"Total files loaded: {len(all_data)}")with open( "wpbp_koko_analytics_post_stats.csv", "w", newline="") as csvfile: csvwriter = csv.writer( csvfile, delimiter="," ) for stat in all_data: for views in stat[0]["postviews"] : csvwriter.writerow( [ stat[0]["date"], views["post_id"], views["views"], views["views"] ] )3. Generate the total site views
It is possible to get this separately from the JetPack API using
&table=views- but that's a lot more API calls. So we're just going to sum it up instead 😄This, again, inserts a dummy value for visitors.
import pandas as pdinput_csv = "wpbp_koko_analytics_post_stats.csv"output_csv = "wpbp_koko_analytics_site_stats.csv"column_names = ['Date', 'Post ID', 'Visitors', 'Page Views']df = pd.read_csv( input_csv, names=column_names )# Group by Date and sum the Page Viewsdf_grouped = df.groupby( "Date" )["Page Views"].sum().reset_index()# Add a new column with a copy of the Page Viewsdf_grouped['Visitors'] = df_grouped['Page Views']# Rename the Page Views column to Total Page Viewsdf_grouped = df_grouped.rename(columns={"Page Views": "Total Page Views"})# Write the dataframe to the output CSV filedf_grouped.to_csv( output_csv, index=False, header=False )4. Upload to MySQL
You're on your own here, Sparky. If you have something like PHPMyAdmin, you should be able to load the file in directly. Anything else… good luck!
Once done, your stats dashboard should be filled with historic data.
Huge thanks to Koko Analytics for providing such a great tool and answering my questions.
https://shkspr.mobi/blog/2024/10/import-jetpack-statistics-into-koko/
-
My good friend and New Leaf Journal colleague Victor V. Gurbo’s June 2021 article about grafting a brass bird’s head cane handle to an umbrella (https://thenewleafjournal.com/b/1dw) is going crazy on The New Leaf Journal at the moment. But wherever the hits are coming from aren’t sending referrer headers that I’m picking up. Mysterious.
-
@binarymoon Then you should have a look at https://wordpress.org/plugins/analytics-insights/ which has a good dashboard widget as well, but keeps things basic.
Personally I've stopped using GA on my sites and most of my clients as well. We've moved to Koko Analytics (https://wordpress.org/plugins/koko-analytics/) with simple stats that are enough for lots of sites. It's privacy friendly and doesn't need 3rd party accounts.
-
Tiny weekend open source experiment: Had the idea to fork the great #KokoAnalytics plugin (by @dvk) and make it work like Plausible & Co: Add multiple sites with domains and track pageviews for each site in a privacy-friendly (cookie less way).
Goal: Privacy-friendly analytics on every (cheap) PHP webhost. Because all of them offer WordPress, not all offer composer/SSH e.g. for Laravel Filament, etc.
Let's see how far I'll get 🤓 https://github.com/mandrasch/pet-project-analytics
-
Opschoonactie gehouden op #WordPress websites van klanten:
- Jetpack verwijderd, wanneer er geen account is gekoppeld of modules zijn ingeschakeld.
- #GoogleAnalytics plugins zonder koppeling of met een UA koppeling verwijderd en vervangen door #KokoAnalytics -
Presenting the 54 most-visited New Leaf Journal articles of 2023, in dialogue format. For WordPress admins out there, I use Koko Analytics, an open source and entirely local page counting solution for stats.
https://thenewleafjournal.com/new-leaf-journal-year-in-review-2023/
-
Our 24 most-visited articles of Jan 1-June 30, 2023, with links to each. Note that the ranking comes with the caveat that statistics come from Koko Analytics, which is an entirely local WordPress page counter with no third party scripts or connections. It respects Do Not Track and does not work for users who block JS, so it is (by design) not as robust as commercial solutions. However, I have found that its recording of Google referrers is usually fairly close to what I see in Google Search Console (formerly Webmaster), so I'll count it as close enough for all normal, non-creepy purposes.
https://thenewleafjournal.com/most-visited-nlj-articles-of-1h-2023/
-
For #Webmaster who maintains sites on #Wordpress, I just discover a simple tools for basic #analytics (plug-in) : #KokoAnalytics (not tested yet) › https://kokoanalytics.com
-
...According to our local and privacy-friendly analytics solution, Koko Analytics.
https://thenewleafjournal.com/koko-analytics-wordpress-review/
-
A short piece on discovering Cốc Cốc Search, a Vietnamese search engine, in my referrer logs.
-
I published a detailed review of Koko Analytics, a small privacy-friendly FOSS WordPress plugin created by ibericode after using it at The New Leaf Journal for 18 months. It has its built-in limitations, but I think that it is a great choice for certain use-cases that reliably counts pageviews and certain referrers and respects visitors.
https://thenewleafjournal.com/koko-analytics-wordpress-review/
#wordpress #plugin #analytics #foss #privacy #kokoanalytics #newleafjournal #TheNewLeafJournal
-
Ko Ko for Koko Analyics – Early Impressions
https://thenewleafjournal.com/ko-ko-for-koko-analyics-early-impressions/
Early impressions of a privacy-friendly analytics solution for The New Leaf Journal, replacing Google.