Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 2.9.1 |
Comparing to | |
See all releases |
Code changes from version 2.9 to 2.9.1
- googleanalytics.php +27 -8
- readme.txt +4 -3
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.9
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
@@ -86,6 +86,13 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
86 |
});
|
87 |
});
|
88 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
<?php
|
90 |
}
|
91 |
|
@@ -164,7 +171,8 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
164 |
<br/>
|
165 |
<img src="<?php echo $gapppluginpath ?>/account-id.png" alt="Account ID"/><br/>
|
166 |
<br/>
|
167 |
-
Once you have entered your Account ID in the box above your pages will be trackable by Google Analytics
|
|
|
168 |
</div>
|
169 |
</td>
|
170 |
</tr>
|
@@ -316,6 +324,14 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
316 |
<input type="hidden" name="reset" value="true"/>
|
317 |
<p style="border:0;" class="submit"><input type="submit" value="Reset Settings »" /></p>
|
318 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
</div>
|
320 |
<?php
|
321 |
if (isset($options['uastring'])) {
|
@@ -331,9 +347,8 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
331 |
} else {
|
332 |
add_action('admin_footer', array('GA_Admin','warning'));
|
333 |
}
|
334 |
-
|
335 |
} // end config_page()
|
336 |
-
|
337 |
function restore_defaults() {
|
338 |
$options['dlextensions'] = 'doc,exe,.js,pdf,ppt,tgz,zip,xls';
|
339 |
$options['dlprefix'] = '/downloads';
|
@@ -494,14 +509,18 @@ if (strpos($_SERVER['HTTP_REFERER'],"images.google") && strpos($_SERVER['HTTP_RE
|
|
494 |
}
|
495 |
|
496 |
function the_content($text) {
|
497 |
-
|
498 |
-
|
|
|
|
|
499 |
return $text;
|
500 |
}
|
501 |
|
502 |
function comment_text($text) {
|
503 |
-
|
504 |
-
|
|
|
|
|
505 |
return $text;
|
506 |
}
|
507 |
|
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.9.1
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
86 |
});
|
87 |
});
|
88 |
</script>
|
89 |
+
<style type="text/css" media="screen">
|
90 |
+
.pluginmenu li {
|
91 |
+
list-style-type: square;
|
92 |
+
margin-left: 20px;
|
93 |
+
padding-left: 5px;
|
94 |
+
}
|
95 |
+
</style>
|
96 |
<?php
|
97 |
}
|
98 |
|
171 |
<br/>
|
172 |
<img src="<?php echo $gapppluginpath ?>/account-id.png" alt="Account ID"/><br/>
|
173 |
<br/>
|
174 |
+
Once you have entered your Account ID in the box above your pages will be trackable by Google Analytics.<br/>
|
175 |
+
Still can't find it? Watch <a href="http://yoast.com/wordpress/google-analytics/#accountid">this video</a>!
|
176 |
</div>
|
177 |
</td>
|
178 |
</tr>
|
324 |
<input type="hidden" name="reset" value="true"/>
|
325 |
<p style="border:0;" class="submit"><input type="submit" value="Reset Settings »" /></p>
|
326 |
</form>
|
327 |
+
<br/><br/>
|
328 |
+
<h3>Like this plugin?</h3>
|
329 |
+
<p>Why not do any of the following:</p>
|
330 |
+
<ul class="pluginmenu">
|
331 |
+
<li>Link to it so other folks can find out about it.</li>
|
332 |
+
<li><a href="http://wordpress.org/extend/plugins/google-analytics-for-wordpress/">Give it a good rating</a> on WordPress.org, so others will find it more easily too!</li>
|
333 |
+
<li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2017947">Donate a token of your appreciation</a>.</li>
|
334 |
+
</ul>
|
335 |
</div>
|
336 |
<?php
|
337 |
if (isset($options['uastring'])) {
|
347 |
} else {
|
348 |
add_action('admin_footer', array('GA_Admin','warning'));
|
349 |
}
|
|
|
350 |
} // end config_page()
|
351 |
+
|
352 |
function restore_defaults() {
|
353 |
$options['dlextensions'] = 'doc,exe,.js,pdf,ppt,tgz,zip,xls';
|
354 |
$options['dlprefix'] = '/downloads';
|
509 |
}
|
510 |
|
511 |
function the_content($text) {
|
512 |
+
if (!is_feed()) {
|
513 |
+
static $anchorPattern = '/<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i';
|
514 |
+
$text = preg_replace_callback($anchorPattern,array('GA_Filter','ga_parse_article_link'),$text);
|
515 |
+
}
|
516 |
return $text;
|
517 |
}
|
518 |
|
519 |
function comment_text($text) {
|
520 |
+
if (!is_feed()) {
|
521 |
+
static $anchorPattern = '/<a (.*?)href="(.*?)\/\/(.*?)"(.*?)>(.*?)<\/a>/i';
|
522 |
+
$text = preg_replace_callback($anchorPattern,array('GA_Filter','ga_parse_comment_link'),$text);
|
523 |
+
}
|
524 |
return $text;
|
525 |
}
|
526 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yoast.com/donate/
|
|
4 |
Tags: analytics, google analytics, statistics
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.7.1
|
7 |
-
Stable tag: 2.9
|
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 |
|
@@ -22,13 +22,14 @@ In the options panel for the plugin, you can determine the prefixes to use for t
|
|
22 |
|
23 |
This section describes how to install the plugin and get it working.
|
24 |
|
25 |
-
1. Delete any existing `
|
26 |
-
1. Upload `
|
27 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
28 |
1. Go to the options panel under the 'Plugins' menu and add your Analytics account number and set the settings you want.
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
32 |
1. 2.9: Re arranged admin panel to have "standard" and "advanced" settigns, added domain tracking, added fix for double onclick parameter, as suggest here: http://wordpress.org/support/topic/241757
|
33 |
1. 2.8: Added the option to add setAllowAnchor to the tracking code, allowing you to track campaigns with # instead of ?
|
34 |
1. 2.7: Added option to select either header of footer position, added new AdSense integration options, remove now unneeded adsense tracking script.
|
4 |
Tags: analytics, google analytics, statistics
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 2.9.1
|
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 |
|
22 |
|
23 |
This section describes how to install the plugin and get it working.
|
24 |
|
25 |
+
1. Delete any existing `google-analytics-for-wordpress` folder from the `/wp-content/plugins/` directory
|
26 |
+
1. Upload `google-analytics-for-wordpress` folder to the `/wp-content/plugins/` directory
|
27 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
28 |
1. Go to the options panel under the 'Plugins' menu and add your Analytics account number and set the settings you want.
|
29 |
|
30 |
== Changelog ==
|
31 |
|
32 |
+
1. 2.9.1: Prevented click tracking from being added to feeds, to make sure feeds keep validating, added link to video about finding your account ID, added "Like this plugin" list of suggestion to help out.
|
33 |
1. 2.9: Re arranged admin panel to have "standard" and "advanced" settigns, added domain tracking, added fix for double onclick parameter, as suggest here: http://wordpress.org/support/topic/241757
|
34 |
1. 2.8: Added the option to add setAllowAnchor to the tracking code, allowing you to track campaigns with # instead of ?
|
35 |
1. 2.7: Added option to select either header of footer position, added new AdSense integration options, remove now unneeded adsense tracking script.
|