Google Analytics for WordPress by MonsterInsights - Version 5.2.2

Version Description

Release Date: December 10th, 2014

Bugfixes: * Fixes a bug where it was no longer possible to uncheck checkboxes in the settings. * Fixes a bug where jQuery Chosen component was not rendered correctly on a hidden tab.

Download this release

Release Info

Developer omarreiss
Plugin Icon 128x128 Google Analytics for WordPress by MonsterInsights
Version 5.2.2
Comparing to
See all releases

Code changes from version 5.2.1 to 5.2.2

README.md CHANGED
@@ -1,7 +1,7 @@
1
  Google Analytics for WordPress
2
  ==============================
3
 
4
- [![Build Status](https://api.travis-ci.org/Yoast/google-analytics-for-wordpress.png?branch=master)](https://travis-ci.org/Yoast/google-analytics-for-wordpress)
5
 
6
  Add Google Analytics to WordPress and be able to use all the powerful functions Google Analytics offers!
7
 
@@ -50,4 +50,4 @@ There are various ways you can contribute:
50
  Changelog
51
  =========
52
 
53
- Please see readme.txt for the changelog.
1
  Google Analytics for WordPress
2
  ==============================
3
 
4
+ [![Build Status](https://api.travis-ci.org/Yoast/google-analytics-for-wordpress.png?branch=master)](https://travis-ci.org/Yoast/google-analytics-for-wordpress) [![Code Climate](https://codeclimate.com/repos/54523bb669568068b8093b43/badges/04d59b3dc67a0c7ff8ab/gpa.svg)](https://codeclimate.com/repos/54523bb669568068b8093b43/feed)
5
 
6
  Add Google Analytics to WordPress and be able to use all the powerful functions Google Analytics offers!
7
 
50
  Changelog
51
  =========
52
 
53
+ Please see readme.txt for the changelog.
admin/class-admin.php CHANGED
@@ -95,18 +95,19 @@ if ( ! class_exists( 'Yoast_GA_Admin' ) ) {
95
  }
96
  }
97
 
98
- if ( ! empty( $this->options['analytics_profile'] ) ) {
99
- $this->options['analytics_profile_code'] = $this->get_ua_code_from_profile( $this->options['analytics_profile'] );
100
- }
101
-
102
  // Check checkboxes, on a uncheck they won't be posted to this function
103
  $defaults = $this->default_ga_values();
104
  foreach ( $defaults[$this->option_prefix] as $key => $value ) {
105
- if ( ! isset( $data[$key] ) && ! isset( $this->options[$key] ) ) {
 
106
  $this->options[$key] = $value;
107
  }
108
  }
109
 
 
 
 
 
110
  if ( $this->update_option( $this->options ) ) {
111
  // Success, add a new notification
112
  $this->add_notification( 'ga_notifications', array(
95
  }
96
  }
97
 
 
 
 
 
98
  // Check checkboxes, on a uncheck they won't be posted to this function
99
  $defaults = $this->default_ga_values();
100
  foreach ( $defaults[$this->option_prefix] as $key => $value ) {
101
+ if ( ! isset( $data[$key] ) ) {
102
+ // If no data was passed in, set it to the default.
103
  $this->options[$key] = $value;
104
  }
105
  }
106
 
107
+ if ( ! empty( $this->options['analytics_profile'] ) ) {
108
+ $this->options['analytics_profile_code'] = $this->get_ua_code_from_profile( $this->options['analytics_profile'] );
109
+ }
110
+
111
  if ( $this->update_option( $this->options ) ) {
112
  // Success, add a new notification
113
  $this->add_notification( 'ga_notifications', array(
assets/css/yoast_ga_styles.css CHANGED
@@ -111,6 +111,10 @@ p.ga-topdescription {
111
  width: 100% !important;
112
  }
113
 
 
 
 
 
114
  #enter_ua {
115
  display: none;
116
  margin-top: 10px;
111
  width: 100% !important;
112
  }
113
 
114
+ .yoast-ga-content .chosen-container {
115
+ width: 325px !important;
116
+ }
117
+
118
  #enter_ua {
119
  display: none;
120
  margin-top: 10px;
assets/css/yoast_ga_styles.min.css CHANGED
@@ -1 +1 @@
1
- h2#yoast_ga_title{padding:9px 15px 4px 0;font-size:23px;font-weight:400;line-height:29px}.nav-tab-wrapper{margin-bottom:20px}.gatab{display:none}.gatab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px;background-color:#fff}.tabwrapper .gatab{padding:0;border:none;background:0 0}.tabwrapper .gatab h2{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.ga-form-submit{margin-top:20px}.ga-form-label-left{float:left;width:250px;margin:0 0 0 5px;font-size:14px;font-weight:700;cursor:default}.ga-form-input{margin-top:10px}#yoast-ga-wrapper{display:table;width:auto;max-width:1150px}.yoast-ga-content{display:table-cell;min-width:850px;height:500px;margin:0;padding:0;vertical-align:top}.yoast-ga-banners{display:table-cell;width:261px;height:500px;margin:0;padding:20px;vertical-align:top}.ga-form-input{display:table;margin-bottom:20px}.ga-form-table{display:table-cell}.ga-form-description{display:block;float:right;max-width:325px;color:#999}p.ga-topdescription{max-width:600px}#ga-promote{max-width:600px;padding-left:10px;border:1px solid #ccc;background-color:#fff}#yoast-ga-form-settings input[type=text]{width:325px}.ga-form .chosen-search input[type=text]{width:100%!important}#enter_ua{display:none;margin-top:10px;padding-top:10px}#yoast-ga-form-text-settings-ga_general-manual_ua_code_field{margin-top:-30px}select.ga-multiple{width:300px;height:150px!important}.wpseotab .extension{float:left;box-sizing:border-box;width:350px;height:230px;margin:10px 20px 10px 0;border:1px solid #ccc}.wpseotab .extension p{margin:0;padding:10px}.wpseotab .extension h3{box-sizing:border-box;height:110px;margin:0;padding:20px 10px 0 120px;border-bottom:1px solid #ccc;background:left 10px/130px 100px no-repeat #fff}.wpseotab .extension button.installed{border-color:#00a000;background-color:#00a000;cursor:default}.wpseotab .extension .button-primary.activate-link{border-color:#f06000;background-color:#f18500}.extension a{text-decoration:none}.ecommerce h3{background-image:url(../img/eComm_130x100.png)!important}.ga_premium h3{background-image:url(../img/ga-premium-banner.png)!important}#ga-debug-info h3{height:30px;margin-top:10px;padding-left:16px;font-size:14px}.yoast_help{margin:2px 5px 0}
1
+ h2#yoast_ga_title{padding:9px 15px 4px 0;font-size:23px;font-weight:400;line-height:29px}.nav-tab-wrapper{margin-bottom:20px}.gatab{display:none}.gatab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px;background-color:#fff}.tabwrapper .gatab{padding:0;border:none;background:0 0}.tabwrapper .gatab h2{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.ga-form-submit{margin-top:20px}.ga-form-label-left{float:left;width:250px;margin:0 0 0 5px;font-size:14px;font-weight:700;cursor:default}.ga-form-input{margin-top:10px}#yoast-ga-wrapper{display:table;width:auto;max-width:1150px}.yoast-ga-content{display:table-cell;min-width:850px;height:500px;margin:0;padding:0;vertical-align:top}.yoast-ga-banners{display:table-cell;width:261px;height:500px;margin:0;padding:20px;vertical-align:top}.ga-form-input{display:table;margin-bottom:20px}.ga-form-table{display:table-cell}.ga-form-description{display:block;float:right;max-width:325px;color:#999}p.ga-topdescription{max-width:600px}#ga-promote{max-width:600px;padding-left:10px;border:1px solid #ccc;background-color:#fff}#yoast-ga-form-settings input[type=text]{width:325px}.ga-form .chosen-search input[type=text]{width:100%!important}.yoast-ga-content .chosen-container{width:325px!important}#enter_ua{display:none;margin-top:10px;padding-top:10px}#yoast-ga-form-text-settings-ga_general-manual_ua_code_field{margin-top:-30px}select.ga-multiple{width:300px;height:150px!important}.wpseotab .extension{float:left;box-sizing:border-box;width:350px;height:230px;margin:10px 20px 10px 0;border:1px solid #ccc}.wpseotab .extension p{margin:0;padding:10px}.wpseotab .extension h3{box-sizing:border-box;height:110px;margin:0;padding:20px 10px 0 120px;border-bottom:1px solid #ccc;background:left 10px/130px 100px no-repeat #fff}.wpseotab .extension button.installed{border-color:#00a000;background-color:#00a000;cursor:default}.wpseotab .extension .button-primary.activate-link{border-color:#f06000;background-color:#f18500}.extension a{text-decoration:none}.ecommerce h3{background-image:url(../img/eComm_130x100.png)!important}.ga_premium h3{background-image:url(../img/ga-premium-banner.png)!important}#ga-debug-info h3{height:30px;margin-top:10px;padding-left:16px;font-size:14px}.yoast_help{margin:2px 5px 0}
googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics by Yoast
4
  Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. error page, search result and automatic clickout and download tracking.
6
  Author: Team Yoast
7
- Version: 5.2.1
8
  Requires at least: 3.8
9
  Author URI: https://yoast.com/
10
  License: GPL v3
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30
 
31
  // This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
32
 
33
- define( 'GAWP_VERSION', '5.2.1' );
34
 
35
  define( 'GAWP_FILE', __FILE__ );
36
 
4
  Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. error page, search result and automatic clickout and download tracking.
6
  Author: Team Yoast
7
+ Version: 5.2.2
8
  Requires at least: 3.8
9
  Author URI: https://yoast.com/
10
  License: GPL v3
30
 
31
  // This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
32
 
33
+ define( 'GAWP_VERSION', '5.2.2' );
34
 
35
  define( 'GAWP_FILE', __FILE__ );
36
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 5.2.1
8
 
9
  Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
10
 
@@ -49,6 +49,14 @@ This section describes how to install the plugin and get it working.
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
 
 
 
52
  = 5.2.1 =
53
 
54
  Release Date: December 9th, 2014
4
  Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 5.2.2
8
 
9
  Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
10
 
49
 
50
  == Changelog ==
51
 
52
+ = 5.2.2 =
53
+
54
+ Release Date: December 10th, 2014
55
+
56
+ Bugfixes:
57
+ * Fixes a bug where it was no longer possible to uncheck checkboxes in the settings.
58
+ * Fixes a bug where jQuery Chosen component was not rendered correctly on a hidden tab.
59
+
60
  = 5.2.1 =
61
 
62
  Release Date: December 9th, 2014