Version Description
- [Fix] The new table columns "location" and "city" were not being created on a fresh install (thank you, nielsgoossens)
- [Fix] Async mode was not working as expected (thank you, keithgbcc)
Download this release
Release Info
Developer | coolmann |
Plugin | Slimstat Analytics |
Version | 4.7.2.1 |
Comparing to | |
See all releases |
Code changes from version 4.7.2 to 4.7.2.1
- admin/js/slimstat.admin.js +1 -1
- admin/wp-slimstat-admin.php +4 -0
- browscap/browser.php +1 -1
- readme.txt +5 -1
- uninstall.php +3 -3
- wp-slimstat.php +2 -2
admin/js/slimstat.admin.js
CHANGED
@@ -256,7 +256,7 @@ jQuery(function(){
|
|
256 |
});
|
257 |
|
258 |
// Asynchronous Reports
|
259 |
-
if (SlimStatAdminParams.async_load == '
|
260 |
jQuery('div[id^=slim_]').each(function(){
|
261 |
report_id = jQuery(this).attr('id');
|
262 |
data = {action: 'slimstat_load_report', report_id: report_id, security: jQuery('#meta-box-order-nonce').val(), current_tab: SlimStatAdminParams.current_tab}
|
256 |
});
|
257 |
|
258 |
// Asynchronous Reports
|
259 |
+
if (SlimStatAdminParams.async_load == 'on'){
|
260 |
jQuery('div[id^=slim_]').each(function(){
|
261 |
report_id = jQuery(this).attr('id');
|
262 |
data = {action: 'slimstat_load_report', report_id: report_id, security: jQuery('#meta-box-order-nonce').val(), current_tab: SlimStatAdminParams.current_tab}
|
admin/wp-slimstat-admin.php
CHANGED
@@ -261,7 +261,11 @@ class wp_slimstat_admin {
|
|
261 |
ip VARCHAR(39) DEFAULT NULL,
|
262 |
other_ip VARCHAR(39) DEFAULT NULL,
|
263 |
username VARCHAR(255) DEFAULT NULL,
|
|
|
264 |
country VARCHAR(16) DEFAULT NULL,
|
|
|
|
|
|
|
265 |
referer VARCHAR(2048) DEFAULT NULL,
|
266 |
resource VARCHAR(2048) DEFAULT NULL,
|
267 |
searchterms VARCHAR(2048) DEFAULT NULL,
|
261 |
ip VARCHAR(39) DEFAULT NULL,
|
262 |
other_ip VARCHAR(39) DEFAULT NULL,
|
263 |
username VARCHAR(255) DEFAULT NULL,
|
264 |
+
|
265 |
country VARCHAR(16) DEFAULT NULL,
|
266 |
+
location VARCHAR(36) DEFAULT NULL,
|
267 |
+
city VARCHAR(255) DEFAULT NULL,
|
268 |
+
|
269 |
referer VARCHAR(2048) DEFAULT NULL,
|
270 |
resource VARCHAR(2048) DEFAULT NULL,
|
271 |
searchterms VARCHAR(2048) DEFAULT NULL,
|
browscap/browser.php
CHANGED
@@ -160,7 +160,7 @@ class slim_browser {
|
|
160 |
$unzip_done = unzip_file( $browscap_zip, wp_slimstat::$upload_dir );
|
161 |
|
162 |
if ( !$unzip_done || !file_exists( self::$browscap_autoload_path ) ) {
|
163 |
-
|
164 |
$GLOBALS[ 'wp_filesystem' ]->rmdir( dirname( self::$browscap_autoload_path ) . '/', true );
|
165 |
wp_slimstat::$settings[ 'browscap_last_modified' ] = $current_timestamp;
|
166 |
wp_slimstat::slimstat_save_options();
|
160 |
$unzip_done = unzip_file( $browscap_zip, wp_slimstat::$upload_dir );
|
161 |
|
162 |
if ( !$unzip_done || !file_exists( self::$browscap_autoload_path ) ) {
|
163 |
+
//@unlink( $browscap_zip );
|
164 |
$GLOBALS[ 'wp_filesystem' ]->rmdir( dirname( self::$browscap_autoload_path ) . '/', true );
|
165 |
wp_slimstat::$settings[ 'browscap_last_modified' ] = $current_timestamp;
|
166 |
wp_slimstat::slimstat_save_options();
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: analytics, statistics, counter, tracking, reports, wassup, geolocation, on
|
|
5 |
Text Domain: wp-slimstat
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.8.2
|
8 |
-
Stable tag: 4.7.2
|
9 |
|
10 |
== Description ==
|
11 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
@@ -71,6 +71,10 @@ Our knowledge base is available on our [support center](http://docs.wp-slimstat.
|
|
71 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
72 |
|
73 |
== Changelog ==
|
|
|
|
|
|
|
|
|
74 |
= 4.7.2 =
|
75 |
* [New] As those who have been using Slimstat for a while know, we never stop doing our good share of research and development to improve our plugin. One feature on our wishlist was to make the geolocation functionality more accurate. Specifically, users have been asking us to track not just the Country of origin, but possibly the state and city. In order to geolocate visitors, our code has been leveraging a third-party data file provided by [MaxMind.com](https://www.maxmind.com/en/home). A while ago, they launched a new data format, which improves performance and offers a way to quickly determine the city of origin. However, the new library required a higher version of PHP, and up until now we had been hesitant to adopt it, to allow more people to use our plugin, over the chance of offering this feature. Now, after spending some time combing through their code, we found a way to get the best of both worlds: by customizing their PHP library, we were able to make it work with PHP 5.3! Which means that now Slimstat is able to tell you your visitors' city of origin (and State, when applicable) right out of the box. This information is available in the Access Log report and in a new 'Top Cities' report under the Audience tab. Please note: the MaxMind data file to enable this feature is approximately 60 Mb, and for this reason <strong>this new functionality is not enabled by default</strong>. You must go to Slimstat > Settings > Tracker and turn on the corresponding option. Then go to Slimstat > Settings > Maintenance and uninstall/install the GeoLite file to download the one that contains the city data. Please feel free to contact us if you have any questions.
|
76 |
* [Update] Removed backward compatibility code for those updating from a version prior to 4.2. Hopefully most of our users are using a newer version that that. If you're not, please contact our support service for instructions on how to upgrade.
|
5 |
Text Domain: wp-slimstat
|
6 |
Requires at least: 3.8
|
7 |
Tested up to: 4.8.2
|
8 |
+
Stable tag: 4.7.2.1
|
9 |
|
10 |
== Description ==
|
11 |
The leading web analytics plugin for WordPress. Track returning customers and registered users, monitor Javascript events, detect intrusions, analyze email campaigns. Thousands of WordPress sites are already using it.
|
71 |
5. **Responsive layout** - Keep an eye on your reports on the go
|
72 |
|
73 |
== Changelog ==
|
74 |
+
= 4.7.2.1 =
|
75 |
+
* [Fix] The new table columns "location" and "city" were not being created on a fresh install (thank you, [nielsgoossens](https://wordpress.org/support/topic/no-data-anymore-2/#post-9491034))
|
76 |
+
* [Fix] Async mode was not working as expected (thank you, [keithgbcc](https://wordpress.org/support/topic/doesnt-work-1694/#post-9487448))
|
77 |
+
|
78 |
= 4.7.2 =
|
79 |
* [New] As those who have been using Slimstat for a while know, we never stop doing our good share of research and development to improve our plugin. One feature on our wishlist was to make the geolocation functionality more accurate. Specifically, users have been asking us to track not just the Country of origin, but possibly the state and city. In order to geolocate visitors, our code has been leveraging a third-party data file provided by [MaxMind.com](https://www.maxmind.com/en/home). A while ago, they launched a new data format, which improves performance and offers a way to quickly determine the city of origin. However, the new library required a higher version of PHP, and up until now we had been hesitant to adopt it, to allow more people to use our plugin, over the chance of offering this feature. Now, after spending some time combing through their code, we found a way to get the best of both worlds: by customizing their PHP library, we were able to make it work with PHP 5.3! Which means that now Slimstat is able to tell you your visitors' city of origin (and State, when applicable) right out of the box. This information is available in the Access Log report and in a new 'Top Cities' report under the Audience tab. Please note: the MaxMind data file to enable this feature is approximately 60 Mb, and for this reason <strong>this new functionality is not enabled by default</strong>. You must go to Slimstat > Settings > Tracker and turn on the corresponding option. Then go to Slimstat > Settings > Maintenance and uninstall/install the GeoLite file to download the one that contains the city data. Please feel free to contact us if you have any questions.
|
80 |
* [Update] Removed backward compatibility code for those updating from a version prior to 4.2. Hopefully most of our users are using a newer version that that. If you're not, please contact our support service for instructions on how to upgrade.
|
uninstall.php
CHANGED
@@ -35,7 +35,7 @@ $slimstat_wpdb->query( "DROP TABLE IF EXISTS {$GLOBALS[ 'wpdb' ]->base_prefix}sl
|
|
35 |
$slimstat_wpdb->query( "DROP TABLE IF EXISTS {$GLOBALS[ 'wpdb' ]->base_prefix}slim_content_info" );
|
36 |
|
37 |
function slimstat_uninstall($_wpdb = '', $_options = array()){
|
38 |
-
//
|
39 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_outbound");
|
40 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_events");
|
41 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats");
|
@@ -44,7 +44,7 @@ function slimstat_uninstall($_wpdb = '', $_options = array()){
|
|
44 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats_3");
|
45 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats_archive_3");
|
46 |
|
47 |
-
//
|
48 |
delete_option('slimstat_options');
|
49 |
delete_option('slimstat_visit_id');
|
50 |
delete_option('slimstat_filters');
|
@@ -59,6 +59,6 @@ function slimstat_uninstall($_wpdb = '', $_options = array()){
|
|
59 |
// Delete the Browscap and MaxMind data files if they exist
|
60 |
$upload_path = wp_upload_dir();
|
61 |
$upload_path = $upload_path[ 'basedir' ] . '/wp-slimstat/';
|
62 |
-
@unlink( $upload_path . 'maxmind.
|
63 |
@unlink( $upload_path . 'browscap-db.php' );
|
64 |
}
|
35 |
$slimstat_wpdb->query( "DROP TABLE IF EXISTS {$GLOBALS[ 'wpdb' ]->base_prefix}slim_content_info" );
|
36 |
|
37 |
function slimstat_uninstall($_wpdb = '', $_options = array()){
|
38 |
+
// Bye bye data...
|
39 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_outbound");
|
40 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_events");
|
41 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats");
|
44 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats_3");
|
45 |
$_wpdb->query("DROP TABLE IF EXISTS {$GLOBALS['wpdb']->prefix}slim_stats_archive_3");
|
46 |
|
47 |
+
// Bye bye options...
|
48 |
delete_option('slimstat_options');
|
49 |
delete_option('slimstat_visit_id');
|
50 |
delete_option('slimstat_filters');
|
59 |
// Delete the Browscap and MaxMind data files if they exist
|
60 |
$upload_path = wp_upload_dir();
|
61 |
$upload_path = $upload_path[ 'basedir' ] . '/wp-slimstat/';
|
62 |
+
@unlink( $upload_path . 'maxmind.mmdb' );
|
63 |
@unlink( $upload_path . 'browscap-db.php' );
|
64 |
}
|
wp-slimstat.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
-
Version: 4.7.2
|
7 |
Author: Jason Crouse
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
@@ -15,7 +15,7 @@ if ( !empty( wp_slimstat::$settings ) ) {
|
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
-
public static $version = '4.7.2';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|
3 |
Plugin Name: Slimstat Analytics
|
4 |
Plugin URI: http://wordpress.org/plugins/wp-slimstat/
|
5 |
Description: The leading web analytics plugin for WordPress
|
6 |
+
Version: 4.7.2.1
|
7 |
Author: Jason Crouse
|
8 |
Author URI: http://www.wp-slimstat.com/
|
9 |
Text Domain: wp-slimstat
|
15 |
}
|
16 |
|
17 |
class wp_slimstat {
|
18 |
+
public static $version = '4.7.2.1';
|
19 |
public static $settings = array();
|
20 |
|
21 |
public static $wpdb = '';
|