Google Analytics for WordPress by MonsterInsights - Version 6.1.2

Version Description

= 6.0.0 =

This is a major release. Please back up your site before upgrading.

Download this release

Release Info

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

Code changes from version 6.1.1 to 6.1.2

googleanalytics.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: MonsterInsights
7
  * Author URI: https://www.monsterinsights.com/
8
  *
9
- * Version: 6.1.1
10
  * Requires at least: 3.9.0
11
  * Tested up to: 4.7.4
12
  *
@@ -69,7 +69,7 @@ final class MonsterInsights_Lite {
69
  * @access public
70
  * @var string $version Plugin version.
71
  */
72
- public $version = '6.1.1';
73
 
74
  /**
75
  * Plugin file.
6
  * Author: MonsterInsights
7
  * Author URI: https://www.monsterinsights.com/
8
  *
9
+ * Version: 6.1.2
10
  * Requires at least: 3.9.0
11
  * Tested up to: 4.7.4
12
  *
69
  * @access public
70
  * @var string $version Plugin version.
71
  */
72
+ public $version = '6.1.2';
73
 
74
  /**
75
  * Plugin file.
includes/frontend/events/class-events-js.php CHANGED
@@ -90,7 +90,10 @@ class MonsterInsights_Events_JS {
90
  $internal_label = esc_js( $internal_label );
91
 
92
  // Get inbound as outbound to track
93
- $inbound_paths = monsterinsights_get_option( 'track_internal_as_outbound', array() );
 
 
 
94
  $i = 0;
95
  foreach ( $inbound_paths as $path ){
96
  $inbound_paths[ $i ] = esc_js( trim( $path ) );
@@ -100,9 +103,11 @@ class MonsterInsights_Events_JS {
100
  $inbound_paths = implode( ",", $inbound_paths );
101
 
102
  // Get download extensions to track
103
- $download_extensions = monsterinsights_get_option( 'extensions_of_files', array() );
104
  $download_extensions = explode( ',', str_replace( '.', '', $download_extensions ) );
105
-
 
 
106
  $i = 0;
107
  foreach( $download_extensions as $extension ){
108
  $download_extensions[ $i ] = esc_js( trim( $extension ) );
90
  $internal_label = esc_js( $internal_label );
91
 
92
  // Get inbound as outbound to track
93
+ $inbound_paths = monsterinsights_get_option( 'track_internal_as_outbound','' );
94
+ if ( ! is_array( $inbound_paths ) ) {
95
+ $inbound_paths = array( $inbound_paths );
96
+ }
97
  $i = 0;
98
  foreach ( $inbound_paths as $path ){
99
  $inbound_paths[ $i ] = esc_js( trim( $path ) );
103
  $inbound_paths = implode( ",", $inbound_paths );
104
 
105
  // Get download extensions to track
106
+ $download_extensions = monsterinsights_get_option( 'extensions_of_files', '' );
107
  $download_extensions = explode( ',', str_replace( '.', '', $download_extensions ) );
108
+ if ( ! is_array( $download_extensions ) ) {
109
+ $download_extensions = array( $download_extensions );
110
+ }
111
  $i = 0;
112
  foreach( $download_extensions as $extension ){
113
  $download_extensions[ $i ] = esc_js( trim( $extension ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
4
  Tags: analytics, analytics dashboard, google analytics, google analytics dashboard, google analytics widget, universal google analytics, statistics, tracking, stats, google, yoast, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
5
  Requires at least: 3.9
6
  Tested up to: 4.7.4
7
- Stable tag: 6.1.1
8
  License: GPL v3
9
 
10
  The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
@@ -136,11 +136,13 @@ You can also learn about other <a href="http://www.wpbeginner.com/category/plugi
136
  4. Want more features? <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">Purchase MonsterInsights Pro</a>!
137
 
138
  == Changelog ==
 
 
139
 
140
  = 6.1.1, March 22, 2017 =
141
  * Bugfix: Issue with JS events throwing an error for array on non-set settings.
142
 
143
- = 6.1.0, March 7, 2017 =
144
  * New: Campaign URL building tool with shortlink capability.
145
  * New: Settings import/export tool.
146
  * New: Experimental (beta) hash tracking for single-page style themes. Note, as the description for the setting says, this feature is a beta feature, and can be tweaked or removed in upcoming versions.
4
  Tags: analytics, analytics dashboard, google analytics, google analytics dashboard, google analytics widget, universal google analytics, statistics, tracking, stats, google, yoast, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
5
  Requires at least: 3.9
6
  Tested up to: 4.7.4
7
+ Stable tag: 6.1.2
8
  License: GPL v3
9
 
10
  The best Google Analytics plugin for WordPress. See how visitors find and use your website, so you can keep them coming back.
136
  4. Want more features? <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">Purchase MonsterInsights Pro</a>!
137
 
138
  == Changelog ==
139
+ = 6.1.2, March 22, 2017 =
140
+ * Bugfix: (pro users) Issue with JS events throwing an error for array on non-set settings.
141
 
142
  = 6.1.1, March 22, 2017 =
143
  * Bugfix: Issue with JS events throwing an error for array on non-set settings.
144
 
145
+ = 6.1.0, March 22, 2017 =
146
  * New: Campaign URL building tool with shortlink capability.
147
  * New: Settings import/export tool.
148
  * New: Experimental (beta) hash tracking for single-page style themes. Note, as the description for the setting says, this feature is a beta feature, and can be tweaked or removed in upcoming versions.