Google Analyticator - Version 2.3

Version Description

Download this release

Release Info

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

Code changes from version 2.24 to 2.3

Files changed (2) hide show
  1. google-analyticator.php +3 -2
  2. readme.txt +4 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 2.24
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.
@@ -410,6 +410,7 @@ function add_google_analytics() {
410
}
411
412
echo " <script type=\"text/javascript\">\n";
413
echo " var pageTracker = _gat._getTracker(\"$uid\");\n";
414
415
// Insert extra before tracker code
@@ -424,7 +425,7 @@ function add_google_analytics() {
424
if ( '' != $extra_after )
425
echo " " . $extra_after . "\n";
426
427
- echo " </script>\n";
428
}
429
}
430
}
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 2.3
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.
410
}
411
412
echo " <script type=\"text/javascript\">\n";
413
+ echo " try {\n";
414
echo " var pageTracker = _gat._getTracker(\"$uid\");\n";
415
416
// Insert extra before tracker code
425
if ( '' != $extra_after )
426
echo " " . $extra_after . "\n";
427
428
+ echo " } catch(err) {}</script>\n";
429
}
430
}
431
}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cavemonkey50.com/code/
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.3
6
Tested up to: 2.7
7
- Stable tag: 2.24
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
@@ -55,6 +55,9 @@ Google's servers are slow at crawling for the tracking code. While the code may
55
56
== Changelog ==
57
58
**2.24** - Critical Bug Fix
59
- Fixes comment author issues once and for all.
60
- Fixes a SVN merge issue that prevented people from getting the last update.
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.3
6
Tested up to: 2.7
7
+ Stable tag: 2.3
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
55
56
== Changelog ==
57
58
+ **2.3** - Minor Update
59
+ - Updates the Analytics script to match a change by Google. This should resolve the undefined _gat errors.
60
+
61
**2.24** - Critical Bug Fix
62
- Fixes comment author issues once and for all.
63
- Fixes a SVN merge issue that prevented people from getting the last update.