Version Description
-
Added:
- Google Site Speed tracking, turned it on by default.
-
Fixed:
- Custom code now properly removes slashes.
Download this release
Release Info
| Developer | joostdevalk |
| Plugin | |
| Version | 4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 4.0.13 to 4.1
- googleanalytics.php +14 -4
- readme.txt +12 -13
googleanalytics.php
CHANGED
|
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
|
|
| 4 |
Plugin URI: http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v407
|
| 5 |
Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. custom variables and automatic clickout and download tracking.
|
| 6 |
Author: Joost de Valk
|
| 7 |
-
Version: 4.
|
| 8 |
Requires at least: 2.8
|
| 9 |
Author URI: http://yoast.com/
|
| 10 |
License: GPL
|
|
@@ -12,7 +12,7 @@ License: GPL
|
|
| 12 |
|
| 13 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
| 14 |
|
| 15 |
-
define('GAWP_VERSION', '4.
|
| 16 |
|
| 17 |
// Determine the location
|
| 18 |
function gapp_plugin_path() {
|
|
@@ -224,7 +224,7 @@ if ( is_admin() && ( !defined('DOING_AJAX') || !DOING_AJAX ) && !class_exists( '
|
|
| 224 |
$options[$option_name] = '';
|
| 225 |
}
|
| 226 |
|
| 227 |
-
foreach (array('extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'allowanchor', 'allowlinker', 'allowhash', 'rsslinktagging', 'advancedsettings', 'trackregistration', 'theme_updated', 'cv_loggedin', 'cv_authorname', 'cv_category', 'cv_all_categories', 'cv_tags', 'cv_year', 'cv_post_type', 'outboundpageview', 'downloadspageview', 'gajslocalhosting', 'manual_uastring', 'taggfsubmit', 'wpec_tracking', 'shopp_tracking', 'anonymizeip', 'trackcommentform', 'debug','firebuglite') as $option_name) {
|
| 228 |
if (isset($_POST[$option_name]) && $_POST[$option_name] != 'off')
|
| 229 |
$options[$option_name] = true;
|
| 230 |
else
|
|
@@ -558,6 +558,12 @@ if ( is_admin() && ( !defined('DOING_AJAX') || !DOING_AJAX ) && !class_exists( '
|
|
| 558 |
'desc' => 'This allows you to set the domain that\'s set by <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setDomainName"><code>setDomainName</code></a> for tracking subdomains, if empty this will not be set.',
|
| 559 |
'content' => $this->textinput('domain'),
|
| 560 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
$rows[] = array(
|
| 562 |
'id' => 'customcode',
|
| 563 |
'label' => 'Custom Code',
|
|
@@ -942,6 +948,10 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
| 942 |
} else {
|
| 943 |
$push[] = "'_trackPageview'";
|
| 944 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 945 |
|
| 946 |
$push = apply_filters('yoast-ga-push-after-pageview',$push);
|
| 947 |
|
|
@@ -981,7 +991,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
| 981 |
}
|
| 982 |
|
| 983 |
if ( $options['customcode'] && trim( $options['customcode'] ) != '' )
|
| 984 |
-
echo "\t"
|
| 985 |
?>
|
| 986 |
_gaq.push(<?php echo $pushstr; ?>);
|
| 987 |
(function() {
|
| 4 |
Plugin URI: http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v407
|
| 5 |
Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. custom variables and automatic clickout and download tracking.
|
| 6 |
Author: Joost de Valk
|
| 7 |
+
Version: 4.1
|
| 8 |
Requires at least: 2.8
|
| 9 |
Author URI: http://yoast.com/
|
| 10 |
License: GPL
|
| 12 |
|
| 13 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
| 14 |
|
| 15 |
+
define('GAWP_VERSION', '4.1');
|
| 16 |
|
| 17 |
// Determine the location
|
| 18 |
function gapp_plugin_path() {
|
| 224 |
$options[$option_name] = '';
|
| 225 |
}
|
| 226 |
|
| 227 |
+
foreach (array('extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'allowanchor', 'allowlinker', 'allowhash', 'rsslinktagging', 'advancedsettings', 'trackregistration', 'theme_updated', 'cv_loggedin', 'cv_authorname', 'cv_category', 'cv_all_categories', 'cv_tags', 'cv_year', 'cv_post_type', 'outboundpageview', 'downloadspageview', 'gajslocalhosting', 'manual_uastring', 'taggfsubmit', 'wpec_tracking', 'shopp_tracking', 'anonymizeip', 'trackcommentform', 'debug','firebuglite', 'disable_pagespeed_tracking') as $option_name) {
|
| 228 |
if (isset($_POST[$option_name]) && $_POST[$option_name] != 'off')
|
| 229 |
$options[$option_name] = true;
|
| 230 |
else
|
| 558 |
'desc' => 'This allows you to set the domain that\'s set by <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setDomainName"><code>setDomainName</code></a> for tracking subdomains, if empty this will not be set.',
|
| 559 |
'content' => $this->textinput('domain'),
|
| 560 |
);
|
| 561 |
+
$rows[] = array(
|
| 562 |
+
'id' => 'disable_pagespeed_tracking',
|
| 563 |
+
'label' => 'Disable Site Speed tracking',
|
| 564 |
+
'desc' => 'This disables the Site Speed tracking feature of Google Analytics that is enabled by default in this plugin.',
|
| 565 |
+
'content' => $this->checkbox('disable_pagespeed_tracking'),
|
| 566 |
+
);
|
| 567 |
$rows[] = array(
|
| 568 |
'id' => 'customcode',
|
| 569 |
'label' => 'Custom Code',
|
| 948 |
} else {
|
| 949 |
$push[] = "'_trackPageview'";
|
| 950 |
}
|
| 951 |
+
|
| 952 |
+
if ( !isset( $options['disable_pagespeed_tracking'] ) || !$options['disable_pagespeed_tracking'] ) {
|
| 953 |
+
$push[] = "'_trackPageLoadTime'";
|
| 954 |
+
}
|
| 955 |
|
| 956 |
$push = apply_filters('yoast-ga-push-after-pageview',$push);
|
| 957 |
|
| 991 |
}
|
| 992 |
|
| 993 |
if ( $options['customcode'] && trim( $options['customcode'] ) != '' )
|
| 994 |
+
echo "\t". stripslashes( $options['customcode'] ) ."\n";
|
| 995 |
?>
|
| 996 |
_gaq.push(<?php echo $pushstr; ?>);
|
| 997 |
(function() {
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
|
|
| 4 |
Tags: analytics, google analytics, statistics, tracking, stats, google
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.1
|
| 7 |
-
Stable tag: 4.
|
| 8 |
|
| 9 |
Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.
|
| 10 |
|
|
@@ -19,8 +19,9 @@ http://www.youtube.com/watch?v=tnUXzbvXxSQ&hd=1
|
|
| 19 |
Full list of features:
|
| 20 |
|
| 21 |
* Simple installation through integration with Google Analytics API: authenticate, select the site you want to track and you're done.
|
| 22 |
-
* This plugin uses the asynchronous tracking code, the fastest and most reliable tracking code Google Analytics offers.
|
| 23 |
* Option to manually place the tracking code in another location.
|
|
|
|
| 24 |
* Outbound link & downloads tracking.
|
| 25 |
* Configurable options to track outbound links either as pageviews.
|
| 26 |
* Option to track just downloads as pageviews in Google Analytics.
|
|
@@ -33,11 +34,11 @@ Full list of features:
|
|
| 33 |
* Tags
|
| 34 |
* Possibility to ignore any user level and up, so all editors and higher for instance.
|
| 35 |
* Easily connect your Google AdSense and Google Analytics accounts.
|
| 36 |
-
* Option to tag links with campaign tracking, with the option to use hashes (#).
|
| 37 |
* Option anonymize IP's, for use in countries like Germany.
|
| 38 |
-
* Full [debug mode](http://yoast.com/google-analytics-debug-mode/), including Firebug lite and ga_debug.js for debugging Analytics issues.
|
| 39 |
* Allow local hosting of ga.js file.
|
| 40 |
-
* Tracking
|
| 41 |
* Tracking of login and registration forms.
|
| 42 |
|
| 43 |
Other interesting stuff:
|
|
@@ -47,8 +48,6 @@ Other interesting stuff:
|
|
| 47 |
* Check out the authors [WordPress Hosting](http://yoast.com/articles/wordpress-hosting/) experience. Good hosting is hard to come by, but it doesn't have to be expensive, Joost tells you why!
|
| 48 |
* If you've still not seen enough, or you'd rather listen than read, check out the [WordPress Podcast](http://wp-community.org/), hosted by the author of this plugin and Frederick Townes, the creator of [W3 Total Cache](http://wordpress.org/extend/plugins/w3-total-cache/).
|
| 49 |
|
| 50 |
-
<meta name="google-site-verification" content="JfWAcXeAyBe5IPMBFjYLi8OX5K_XFwz3sjSasjsoULs" />
|
| 51 |
-
|
| 52 |
== Installation ==
|
| 53 |
|
| 54 |
This section describes how to install the plugin and get it working.
|
|
@@ -60,14 +59,14 @@ This section describes how to install the plugin and get it working.
|
|
| 60 |
|
| 61 |
== Changelog ==
|
| 62 |
|
| 63 |
-
= 4.
|
| 64 |
|
|
|
|
|
|
|
|
|
|
| 65 |
* Fixed:
|
| 66 |
-
*
|
| 67 |
-
|
| 68 |
-
* Only load the admin class when you're actually in admin and not doing AJAX.
|
| 69 |
-
* Prevent notices on post types that do not have categories or tags.
|
| 70 |
-
|
| 71 |
= 4.0.12 =
|
| 72 |
|
| 73 |
* Fixed:
|
| 4 |
Tags: analytics, google analytics, statistics, tracking, stats, google
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 3.1
|
| 7 |
+
Stable tag: 4.1
|
| 8 |
|
| 9 |
Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.
|
| 10 |
|
| 19 |
Full list of features:
|
| 20 |
|
| 21 |
* Simple installation through integration with Google Analytics API: authenticate, select the site you want to track and you're done.
|
| 22 |
+
* This plugin uses the asynchronous Google Analytics tracking code, the fastest and most reliable tracking code Google Analytics offers.
|
| 23 |
* Option to manually place the tracking code in another location.
|
| 24 |
+
* Automatic Google Analytics site speed tracking.
|
| 25 |
* Outbound link & downloads tracking.
|
| 26 |
* Configurable options to track outbound links either as pageviews.
|
| 27 |
* Option to track just downloads as pageviews in Google Analytics.
|
| 34 |
* Tags
|
| 35 |
* Possibility to ignore any user level and up, so all editors and higher for instance.
|
| 36 |
* Easily connect your Google AdSense and Google Analytics accounts.
|
| 37 |
+
* Option to tag links with Google Analytics campaign tracking, with the option to use hashes (#).
|
| 38 |
* Option anonymize IP's, for use in countries like Germany.
|
| 39 |
+
* Full [debug mode](http://yoast.com/google-analytics-debug-mode/), including Firebug lite and ga_debug.js for debugging Google Analytics issues.
|
| 40 |
* Allow local hosting of ga.js file.
|
| 41 |
+
* Tracking of search engines not included in Google Analytics default tracking.
|
| 42 |
* Tracking of login and registration forms.
|
| 43 |
|
| 44 |
Other interesting stuff:
|
| 48 |
* Check out the authors [WordPress Hosting](http://yoast.com/articles/wordpress-hosting/) experience. Good hosting is hard to come by, but it doesn't have to be expensive, Joost tells you why!
|
| 49 |
* If you've still not seen enough, or you'd rather listen than read, check out the [WordPress Podcast](http://wp-community.org/), hosted by the author of this plugin and Frederick Townes, the creator of [W3 Total Cache](http://wordpress.org/extend/plugins/w3-total-cache/).
|
| 50 |
|
|
|
|
|
|
|
| 51 |
== Installation ==
|
| 52 |
|
| 53 |
This section describes how to install the plugin and get it working.
|
| 59 |
|
| 60 |
== Changelog ==
|
| 61 |
|
| 62 |
+
= 4.1 =
|
| 63 |
|
| 64 |
+
* Added:
|
| 65 |
+
* Google Site Speed tracking, turned it on by default.
|
| 66 |
+
|
| 67 |
* Fixed:
|
| 68 |
+
* Custom code now properly removes slashes.
|
| 69 |
+
|
|
|
|
|
|
|
|
|
|
| 70 |
= 4.0.12 =
|
| 71 |
|
| 72 |
* Fixed:
|
