Google Analytics for WordPress by MonsterInsights - Version 2.6.5

Version Description

Download this release

Release Info

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

Code changes from version 2.6.4 to 2.6.5

Files changed (3) hide show
  1. chart_curve.png +0 -0
  2. googleanalytics.php +24 -1
  3. readme.txt +2 -2
chart_curve.png ADDED
Binary file
googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
4
  Plugin URI: http://yoast.com/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.6.4
8
  Author URI: http://yoast.com/
9
  License: GPL
10
 
@@ -35,9 +35,32 @@ if ( ! class_exists( 'GA_Admin' ) ) {
35
  global $wpdb;
36
  if ( function_exists('add_submenu_page') ) {
37
  add_submenu_page('plugins.php', 'Google Analytics for WordPress Configuration', 'Google Analytics', 9, basename(__FILE__), array('GA_Admin','config_page'));
 
 
38
  }
39
  } // end add_GA_config_page()
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  function config_page() {
42
  global $dlextensions;
43
  if ( $_GET['reset'] == "true") {
4
  Plugin URI: http://yoast.com/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.6.5
8
  Author URI: http://yoast.com/
9
  License: GPL
10
 
35
  global $wpdb;
36
  if ( function_exists('add_submenu_page') ) {
37
  add_submenu_page('plugins.php', 'Google Analytics for WordPress Configuration', 'Google Analytics', 9, basename(__FILE__), array('GA_Admin','config_page'));
38
+ add_filter( 'plugin_action_links', array( 'GA_Admin', 'filter_plugin_actions'), 10, 2 );
39
+ add_filter( 'ozh_adminmenu_icon', array( 'GA_Admin', 'add_ozh_adminmenu_icon' ) );
40
  }
41
  } // end add_GA_config_page()
42
 
43
+ function add_ozh_adminmenu_icon( $hook ) {
44
+ static $gawpicon;
45
+ if (!$gawpicon) {
46
+ $gawpicon = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)). '/chart_curve.png';
47
+ }
48
+ if ($hook == 'googleanalytics.php') return $gawpicon;
49
+ return $hook;
50
+ }
51
+
52
+ function filter_plugin_actions( $links, $file ){
53
+ //Static so we don't call plugin_basename on every plugin row.
54
+ static $this_plugin;
55
+ if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
56
+
57
+ if ( $file == $this_plugin ){
58
+ $settings_link = '<a href="options-general.php?page=googleanalytics.php">' . __('Settings') . '</a>';
59
+ array_unshift( $links, $settings_link ); // before other links
60
+ }
61
+ return $links;
62
+ }
63
+
64
  function config_page() {
65
  global $dlextensions;
66
  if ( $_GET['reset'] == "true") {
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.2
6
- Tested up to: 2.5.1
7
- Stable tag: 2.6.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
 
3
  Donate link: http://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics
5
  Requires at least: 2.2
6
+ Tested up to: 2.7
7
+ Stable tag: 2.6.5
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