Google Analytics Dashboard for WP (GADWP) - Version 5.2.1

Version Description

  • Enhancements:
    • avoid submitting empty error reports
  • Bug Fixes:
    • fixes a bug for custom PHP cURL options
Download this release

Release Info

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

Code changes from version 5.2 to 5.2.1

Files changed (4) hide show
  1. admin/settings.php +23 -19
  2. gadwp.php +2 -2
  3. readme.txt +7 -105
  4. tools/gapi.php +4 -1
admin/settings.php CHANGED
@@ -1211,27 +1211,31 @@ final class GADWP_Settings {
1211
  if ( isset( $_POST['Reset_Err'] ) ) {
1212
  if ( isset( $_POST['gadwp_security'] ) && wp_verify_nonce( $_POST['gadwp_security'], 'gadwp_form' ) ) {
1213
 
1214
- $anonim = GADWP_Tools::anonymize_options( $gadwp->config->options );
1215
 
1216
- $sep = "\n---------------------------\n";
1217
- $error_report = GADWP_Tools::get_cache( 'last_error' );
1218
- $error_report .= $sep . print_r( GADWP_Tools::get_cache( 'gapi_errors' ), true );
1219
- $error_report .= $sep . GADWP_Tools::get_cache( 'errors_count' );
1220
- $error_report .= $sep . print_r( $anonim, true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1221
 
1222
- $url = GADWP_ENDPOINT_URL . 'gadwp-report.php';
1223
- /* @formatter:off */
1224
- $response = wp_remote_post( $url, array(
1225
- 'method' => 'POST',
1226
- 'timeout' => 45,
1227
- 'redirection' => 5,
1228
- 'httpversion' => '1.0',
1229
- 'blocking' => true,
1230
- 'headers' => array(),
1231
- 'body' => array( 'error_report' => $error_report ),
1232
- 'cookies' => array()
1233
- )
1234
- );
1235
  /* @formatter:on */
1236
  GADWP_Tools::delete_cache( 'last_error' );
1237
  GADWP_Tools::delete_cache( 'gapi_errors' );
1211
  if ( isset( $_POST['Reset_Err'] ) ) {
1212
  if ( isset( $_POST['gadwp_security'] ) && wp_verify_nonce( $_POST['gadwp_security'], 'gadwp_form' ) ) {
1213
 
1214
+ if ( GADWP_Tools::get_cache( 'gapi_errors' ) || GADWP_Tools::get_cache( 'last_error' ) ) {
1215
 
1216
+ $anonim = GADWP_Tools::anonymize_options( $gadwp->config->options );
1217
+
1218
+ $sep = "\n---------------------------\n";
1219
+ $error_report = GADWP_Tools::get_cache( 'last_error' );
1220
+ $error_report .= $sep . print_r( GADWP_Tools::get_cache( 'gapi_errors' ), true );
1221
+ $error_report .= $sep . GADWP_Tools::get_cache( 'errors_count' );
1222
+ $error_report .= $sep . print_r( $anonim, true );
1223
+
1224
+ $url = GADWP_ENDPOINT_URL . 'gadwp-report.php';
1225
+ /* @formatter:off */
1226
+ $response = wp_remote_post( $url, array(
1227
+ 'method' => 'POST',
1228
+ 'timeout' => 45,
1229
+ 'redirection' => 5,
1230
+ 'httpversion' => '1.0',
1231
+ 'blocking' => true,
1232
+ 'headers' => array(),
1233
+ 'body' => array( 'error_report' => $error_report ),
1234
+ 'cookies' => array()
1235
+ )
1236
+ );
1237
+ }
1238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1239
  /* @formatter:on */
1240
  GADWP_Tools::delete_cache( 'last_error' );
1241
  GADWP_Tools::delete_cache( 'gapi_errors' );
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: 5.2
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', '5.2' );
20
  }
21
 
22
  if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
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: 5.2.1
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', '5.2.1' );
20
  }
21
 
22
  if ( ! defined( 'GADWP_ENDPOINT_URL' ) ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://deconf.com/donate/
4
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget
5
  Requires at least: 3.5
6
  Tested up to: 4.9.4
7
- Stable tag: 5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -165,6 +165,12 @@ Google Analytics Dashboard for WP it's released under the GPLv2, you can use it
165
 
166
  == Changelog ==
167
 
 
 
 
 
 
 
168
  = 5.2 =
169
  * Enhancements:
170
  * improvements on exponential backoff system
@@ -182,108 +188,4 @@ Google Analytics Dashboard for WP it's released under the GPLv2, you can use it
182
  * fix for inline SVG links, props by [Andrew Minion](https://github.com/macbookandrew)
183
  * fixes a bug on affiliate events tracking
184
 
185
- = 5.1.2.5 =
186
- * Bug Fixes:
187
- * encode quotation marks on webpage titles
188
-
189
- = 5.1.2.4 =
190
- * Security:
191
- * fixes a security vulnerability on a dashboard report, see [the release notes](https://deconf.com/google-analytics-dashboard-for-wp-5-1-2-4-security-release); credits [Oways](https://hackerone.com/0ways)
192
-
193
- = 5.1.2.3 =
194
- * Bug Fixes:
195
- * fixes an access token request loop
196
-
197
- = 5.1.2.2 =
198
- * Bug Fixes:
199
- * fixes a GAPI parameter issue
200
-
201
- = 5.1.2.1 =
202
- * Bug Fixes:
203
- * fixes multiple GAPI issues
204
-
205
- = 5.1.2 =
206
- * Enhancements:
207
- * adds support for Google AMP Client ID API
208
- * adds support for Force SSL option
209
- * Bug Fixes:
210
- * fixes a telephone tracking issue
211
-
212
- = 5.1.1.3 =
213
- * Bug Fixes:
214
- * fixes a bug on the exponential backoff system
215
-
216
- = 5.1.1.2 =
217
- * Compatibility:
218
- * tested up to 4.8.2
219
- * changes to align with h1 security program policy and requirements
220
-
221
- = 5.1.1.1 =
222
- * Enhancements:
223
- * event hitCallback is now optional and only used if needed, see [Tracking with GADWP](https://deconf.com/tracking-google-analytics-dashboard-wordpress/) for details
224
-
225
- = 5.1.1 =
226
- * New Features:
227
- * adds non-interaction hit support for AMP
228
- * Enhancements:
229
- * automatically annotates all AMP HTML elements with the appropriate data when DOM and libxml PHP extension are available
230
- * renames the access code POST variable
231
- * exclude scroll page depth events from bounce rate calculation
232
- * Bug Fixes:
233
- * fixes the switch between metrics on Location report
234
- * fixes PHP notices on empty reports
235
-
236
- = 5.1 =
237
- * Bug Fixes:
238
- * if tracking is disabled it keeps it that way while upgrading from versions lower than 5.0
239
- * fixes the undeclared variable gadwpSubmitObject error on submitted forms
240
- * added deprecation warning for tracking_code method
241
- * fix network admin menu capabilities, props by [Maxime Culea](https://github.com/MaximeCulea)
242
- * Enhancements:
243
- * switch to a customized version of GAPI to avoid conflicts with other plugins
244
- * automatically remove <em>amp/</em> from Google Analytics tracking page URL
245
- * events tracking is now using <em>data-vars-ga-*</em> attributes instead of <em>data-ga-*</em>
246
- * increase default report expiration cookie from 7 days to 365 days
247
- * New Features:
248
- * sampleRate support for web analytics and AMP
249
- * custom dimensions tracking support for AMP
250
- * scrolling depth tracking support for AMP
251
- * form submit tracking support for AMP
252
- * downloads, affiliate links, hashmarks, outbound links, telephones, e-mails tracking support for AMP
253
-
254
- = 5.0.1 =
255
- * Enhancements:
256
- * use site_url() to find the main domain name
257
- * display the page load time in seconds with two decimals
258
- * add custom categories, custom actions, and custom labels support for events tracking using <em>data-ga-*</em> attributes; props by [Timo Schneider](https://github.com/tschneid)
259
- * display the update notice only on automatic updates
260
- * Bug Fixes:
261
- * prevent the default action of the click event to be triggered if the anchor click event was already prevented by other scripts
262
-
263
- = 5.0.0.1 =
264
- * Bug Fixes:
265
- * filedsObject is missing for the create command
266
- * display the last accessed report instead of the default one
267
-
268
- = 5.0 =
269
- * Release notes: [GADWP 5.0](https://deconf.com/google-analytics-dashboard-for-wp-5-0-release-notes/)
270
- * Enhancements:
271
- * complete redesign of the tracking component
272
- * AdSense Linking feature was removed since the new linking procedure does not require a special code anymore
273
- * dropping support for Classic Analytics (ga.js) since all properties were transferred to Universal Analytics
274
- * events are now tracked using a JS file instead of in-line JavaScript
275
- * multiple improvements for events tracking accuracy
276
- * ability to switch between sessions, users and pageviews metrics on reports like Location, Traffic, Searches
277
- * the GAPI PHP Client was updated to v1.1.8
278
- * New Features:
279
- * ability to use Google Tag Manager instead of Google Analytics tracking
280
- * added Accelerated Mobile Pages (AMP) support for Google Analytics and Google Tag Manager tracking
281
- * users can now switch the position of the tracking codes from head to body through options
282
- * option to load Ecommerce or Enhanced Ecommerce plug-ins for analytics.js
283
- * option to select the placement of the tracking code (head or footer)
284
- * events tracking for form submit actions
285
- * events tracking for telephone calls
286
- * events tracking for page scrolling depth
287
- * full support for experiments with Optimize
288
-
289
  The full changelog is [available here](https://deconf.com/changelog-google-analytics-dashboard-for-wp/).
4
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget
5
  Requires at least: 3.5
6
  Tested up to: 4.9.4
7
+ Stable tag: 5.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
165
 
166
  == Changelog ==
167
 
168
+ = 5.2.1 =
169
+ * Enhancements:
170
+ * avoid submitting empty error reports
171
+ * Bug Fixes:
172
+ * fixes a bug for custom PHP cURL options
173
+
174
  = 5.2 =
175
  * Enhancements:
176
  * improvements on exponential backoff system
188
  * fix for inline SVG links, props by [Andrew Minion](https://github.com/macbookandrew)
189
  * fixes a bug on affiliate events tracking
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  The full changelog is [available here](https://deconf.com/changelog-google-analytics-dashboard-for-wp/).
tools/gapi.php CHANGED
@@ -45,6 +45,8 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
45
  $curl_options[CURLOPT_IPRESOLVE] = GADWP_IP_VERSION; // Force CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6
46
  }
47
 
 
 
48
  // add Proxy server settings to curl, if defined
49
  if ( defined( 'WP_PROXY_HOST' ) && defined( 'WP_PROXY_PORT' ) ) {
50
  $curl_options[CURLOPT_PROXY] = WP_PROXY_HOST;
@@ -58,8 +60,9 @@ if ( ! class_exists( 'GADWP_GAPI_Controller' ) ) {
58
 
59
  $curl_options = apply_filters( 'gadwp_curl_options', $curl_options );
60
  if ( ! empty( $curl_options ) ) {
61
- $config->setClassConfig( 'Deconf_IO_Curl', array( 'options' => $curl_options ) );
62
  }
 
63
  }
64
  $this->client = new Deconf_Client( $config );
65
  $this->client->setScopes( array( 'https://www.googleapis.com/auth/analytics.readonly' ) );
45
  $curl_options[CURLOPT_IPRESOLVE] = GADWP_IP_VERSION; // Force CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6
46
  }
47
 
48
+ $curl_options[CURLOPT_SSL_VERIFYPEER] = false;
49
+
50
  // add Proxy server settings to curl, if defined
51
  if ( defined( 'WP_PROXY_HOST' ) && defined( 'WP_PROXY_PORT' ) ) {
52
  $curl_options[CURLOPT_PROXY] = WP_PROXY_HOST;
60
 
61
  $curl_options = apply_filters( 'gadwp_curl_options', $curl_options );
62
  if ( ! empty( $curl_options ) ) {
63
+ $config->setClassConfig( 'Deconf_IO_Curl', 'options', $curl_options );
64
  }
65
+
66
  }
67
  $this->client = new Deconf_Client( $config );
68
  $this->client->setScopes( array( 'https://www.googleapis.com/auth/analytics.readonly' ) );