Google Analyticator - Version 2.12

Version Description

Download this release

Release Info

Developer cavemonkey50
Plugin Icon 128x128 Google Analyticator
Version 2.12
Comparing to
See all releases

Code changes from version 2.11 to 2.12

Files changed (2) hide show
  1. google-analyticator.php +6 -6
  2. readme.txt +7 -2
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 2.11
5
* Plugin URI: http://cavemonkey50.com/code/google-analyticator/
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the options page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Ronald Heft, Jr.
@@ -375,11 +375,11 @@ function add_google_analytics() {
375
// Add the ougoing links script
376
function ga_outgoing_links() {
377
if (get_option(key_ga_outbound) == ga_enabled) {
378
- if ((get_option(key_ga_admin) == ga_enabled) || ((get_option(key_ga_admin) == ga_disabled) && ( !current_user_can('level_8') ))) {
379
- add_filter('comment_text', 'ga_outgoing', 1000);
380
- add_filter('get_comment_author_link', 'ga_outgoing_comment_author', 1000);
381
- add_filter('the_content', 'ga_outgoing', 1000);
382
- add_filter('the_excerpt', 'ga_outgoing', 1000);
383
}
384
}
385
}
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 2.12
5
* Plugin URI: http://cavemonkey50.com/code/google-analyticator/
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the options page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Ronald Heft, Jr.
375
// Add the ougoing links script
376
function ga_outgoing_links() {
377
if (get_option(key_ga_outbound) == ga_enabled) {
378
+ if ((get_option(key_ga_admin) == ga_enabled) || ((get_option(key_ga_admin) == ga_disabled) && ( !current_user_can('level_' . get_option(key_ga_admin_level)) ))) {
379
+ add_filter('comment_text', 'ga_outgoing', -10);
380
+ add_filter('get_comment_author_link', 'ga_outgoing_comment_author', -10);
381
+ add_filter('the_content', 'ga_outgoing', -10);
382
+ add_filter('the_excerpt', 'ga_outgoing', -10);
383
}
384
}
385
}
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: cavemonkey50
3
Donate link: http://cavemonkey50.com/code/
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.3
6
- Tested up to: 2.5
7
- Stable tag: 2.11
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
@@ -55,6 +55,11 @@ Google's servers are slow at crawling for the tracking code. While the code may
55
56
== Changelog ==
57
58
**2.11** - Minor Update
59
60
- Adds an option to change what Google Analyticator considers a WordPress administrator.
3
Donate link: http://cavemonkey50.com/code/
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.3
6
+ Tested up to: 2.6
7
+ Stable tag: 2.12
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
55
56
== Changelog ==
57
58
+ **2.12** - Bug Fix
59
+
60
+ - Applies the new administrator level selection to outbound tracking (I forgot to that in the last release).
61
+ - Fixes a potential plugin conflict.
62
+
63
**2.11** - Minor Update
64
65
- Adds an option to change what Google Analyticator considers a WordPress administrator.