Version Description
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 2.5.6 |
Comparing to | |
See all releases |
Code changes from version 2.5.5 to 2.5.6
- googleanalytics.php +21 -56
- readme.txt +1 -1
googleanalytics.php
CHANGED
@@ -4,14 +4,13 @@ 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.5.
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
11 |
-
|
12 |
|
13 |
*/
|
14 |
-
|
15 |
$gapppluginpath = str_replace(str_replace('\\', '/', ABSPATH), get_settings('siteurl').'/', str_replace('\\', '/', dirname(__FILE__))).'/';
|
16 |
$uastring = "UA-00000-0";
|
17 |
|
@@ -36,59 +35,24 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
36 |
if (!current_user_can('manage_options')) die(__('You cannot edit the Google Analytics for WordPress options.'));
|
37 |
check_admin_referer('analyticspp-config');
|
38 |
$options['uastring'] = $_POST['uastring'];
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
if (isset($_POST['artprefix']) && $_POST['artprefix'] != "")
|
46 |
-
$options['artprefix'] = strtolower($_POST['artprefix']);
|
47 |
-
if (isset($_POST['comprefix']) && $_POST['comprefix'] != "")
|
48 |
-
$options['comprefix'] = strtolower($_POST['comprefix']);
|
49 |
-
if (isset($_POST['comautprefix']) && $_POST['comautprefix'] != "")
|
50 |
-
$options['comautprefix'] = strtolower($_POST['comautprefix']);
|
51 |
-
if (isset($_POST['blogrollprefix']) && $_POST['blogrollprefix'] != "")
|
52 |
-
$options['blogrollprefix'] = strtolower($_POST['blogrollprefix']);
|
53 |
-
if (isset($_POST['domainorurl']) && $_POST['domainorurl'] != "")
|
54 |
-
$options['domainorurl'] = $_POST['domainorurl'];
|
55 |
-
|
56 |
-
if (isset($_POST['extrase'])) {
|
57 |
-
$options['extrase'] = true;
|
58 |
-
} else {
|
59 |
-
$options['extrase'] = false;
|
60 |
-
}
|
61 |
-
|
62 |
-
if (isset($_POST['imagese'])) {
|
63 |
-
$options['imagese'] = true;
|
64 |
-
$options['extrase'] = true;
|
65 |
-
} else {
|
66 |
-
$options['imagese'] = false;
|
67 |
-
}
|
68 |
-
|
69 |
-
if (isset($_POST['trackoutbound'])) {
|
70 |
-
$options['trackoutbound'] = true;
|
71 |
-
} else {
|
72 |
-
$options['trackoutbound'] = false;
|
73 |
-
}
|
74 |
-
|
75 |
-
if (isset($_POST['admintracking'])) {
|
76 |
-
$options['admintracking'] = true;
|
77 |
-
} else {
|
78 |
-
$options['admintracking'] = false;
|
79 |
}
|
80 |
-
|
81 |
-
|
82 |
-
$
|
83 |
-
|
84 |
-
|
|
|
|
|
85 |
}
|
86 |
|
87 |
-
if (
|
88 |
-
$options['
|
89 |
-
}
|
90 |
-
$options['userv2'] = false;
|
91 |
-
}
|
92 |
|
93 |
$opt = serialize($options);
|
94 |
update_option('GoogleAnalyticsPP', $opt);
|
@@ -518,11 +482,12 @@ if ($options['trackoutbound']) {
|
|
518 |
add_filter('get_bookmarks', array('GA_Filter','bookmarks'), 99);
|
519 |
add_filter('get_comment_author_link', array('GA_Filter','comment_author_link'), 99);
|
520 |
}
|
521 |
-
if ($options['trackadsense']) {
|
522 |
-
add_action('wp_footer', array('GA_Filter','track_adsense'));
|
523 |
-
}
|
524 |
|
525 |
// adds the footer so the javascript is loaded
|
526 |
add_action('wp_footer', array('GA_Filter','spool_analytics'));
|
527 |
|
|
|
|
|
|
|
|
|
528 |
?>
|
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.5.6
|
8 |
Author URI: http://yoast.com/
|
9 |
License: GPL
|
10 |
|
11 |
+
Originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
12 |
|
13 |
*/
|
|
|
14 |
$gapppluginpath = str_replace(str_replace('\\', '/', ABSPATH), get_settings('siteurl').'/', str_replace('\\', '/', dirname(__FILE__))).'/';
|
15 |
$uastring = "UA-00000-0";
|
16 |
|
35 |
if (!current_user_can('manage_options')) die(__('You cannot edit the Google Analytics for WordPress options.'));
|
36 |
check_admin_referer('analyticspp-config');
|
37 |
$options['uastring'] = $_POST['uastring'];
|
38 |
+
|
39 |
+
foreach (array('dlextensions', 'dlprefix', 'artprefix', 'comautprefix', 'blogrollprefix', 'domainorurl') as $option_name) {
|
40 |
+
if (isset($_POST[$option_name])) {
|
41 |
+
$options[$option_name] = strtolower($_POST[$option_name]);
|
42 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
}
|
44 |
+
|
45 |
+
foreach (array('extrase', 'imagese', 'trackoutbound', 'admintracking', 'trackadsense', 'userv2') as $option_name) {
|
46 |
+
if (isset($_POST[$option_name])) {
|
47 |
+
$options[$option_name] = true;
|
48 |
+
} else {
|
49 |
+
$options[$option_name] = false;
|
50 |
+
}
|
51 |
}
|
52 |
|
53 |
+
if ($options['imagese']) {
|
54 |
+
$options['extrase'] = true;
|
55 |
+
}
|
|
|
|
|
56 |
|
57 |
$opt = serialize($options);
|
58 |
update_option('GoogleAnalyticsPP', $opt);
|
482 |
add_filter('get_bookmarks', array('GA_Filter','bookmarks'), 99);
|
483 |
add_filter('get_comment_author_link', array('GA_Filter','comment_author_link'), 99);
|
484 |
}
|
|
|
|
|
|
|
485 |
|
486 |
// adds the footer so the javascript is loaded
|
487 |
add_action('wp_footer', array('GA_Filter','spool_analytics'));
|
488 |
|
489 |
+
if ($options['trackadsense']) {
|
490 |
+
add_action('wp_footer', array('GA_Filter','track_adsense'));
|
491 |
+
}
|
492 |
+
|
493 |
?>
|
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.5.1
|
7 |
-
Stable tag: 2.5.
|
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.5.1
|
7 |
+
Stable tag: 2.5.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 |
|