Skip to content

Commit 8e2db51

Browse files
v1.7.0
1 parent 595ab67 commit 8e2db51

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

koko-analytics.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/*
44
Plugin Name: Koko Analytics
55
Plugin URI: https://www.kokoanalytics.com/#utm_source=wp-plugin&utm_medium=koko-analytics&utm_campaign=plugins-page
6-
Version: 1.6.7-dev
6+
Version: 1.7.0
77
Description: Privacy-friendly analytics for your WordPress site.
88
Author: ibericode
99
Author URI: https://www.ibericode.com/
@@ -34,7 +34,7 @@
3434

3535
namespace KokoAnalytics;
3636

37-
\define('KOKO_ANALYTICS_VERSION', '1.6.7-dev');
37+
\define('KOKO_ANALYTICS_VERSION', '1.7.0');
3838
\define('KOKO_ANALYTICS_PLUGIN_FILE', __FILE__);
3939
\define('KOKO_ANALYTICS_PLUGIN_DIR', __DIR__);
4040

readme.txt

+14-23
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://wordpress.org/support/plugin/koko-analytics/reviews/#new-po
44
Tags: analytics, statistics, stats, privacy, counter
55
Requires at least: 6.0
66
Tested up to: 6.7
7-
Stable tag: 1.6.7-dev
7+
Stable tag: 1.7.0
88
License: GPL-3.0-or-later
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010
Requires PHP: 7.4
@@ -151,6 +151,18 @@ You can [purchase Koko Analytics Pro](https://www.kokoanalytics.com/pricing/) to
151151

152152
== Changelog ==
153153

154+
155+
### 1.7.0 - Feb 25, 2025
156+
157+
- Compatibility with sites hosted on WP Engine (which does not allow writing files with the PHP extension to the WP Uploads directory).
158+
- Use relative paths in optimized endpoint file, so that the site itself can be moved around freely on the filesystem.
159+
- Run aggregator on `upgrader_process_complete` hook so that we can change aggregation logic without losing any data.
160+
- Only use optimized endpoint if the file still exists and is verified to be working. This allows removing the file to immediately switch to the default AJAX endpoint.
161+
- Fix a bug in the most viewed posts widget/shortcode that shows all posts instead of an empty result set.
162+
- Add group by option to chart.
163+
- Better align periods for comparisons.
164+
165+
154166
### 1.6.6 - Feb 18, 2025
155167

156168
- Fix same-page referrer detection when not using cookie.
@@ -773,26 +785,5 @@ If your WordPress root directory is not writable, go to the Koko Analytics setti
773785

774786
#### 1.0.4 - Dec 13, 2019
775787

776-
- Fix referrer URL's not being saved correctly.
777-
- Fix unique pageview detection
778-
- Fix pretty number with only trailing zeroes.
779-
- Fix bar chart not stacking properly.
780-
- Improved display of Twitter or Android app referrers.
781-
- Improved chart tooltip.
782-
- Improved styling for small mobile screens.
783-
- Trim trailing slashes from referrer URL's.
784-
- Escape all strings coming from translation files.
785-
- Filter out common bots by checking user agent in tracking script.
786-
787-
788-
#### 1.0.3 - Dec 6, 2019
789-
790-
- Fix link to settings page from plugins overview page.
791-
- Fix REST API URL's when not using pretty permalinks.
792-
- Add support for tracking AMP-powered pages.
793-
- Add setting to disable cookie usage.
794-
- Handle network request errors on admin pages.
795-
- Return HTTP 500 error when unable to write to buffer file.
796-
- Simplify adding post title to post type statistics.
797-
- ...
788+
- Fix referrer URL's not being ...
798789

src/class-shortcode-site-counter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function content($args)
4141
$stats = new Stats();
4242
$totals = $stats->get_totals($start_date, $end_date, $id);
4343
$count = $args['metric'] === 'pageviews' ? $totals->pageviews : $totals->visitors;
44-
set_transient($cache_key, $count, 5*60);
44+
set_transient($cache_key, $count, 5 * 60);
4545
}
4646

4747
return '<span class="koko-analytics-counter">' . $count . '</span>';

0 commit comments

Comments
 (0)