Google Analytics for WordPress by MonsterInsights - Version 7.15.1

Version Description

= 7.0.0 =

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

= 6.0.0 =

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

Download this release

Release Info

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

Code changes from version 7.15.0 to 7.15.1

googleanalytics.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: MonsterInsights
7
  * Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
8
  *
9
- * Version: 7.15.0
10
  * Requires at least: 3.8.0
11
  * Requires PHP: 5.2
12
  *
@@ -69,7 +69,7 @@ final class MonsterInsights_Lite {
69
  * @access public
70
  * @var string $version Plugin version.
71
  */
72
- public $version = '7.15.0';
73
 
74
  /**
75
  * Plugin file.
6
  * Author: MonsterInsights
7
  * Author URI: https://www.monsterinsights.com/?utm_source=liteplugin&utm_medium=pluginheader&utm_campaign=authoruri&utm_content=7%2E0%2E0
8
  *
9
+ * Version: 7.15.1
10
  * Requires at least: 3.8.0
11
  * Requires PHP: 5.2
12
  *
69
  * @access public
70
  * @var string $version Plugin version.
71
  */
72
+ public $version = '7.15.1';
73
 
74
  /**
75
  * Plugin file.
includes/frontend/tracking/class-tracking-gtag.php CHANGED
@@ -118,7 +118,15 @@ class MonsterInsights_Tracking_Gtag extends MonsterInsights_Tracking_Abstract {
118
 
119
  // Add cross-domain tracking.
120
  if ( is_array( $cross_domains ) && ! empty( $cross_domains ) ) {
121
- $options['linker'] = array( $cross_domains );
 
 
 
 
 
 
 
 
122
  }
123
 
124
  $options = apply_filters( 'monsterinsights_frontend_tracking_options_gtag_before_pageview', $options );
118
 
119
  // Add cross-domain tracking.
120
  if ( is_array( $cross_domains ) && ! empty( $cross_domains ) ) {
121
+ $linker_domains = array();
122
+ foreach ( $cross_domains as $cross_domain ) {
123
+ if ( ! empty( $cross_domain['domain'] ) ) {
124
+ $linker_domains[] = $cross_domain['domain'];
125
+ }
126
+ }
127
+ $options['linker'] = json_encode( array(
128
+ 'domains' => $linker_domains,
129
+ ) );
130
  }
131
 
132
  $options = apply_filters( 'monsterinsights_frontend_tracking_options_gtag_before_pageview', $options );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.wpbeginner.com/wpbeginner-needs-your-help/
4
  Tags: WordPress analytics, google analytics, google analytics dashboard, google analytics widget, WooCommerce stats, analytics dashboard, universal google analytics, statistics, tracking, stats, google, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
5
  Requires at least: 3.8.0
6
  Tested up to: 5.6
7
- Stable tag: 7.15.0
8
  Requires PHP: 5.2
9
  License: GPL v3
10
 
@@ -280,6 +280,9 @@ You can also learn about other <a href="http://www.wpbeginner.com/category/plugi
280
  4. Want more features? <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">Purchase MonsterInsights Pro</a>!
281
 
282
  == Changelog ==
 
 
 
283
  = 7.15.0: January 21, 2021 =
284
  - New: Upgrade to the Global Site Tag (gtag.js) tracking code without having to worry about your existing events or integrations using analytics.js code. In this version you can manually opt-in to the gtag.js tracking code that will be the standard in a future release.
285
  - Fix: Improved compatibility for older PHP versions with our Popular Posts feature.
4
  Tags: WordPress analytics, google analytics, google analytics dashboard, google analytics widget, WooCommerce stats, analytics dashboard, universal google analytics, statistics, tracking, stats, google, google analytics by yoast, ga, monster insights, monsterinsights, universal analytics, web stats, ecommerce, ecommerce tracking
5
  Requires at least: 3.8.0
6
  Tested up to: 5.6
7
+ Stable tag: 7.15.1
8
  Requires PHP: 5.2
9
  License: GPL v3
10
 
280
  4. Want more features? <a href="https://www.monsterinsights.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion">Purchase MonsterInsights Pro</a>!
281
 
282
  == Changelog ==
283
+ = 7.15.1: January 27, 2021 =
284
+ - Fix: Our cross-domain option for the gtag.js tracking code was causing an issue.
285
+
286
  = 7.15.0: January 21, 2021 =
287
  - New: Upgrade to the Global Site Tag (gtag.js) tracking code without having to worry about your existing events or integrations using analytics.js code. In this version you can manually opt-in to the gtag.js tracking code that will be the standard in a future release.
288
  - Fix: Improved compatibility for older PHP versions with our Popular Posts feature.