Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
gapp/adsense-track.js → adsense-track.js
RENAMED
File without changes
|
gapp/custom_se.js → custom_se.js
RENAMED
File without changes
|
gapp/googleanalytics.php → googleanalytics.php
RENAMED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
|
|
4 |
Plugin URI: http://www.joostdevalk.nl/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.5
|
8 |
Author URI: http://www.joostdevalk.nl/
|
9 |
License: GPL
|
10 |
|
@@ -12,6 +12,7 @@ Based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
|
12 |
|
13 |
*/
|
14 |
|
|
|
15 |
$uastring = "UA-00000-0";
|
16 |
|
17 |
/*
|
@@ -328,6 +329,8 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
328 |
* Insert the tracking code into the page
|
329 |
*/
|
330 |
function spool_analytics() {
|
|
|
|
|
331 |
$opt = get_option('GoogleAnalyticsPP');
|
332 |
$options = unserialize($opt);
|
333 |
|
@@ -341,7 +344,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
341 |
var pageTracker = _gat._getTracker("<?php echo $options["uastring"]; ?>");
|
342 |
</script>
|
343 |
<?php if ( $options["extrase"] == true ) {
|
344 |
-
echo("\t<script src=\"".
|
345 |
} ?>
|
346 |
<script type="text/javascript">
|
347 |
<?php if ( $options['userv2'] ) {
|
@@ -361,7 +364,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
361 |
}
|
362 |
|
363 |
function track_adsense() {
|
364 |
-
echo("\t<script src=\"".
|
365 |
}
|
366 |
/* Create an array which contians:
|
367 |
* "domain" e.g. boakes.org
|
@@ -532,4 +535,4 @@ add_action('wp_head', array('GA_Filter','spool_analytics'));
|
|
532 |
if ($options['trackadsense']) {
|
533 |
add_action('wp_footer', array('GA_Filter','track_adsense'));
|
534 |
}
|
535 |
-
?>
|
4 |
Plugin URI: http://www.joostdevalk.nl/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.5.1
|
8 |
Author URI: http://www.joostdevalk.nl/
|
9 |
License: GPL
|
10 |
|
12 |
|
13 |
*/
|
14 |
|
15 |
+
$pluginpath = str_replace(str_replace('\\', '/', ABSPATH), get_settings('siteurl').'/', str_replace('\\', '/', dirname(__FILE__))).'/';
|
16 |
$uastring = "UA-00000-0";
|
17 |
|
18 |
/*
|
329 |
* Insert the tracking code into the page
|
330 |
*/
|
331 |
function spool_analytics() {
|
332 |
+
global $pluginpath;
|
333 |
+
|
334 |
$opt = get_option('GoogleAnalyticsPP');
|
335 |
$options = unserialize($opt);
|
336 |
|
344 |
var pageTracker = _gat._getTracker("<?php echo $options["uastring"]; ?>");
|
345 |
</script>
|
346 |
<?php if ( $options["extrase"] == true ) {
|
347 |
+
echo("\t<script src=\"".$pluginpath."custom_se.js\" type=\"text/javascript\"></script>\n");
|
348 |
} ?>
|
349 |
<script type="text/javascript">
|
350 |
<?php if ( $options['userv2'] ) {
|
364 |
}
|
365 |
|
366 |
function track_adsense() {
|
367 |
+
echo("\t<script src=\"".$pluginpath."adsense-track.js\" type=\"text/javascript\"></script>\n");
|
368 |
}
|
369 |
/* Create an array which contians:
|
370 |
* "domain" e.g. boakes.org
|
535 |
if ($options['trackadsense']) {
|
536 |
add_action('wp_footer', array('GA_Filter','track_adsense'));
|
537 |
}
|
538 |
+
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joostdevalk.nl/donate/
|
|
4 |
Tags: analytics, google analytics, statistics
|
5 |
Requires at least: 2.2
|
6 |
Tested up to: 2.5
|
7 |
-
Stable tag: 2.5
|
8 |
|
9 |
The Google Analytics for WordPress plugina 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.5
|
7 |
+
Stable tag: 2.5.1
|
8 |
|
9 |
The Google Analytics for WordPress plugina 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 |
|