Google Analytics Dashboard for WP (GADWP) - Version 4.9.6.2

Version Description

  • Enhancements:
    • switching sampling level to higher precision to increase the accuracy of reports
Download this release

Release Info

Developer deconf
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 4.9.6.2
Comparing to
See all releases

Code changes from version 4.9.6.1 to 4.9.6.2

Files changed (3) hide show
  1. gadwp.php +2 -2
  2. readme.txt +11 -7
  3. tools/gapi.php +18 -9
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
* Plugin URI: https://deconf.com
5
* Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
* Author: Alin Marcu
7
- * Version: 4.9.6.1
8
* Author URI: https://deconf.com
9
* Text Domain: google-analytics-dashboard-for-wp
10
* Domain Path: /languages
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) )
16
17
// Plugin Version
18
if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
19
- define( 'GADWP_CURRENT_VERSION', '4.9.6.1' );
20
}
21
22
if ( ! class_exists( 'GADWP_Manager' ) ) {
4
* Plugin URI: https://deconf.com
5
* Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
* Author: Alin Marcu
7
+ * Version: 4.9.6.2
8
* Author URI: https://deconf.com
9
* Text Domain: google-analytics-dashboard-for-wp
10
* Domain Path: /languages
16
17
// Plugin Version
18
if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
19
+ define( 'GADWP_CURRENT_VERSION', '4.9.6.2' );
20
}
21
22
if ( ! class_exists( 'GADWP_Manager' ) ) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
=== Google Analytics Dashboard for WP ===
2
Contributors: deconf
3
Donate link: https://deconf.com/donate/
4
- Tags: stats,analytics,google analytics,dashboard,analytics dashboard,google analytics dashboard,google analytics plugin,google analytics widget,tracking,universal google analytics,realtime,multisite,gadwp
5
Requires at least: 3.5
6
- Tested up to: 4.7.2
7
- Stable tag: 4.9.6.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -13,11 +13,11 @@ Displays Google Analytics stats in your WordPress Dashboard. Inserts the latest
13
== Description ==
14
This Google Analytics for WordPress plugin enables you to track your site using the latest Google Analytics tracking code and allows you to view key Google Analytics stats in your WordPress install.
15
16
- In addition to a set of general Google Analytics reports, in-depth Page reports and in-depth Post reports allow further segmentation of your analytics data, providing performance details for each post or page from your website.
17
18
The Google Analytics tracking code is fully customizable through options and hooks, allowing advanced data collection using custom dimensions and events.
19
20
- = Google Analytics Real-Time =
21
22
Google Analytics reports, in real-time, in your dashboard screen:
23
@@ -29,8 +29,8 @@ Google Analytics reports, in real-time, in your dashboard screen:
29
30
The Google Analytics reports you need, on your dashboard, in your All Posts and All Pages screens, and on site's frontend:
31
32
- - Sessions, organic searches, page views, bounce rate analytics reports
33
- - Locations, pages, referrers, keywords, 404 errors analytics reports
34
- Traffic channels, social networks, traffic mediums, search engines analytics reports
35
- Device categories, browsers, operating systems, screen resolutions, mobile brands analytics reports
36
- User access control over analytics reports
@@ -137,6 +137,10 @@ Google Analytics Dashboard for WP it's released under the GPLv2, you can use it
137
138
== Changelog ==
139
140
= 4.9.6.1 =
141
* Enhancements:
142
* enable anonymization for all hits instead of single hits to avoid false-positives from IP Anonymization checking tools
1
=== Google Analytics Dashboard for WP ===
2
Contributors: deconf
3
Donate link: https://deconf.com/donate/
4
+ Tags: stats,analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget,dashboard,tracking,analytics dashboard,universal google analytics,realtime,multisite,gadwp
5
Requires at least: 3.5
6
+ Tested up to: 4.7.4
7
+ Stable tag: 4.9.6.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
13
== Description ==
14
This Google Analytics for WordPress plugin enables you to track your site using the latest Google Analytics tracking code and allows you to view key Google Analytics stats in your WordPress install.
15
16
+ In addition to a set of general Google Analytics stats, in-depth Page reports and in-depth Post reports allow further segmentation of your analytics data, providing performance details for each post or page from your website.
17
18
The Google Analytics tracking code is fully customizable through options and hooks, allowing advanced data collection using custom dimensions and events.
19
20
+ = Google Analytics Real-Time Stats=
21
22
Google Analytics reports, in real-time, in your dashboard screen:
23
29
30
The Google Analytics reports you need, on your dashboard, in your All Posts and All Pages screens, and on site's frontend:
31
32
+ - Sessions, organic searches, page views, bounce rate analytics stats
33
+ - Locations, pages, referrers, keywords, 404 errors analytics stats
34
- Traffic channels, social networks, traffic mediums, search engines analytics reports
35
- Device categories, browsers, operating systems, screen resolutions, mobile brands analytics reports
36
- User access control over analytics reports
137
138
== Changelog ==
139
140
+ = 4.9.6.2 =
141
+ * Enhancements:
142
+ * switching sampling level to higher precision to increase the accuracy of reports
143
+
144
= 4.9.6.1 =
145
* Enhancements:
146
* enable anonymization for all hits instead of single hits to avoid false-positives from IP Anonymization checking tools
tools/gapi.php CHANGED
@@ -42,7 +42,7 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
42
$curl_options[CURLOPT_IPRESOLVE] = GADWP_IP_VERSION; // Force CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6
43
}
44
$curl_options = apply_filters( 'gadwp_curl_options', $curl_options );
45
- if ( !empty( $curl_options ) ) {
46
$config->setClassConfig( 'Google_IO_Curl', array( 'options' => $curl_options ) );
47
}
48
}
@@ -158,14 +158,22 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
158
</td>
159
</tr>
160
<tr>
161
- <td class="gadwp-settings-title"><label for="ga_dash_code" title="<?php _e("Use the red link to get your access code!",'google-analytics-dashboard-for-wp')?>"><?php echo _e( "Access Code:", 'google-analytics-dashboard-for-wp' ); ?></label></td>
162
- <td><input type="text" id="ga_dash_code" name="ga_dash_code" value="" size="61" required="required" title="<?php _e("Use the red link to get your access code!",'google-analytics-dashboard-for-wp')?>"></td>
163
</tr>
164
<tr>
165
- <td colspan="2"><hr></td>
166
</tr>
167
<tr>
168
- <td colspan="2"><input type="submit" class="button button-secondary" name="ga_dash_authorize" value="<?php _e( "Save Access Code", 'google-analytics-dashboard-for-wp' ); ?>" /></td>
169
</tr>
170
</table>
171
</form>
@@ -279,6 +287,7 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
279
if ( $this->gapi_errors_handler() ) {
280
return - 23;
281
}
282
$data = $this->service->data_ga->get( 'ga:' . $projectId, $from, $to, $metrics, $options );
283
GADWP_Tools::set_cache( $serial, $data, $this->get_timeouts( $timeouts ) );
284
$this->gadwp->config->options['api_backoff'] = 0;
@@ -437,14 +446,14 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
437
$gadwp_data[3] = number_format_i18n( $gadwp_data[3], 2 ) . '%';
438
$gadwp_data[4] = number_format_i18n( $gadwp_data[4] );
439
$gadwp_data[5] = number_format_i18n( $gadwp_data[5], 2 );
440
- $gadwp_data[6] = gmdate("H:i:s", $gadwp_data[6] );
441
- $gadwp_data[7] = gmdate("H:i:s", $gadwp_data[7] );
442
if ( $filter ) {
443
$gadwp_data[8] = number_format_i18n( $gadwp_data[8], 2 ) . '%';
444
} else {
445
- $gadwp_data[8] = gmdate("H:i:s", $gadwp_data[8] );
446
}
447
-
448
return $gadwp_data;
449
}
450
42
$curl_options[CURLOPT_IPRESOLVE] = GADWP_IP_VERSION; // Force CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6
43
}
44
$curl_options = apply_filters( 'gadwp_curl_options', $curl_options );
45
+ if ( ! empty( $curl_options ) ) {
46
$config->setClassConfig( 'Google_IO_Curl', array( 'options' => $curl_options ) );
47
}
48
}
158
</td>
159
</tr>
160
<tr>
161
+ <td class="gadwp-settings-title">
162
+ <label for="ga_dash_code" title="<?php _e("Use the red link to get your access code!",'google-analytics-dashboard-for-wp')?>"><?php echo _e( "Access Code:", 'google-analytics-dashboard-for-wp' ); ?></label>
163
+ </td>
164
+ <td>
165
+ <input type="text" id="ga_dash_code" name="ga_dash_code" value="" size="61" required="required" title="<?php _e("Use the red link to get your access code!",'google-analytics-dashboard-for-wp')?>">
166
+ </td>
167
</tr>
168
<tr>
169
+ <td colspan="2">
170
+ <hr>
171
+ </td>
172
</tr>
173
<tr>
174
+ <td colspan="2">
175
+ <input type="submit" class="button button-secondary" name="ga_dash_authorize" value="<?php _e( "Save Access Code", 'google-analytics-dashboard-for-wp' ); ?>" />
176
+ </td>
177
</tr>
178
</table>
179
</form>
287
if ( $this->gapi_errors_handler() ) {
288
return - 23;
289
}
290
+ $options['samplingLevel'] = 'HIGHER_PRECISION';
291
$data = $this->service->data_ga->get( 'ga:' . $projectId, $from, $to, $metrics, $options );
292
GADWP_Tools::set_cache( $serial, $data, $this->get_timeouts( $timeouts ) );
293
$this->gadwp->config->options['api_backoff'] = 0;
446
$gadwp_data[3] = number_format_i18n( $gadwp_data[3], 2 ) . '%';
447
$gadwp_data[4] = number_format_i18n( $gadwp_data[4] );
448
$gadwp_data[5] = number_format_i18n( $gadwp_data[5], 2 );
449
+ $gadwp_data[6] = gmdate( "H:i:s", $gadwp_data[6] );
450
+ $gadwp_data[7] = gmdate( "H:i:s", $gadwp_data[7] );
451
if ( $filter ) {
452
$gadwp_data[8] = number_format_i18n( $gadwp_data[8], 2 ) . '%';
453
} else {
454
+ $gadwp_data[8] = gmdate( "H:i:s", $gadwp_data[8] );
455
}
456
+
457
return $gadwp_data;
458
}
459