Google Analytics for WordPress by MonsterInsights - Version 2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.0 to 2.1

Files changed (2) hide show
  1. gapp/googleanalytics.php +2 -2
  2. readme.txt +3 -1
gapp/googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
4
  Plugin URI: http://www.joostdevalk.nl/wordpress/analytics/
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: 2.0
8
  Author URI: http://www.joostdevalk.nl/
9
  License: GPL
10
 
@@ -281,7 +281,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
281
  $opt = get_option('GoogleAnalyticsPP');
282
  $options = unserialize($opt);
283
 
284
- if ($options["uastring"] != "" && (!current_user_can('edit_users') || $options["admintracking"]) ) {
285
  echo("\n\t<!-- Google Analytics for WordPress | http://www.joostdevalk.nl/wordpress/google-analytics/ -->\n");
286
  echo("\t<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"></script>\n");
287
  if ( $options["extrase"] == true ) {
4
  Plugin URI: http://www.joostdevalk.nl/wordpress/analytics/
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: 2.1
8
  Author URI: http://www.joostdevalk.nl/
9
  License: GPL
10
 
281
  $opt = get_option('GoogleAnalyticsPP');
282
  $options = unserialize($opt);
283
 
284
+ if ($options["uastring"] != "" && (!current_user_can('edit_users') || $options["admintracking"]) && !is_preview() ) {
285
  echo("\n\t<!-- Google Analytics for WordPress | http://www.joostdevalk.nl/wordpress/google-analytics/ -->\n");
286
  echo("\t<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\"></script>\n");
287
  if ( $options["extrase"] == true ) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joostdevalk.nl/donate/
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.2
6
  Tested up to: 2.3.1
7
- Stable tag: 2.0
8
 
9
  The Google Analytics for WordPress plugina 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
 
@@ -28,6 +28,8 @@ This section describes how to install the plugin and get it working.
28
 
29
  == Changelog ==
30
 
 
 
31
  1.5: added option to enable admin tracking, off by default
32
 
33
  == Frequently Asked Questions ==
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.2
6
  Tested up to: 2.3.1
7
+ Stable tag: 2.1
8
 
9
  The Google Analytics for WordPress plugina 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
 
28
 
29
  == Changelog ==
30
 
31
+ 2.1: made sure tracking was disabled on preview pages
32
+ 2.0: added AdSense tracking
33
  1.5: added option to enable admin tracking, off by default
34
 
35
  == Frequently Asked Questions ==