Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 2.6.7 |
Comparing to | |
See all releases |
Code changes from version 2.6.6 to 2.6.7
- googleanalytics.php +8 -13
- readme.txt +1 -1
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.6.
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
@@ -375,8 +375,10 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
375 |
preg_match($hostPattern, $uri, $matches);
|
376 |
$host = $matches[2];
|
377 |
preg_match($domainPattern, $host, $matches);
|
378 |
-
|
379 |
-
|
|
|
|
|
380 |
}
|
381 |
|
382 |
function ga_parse_link($leaf, $matches){
|
@@ -385,7 +387,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
385 |
$options = get_option('GoogleAnalyticsPP');
|
386 |
|
387 |
$target = GA_Filter::ga_get_domain($matches[3]);
|
388 |
-
$
|
389 |
$extension = substr($matches[3],-3);
|
390 |
$dlextensions = split(",",$options['dlextensions']);
|
391 |
if ( $target["domain"] != $origin["domain"] ){
|
@@ -413,7 +415,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
413 |
}
|
414 |
|
415 |
function the_content($text) {
|
416 |
-
static $anchorPattern = '/<a (.*?)href=[\'\"
|
417 |
$text = preg_replace_callback($anchorPattern,array('GA_Filter','ga_parse_article_link'),$text);
|
418 |
return $text;
|
419 |
}
|
@@ -432,7 +434,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
432 |
if ($matches[2] == "") return $text;
|
433 |
|
434 |
$target = GA_Filter::ga_get_domain($matches[2]);
|
435 |
-
$
|
436 |
$origin = GA_Filter::ga_get_domain($_SERVER["HTTP_HOST"]);
|
437 |
if ( $target["domain"] != $origin["domain"] ){
|
438 |
if ($options['domainorurl'] == "domain") {
|
@@ -465,13 +467,6 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
465 |
$version = "0.61";
|
466 |
$uakey = "analytics";
|
467 |
|
468 |
-
if (function_exists("get_option")) {
|
469 |
-
if ($wp_uastring_takes_precedence) {
|
470 |
-
$options = get_option('GoogleAnalyticsPP');
|
471 |
-
$uastring = $options['uastring'];
|
472 |
-
}
|
473 |
-
}
|
474 |
-
|
475 |
$mulch = ($uastring=""?"##-#####-#":$uastring);
|
476 |
$gaf = new GA_Filter();
|
477 |
$origin = $gaf->ga_get_domain($_SERVER["HTTP_HOST"]);
|
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.6.7
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
375 |
preg_match($hostPattern, $uri, $matches);
|
376 |
$host = $matches[2];
|
377 |
preg_match($domainPattern, $host, $matches);
|
378 |
+
if (isset($matches[0]))
|
379 |
+
return array("domain"=>$matches[0],"host"=>$host);
|
380 |
+
else
|
381 |
+
return array("domain"=>"","host"=>"");
|
382 |
}
|
383 |
|
384 |
function ga_parse_link($leaf, $matches){
|
387 |
$options = get_option('GoogleAnalyticsPP');
|
388 |
|
389 |
$target = GA_Filter::ga_get_domain($matches[3]);
|
390 |
+
$coolBit = "";
|
391 |
$extension = substr($matches[3],-3);
|
392 |
$dlextensions = split(",",$options['dlextensions']);
|
393 |
if ( $target["domain"] != $origin["domain"] ){
|
415 |
}
|
416 |
|
417 |
function the_content($text) {
|
418 |
+
static $anchorPattern = '/<a (.*?)href=[\'\"](.*?)\/\/([^\'\"]+?)[\'\"](.*?)>(.*?)<\/a>/i';
|
419 |
$text = preg_replace_callback($anchorPattern,array('GA_Filter','ga_parse_article_link'),$text);
|
420 |
return $text;
|
421 |
}
|
434 |
if ($matches[2] == "") return $text;
|
435 |
|
436 |
$target = GA_Filter::ga_get_domain($matches[2]);
|
437 |
+
$coolBit = "";
|
438 |
$origin = GA_Filter::ga_get_domain($_SERVER["HTTP_HOST"]);
|
439 |
if ( $target["domain"] != $origin["domain"] ){
|
440 |
if ($options['domainorurl'] == "domain") {
|
467 |
$version = "0.61";
|
468 |
$uakey = "analytics";
|
469 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
$mulch = ($uastring=""?"##-#####-#":$uastring);
|
471 |
$gaf = new GA_Filter();
|
472 |
$origin = $gaf->ga_get_domain($_SERVER["HTTP_HOST"]);
|
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
|
7 |
-
Stable tag: 2.6.
|
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 |
|
4 |
Tags: analytics, google analytics, statistics
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.7
|
7 |
+
Stable tag: 2.6.7
|
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 |
|