Google Analytics for WordPress by MonsterInsights - Version 3.2.4

Version Description

  • Fixed a bug in search tracking introduced with previous version.
Download this release

Release Info

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

Code changes from version 3.2.3 to 3.2.4

Files changed (2) hide show
  1. googleanalytics.php +2 -4
  2. readme.txt +6 -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
5
  Description: This plugin makes it simple to add Google Analytics with extra search engines and automatic clickout and download tracking to your WordPress blog.
6
  Author: Joost de Valk
7
- Version: 3.2.3
8
  Requires at least: 2.7
9
  Author URI: http://yoast.com/
10
  License: GPL
@@ -354,12 +354,10 @@ if ( ! class_exists( 'GA_Filter' ) ) {
354
  * If this is a 404 page, track the 404 and prevent all other stuff as it's not needed.
355
  */
356
  if ( is_404() ) {
357
- echo "\t".'try {'."\n";
358
  echo "\t\t".'pageTracker._trackPageview("/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer);'."\n";
359
  echo "\t".'} catch(err) {}'."\n";
360
  echo '</script>'."\n";
361
- } if ($wp_query->is_search && $wp->query->found_posts == 0) {
362
- echo "\t".'try {'."\n";
363
  echo "\t\t".'pageTracker._trackPageview("'.get_bloginfo('url').'/?s=no-results: '.$wp_query->query_vars['s'].'&cat=no-results");'."\n";
364
  echo "\t".'} catch(err) {}'."\n";
365
  echo '</script>'."\n";
4
  Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress
5
  Description: This plugin makes it simple to add Google Analytics with extra search engines and automatic clickout and download tracking to your WordPress blog.
6
  Author: Joost de Valk
7
+ Version: 3.2.4
8
  Requires at least: 2.7
9
  Author URI: http://yoast.com/
10
  License: GPL
354
  * If this is a 404 page, track the 404 and prevent all other stuff as it's not needed.
355
  */
356
  if ( is_404() ) {
 
357
  echo "\t\t".'pageTracker._trackPageview("/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer);'."\n";
358
  echo "\t".'} catch(err) {}'."\n";
359
  echo '</script>'."\n";
360
+ } else if ($wp_query->is_search && $wp_query->found_posts == 0) {
 
361
  echo "\t\t".'pageTracker._trackPageview("'.get_bloginfo('url').'/?s=no-results: '.$wp_query->query_vars['s'].'&cat=no-results");'."\n";
362
  echo "\t".'} catch(err) {}'."\n";
363
  echo '</script>'."\n";
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: joostdevalk
3
  Donate link: http://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.7
6
- Tested up to: 2.8.4
7
- Stable tag: 3.2.3
8
 
9
  The Google Analytics for WordPress plugin automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It also allows you to track AdSense clicks, add extra search engines, track image search queries and it will even work together with Urchin.
10
 
@@ -29,6 +29,9 @@ This section describes how to install the plugin and get it working.
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 3.2.3 =
33
  * Added 0 result search tracking inspired by [Justin Cutroni's post](http://www.epikone.com/blog/2009/09/08/tracking-ero-result-searches-in-google-analytics/).
34
 
@@ -160,4 +163,4 @@ Create a <a href="http://yoast.com/wordpress/google-analytics/creating-a-google-
160
  == Screenshots ==
161
 
162
  1. Screenshot of the configuration panel for this plugin.
163
- 2. Example of the exclude filter in Google Analytics.
3
  Donate link: http://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.7
6
+ Tested up to: 2.9
7
+ Stable tag: 3.2.4
8
 
9
  The Google Analytics for WordPress plugin automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It also allows you to track AdSense clicks, add extra search engines, track image search queries and it will even work together with Urchin.
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 3.2.4 =
33
+ * Fixed a bug in search tracking introduced with previous version.
34
+
35
  = 3.2.3 =
36
  * Added 0 result search tracking inspired by [Justin Cutroni's post](http://www.epikone.com/blog/2009/09/08/tracking-ero-result-searches-in-google-analytics/).
37
 
163
  == Screenshots ==
164
 
165
  1. Screenshot of the configuration panel for this plugin.
166
+ 2. Example of the exclude filter in Google Analytics.