Google Analytics for WordPress by MonsterInsights - Version 4.0.8

Version Description

  • Reverted double quote change from 4.0.7 because it was causing bigger issues.
Download this release

Release Info

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

Code changes from version 4.0.7 to 4.0.8

Files changed (2) hide show
  1. googleanalytics.php +5 -5
  2. readme.txt +4 -3
googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
4
  Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v407
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. custom variables and automatic clickout and download tracking.
6
  Author: Joost de Valk
7
- Version: 4.0.7
8
  Requires at least: 2.8
9
  Author URI: http://yoast.com/
10
  License: GPL
@@ -1007,15 +1007,15 @@ if ( $options['gajslocalhosting'] && !empty($options['gajsurl']) ) {
1007
  if (preg_match('/onclick=[\'\"](.*?)[\'\"]/i', $matches[4]) > 0) {
1008
  // Check for manually tagged outbound clicks, and replace them with the tracking of choice.
1009
  if (preg_match('/.*_track(Pageview|Event).*/i', $matches[4]) > 0) {
1010
- $matches[4] = preg_replace('/onclick=[\'\"](javascript:)?(.*;)?[a-zA-Z0-9]+\._track(Pageview|Event)\([^\)]+\)(;)?(.*)?[\'\"]/i', 'onclick=\'javascript:' . $trackBit .'$2$5\'', $matches[4]);
1011
  } else {
1012
- $matches[4] = preg_replace('/onclick=[\'\"](javascript:)?(.*?)[\'\"]/i', 'onclick=\'javascript:' . $trackBit .'$2\'', $matches[4]);
1013
  }
1014
  } else {
1015
- $matches[4] = 'onclick=\'javascript:' . $trackBit . '\'' . $matches[4];
1016
  }
1017
  }
1018
- return '<a ' . $matches[1] . 'href=\'' . $matches[2] . '//' . $matches[3] . '\'' . ' ' . $matches[4] . '>' . $matches[5] . '</a>';
1019
  }
1020
 
1021
  function ga_parse_article_link($matches){
4
  Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v407
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. custom variables and automatic clickout and download tracking.
6
  Author: Joost de Valk
7
+ Version: 4.0.8
8
  Requires at least: 2.8
9
  Author URI: http://yoast.com/
10
  License: GPL
1007
  if (preg_match('/onclick=[\'\"](.*?)[\'\"]/i', $matches[4]) > 0) {
1008
  // Check for manually tagged outbound clicks, and replace them with the tracking of choice.
1009
  if (preg_match('/.*_track(Pageview|Event).*/i', $matches[4]) > 0) {
1010
+ $matches[4] = preg_replace('/onclick=[\'\"](javascript:)?(.*;)?[a-zA-Z0-9]+\._track(Pageview|Event)\([^\)]+\)(;)?(.*)?[\'\"]/i', 'onclick="javascript:' . $trackBit .'$2$5"', $matches[4]);
1011
  } else {
1012
+ $matches[4] = preg_replace('/onclick=[\'\"](javascript:)?(.*?)[\'\"]/i', 'onclick="javascript:' . $trackBit .'$2"', $matches[4]);
1013
  }
1014
  } else {
1015
+ $matches[4] = 'onclick="javascript:' . $trackBit . '"' . $matches[4];
1016
  }
1017
  }
1018
+ return '<a ' . $matches[1] . 'href="' . $matches[2] . '//' . $matches[3] . '"' . ' ' . $matches[4] . '>' . $matches[5] . '</a>';
1019
  }
1020
 
1021
  function ga_parse_article_link($matches){
readme.txt CHANGED
@@ -4,14 +4,12 @@ Donate link: http://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics, tracking, stats, google
5
  Requires at least: 2.8
6
  Tested up to: 3.0
7
- Stable tag: 4.0.7
8
 
9
  The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
10
 
11
  == Description ==
12
 
13
- ![Google Analytics for WordPress](http://cdn.yoast.com/downloads/ga-logo-532.png)
14
-
15
  The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
16
 
17
  For the full list of features, check out the [Google Analytics for WordPress](http://yoast.com/wordpress/google-analytics/) homepage.
@@ -32,6 +30,9 @@ This section describes how to install the plugin and get it working.
32
 
33
  == Changelog ==
34
 
 
 
 
35
  = 4.0.7 =
36
  * Bugs fixed in this release:
37
  * Changed access level from "edit_users" to "manage_options" so super-admins in an multi site environment would be able to access.
4
  Tags: analytics, google analytics, statistics, tracking, stats, google
5
  Requires at least: 2.8
6
  Tested up to: 3.0
7
+ Stable tag: 4.0.8
8
 
9
  The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
10
 
11
  == Description ==
12
 
 
 
13
  The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
14
 
15
  For the full list of features, check out the [Google Analytics for WordPress](http://yoast.com/wordpress/google-analytics/) homepage.
30
 
31
  == Changelog ==
32
 
33
+ = 4.0.8 =
34
+ * Reverted double quote change from 4.0.7 because it was causing bigger issues.
35
+
36
  = 4.0.7 =
37
  * Bugs fixed in this release:
38
  * Changed access level from "edit_users" to "manage_options" so super-admins in an multi site environment would be able to access.