Version Description
Download this release
Release Info
Developer | cavemonkey50 |
Plugin | Google Analyticator |
Version | 2.22 |
Comparing to | |
See all releases |
Code changes from version 2.21 to 2.22
- google-analyticator.php +4 -4
- readme.txt +4 -1
google-analyticator.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Google Analyticator
|
4 |
-
* Version: 2.
|
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.
|
@@ -36,7 +36,7 @@ define("ga_footer_default", ga_disabled, true);
|
|
36 |
define("ga_specify_http_default", "auto", true);
|
37 |
|
38 |
// Create the default key and status
|
39 |
-
|
40 |
add_option(key_ga_uid, ga_uid_default, 'Your Google Analytics UID.');
|
41 |
add_option(key_ga_admin, ga_admin_default, 'If WordPress admins are counted in Google Analytics.');
|
42 |
add_option(key_ga_admin_level, ga_admin_level_default, 'The level to consider a user a WordPress admin.');
|
@@ -45,7 +45,7 @@ add_option(key_ga_extra_after, ga_extra_after_default, 'Addition Google Analytic
|
|
45 |
add_option(key_ga_outbound, ga_outbound_default, 'Add tracking of outbound links');
|
46 |
add_option(key_ga_downloads, ga_downloads_default, 'Download extensions to track with Google Analyticator');
|
47 |
add_option(key_ga_footer, ga_footer_default, 'If Google Analyticator is outputting in the footer');
|
48 |
-
add_option(key_ga_specify_http, ga_specify_http_default, 'Automatically detect the http/https settings')
|
49 |
|
50 |
// Create a option page for settings
|
51 |
add_action('admin_init', 'ga_admin_init');
|
@@ -454,7 +454,7 @@ function ga_outgoing($input) {
|
|
454 |
|
455 |
// Takes the comment author link and adds the Google outgoing tracking code
|
456 |
function ga_outgoing_comment_author($input) {
|
457 |
-
static $link_pattern = '(.*href\s*=\s*)[\"\']*(
|
458 |
ereg($link_pattern, $input, $matches);
|
459 |
if ($matches[2] == "") return $input;
|
460 |
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Google Analyticator
|
4 |
+
* Version: 2.22
|
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.
|
36 |
define("ga_specify_http_default", "auto", true);
|
37 |
|
38 |
// Create the default key and status
|
39 |
+
add_option(key_ga_status, ga_status_default, 'If Google Analytics logging in turned on or off.');
|
40 |
add_option(key_ga_uid, ga_uid_default, 'Your Google Analytics UID.');
|
41 |
add_option(key_ga_admin, ga_admin_default, 'If WordPress admins are counted in Google Analytics.');
|
42 |
add_option(key_ga_admin_level, ga_admin_level_default, 'The level to consider a user a WordPress admin.');
|
45 |
add_option(key_ga_outbound, ga_outbound_default, 'Add tracking of outbound links');
|
46 |
add_option(key_ga_downloads, ga_downloads_default, 'Download extensions to track with Google Analyticator');
|
47 |
add_option(key_ga_footer, ga_footer_default, 'If Google Analyticator is outputting in the footer');
|
48 |
+
add_option(key_ga_specify_http, ga_specify_http_default, 'Automatically detect the http/https settings');
|
49 |
|
50 |
// Create a option page for settings
|
51 |
add_action('admin_init', 'ga_admin_init');
|
454 |
|
455 |
// Takes the comment author link and adds the Google outgoing tracking code
|
456 |
function ga_outgoing_comment_author($input) {
|
457 |
+
static $link_pattern = '(.*href\s*=\s*)[\"\']*(.*?)[\"\'] (.*)';
|
458 |
ereg($link_pattern, $input, $matches);
|
459 |
if ($matches[2] == "") return $input;
|
460 |
|
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.
|
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.21** - Minor Update
|
59 |
- Adds compatibility with WordPress 2.7.
|
60 |
|
4 |
Tags: stats, google, analytics, tracking
|
5 |
Requires at least: 2.3
|
6 |
Tested up to: 2.7
|
7 |
+
Stable tag: 2.22
|
8 |
|
9 |
Adds the necessary JavaScript code to enable Google Analytics.
|
10 |
|
55 |
|
56 |
== Changelog ==
|
57 |
|
58 |
+
**2.22** - Bug Fix
|
59 |
+
- Improves comment author regex causing some issues in WordPress 2.7. Props jdub.
|
60 |
+
|
61 |
**2.21** - Minor Update
|
62 |
- Adds compatibility with WordPress 2.7.
|
63 |
|