Version Description
- New features in this release:
- Added a simple check to see if the UA code, when entered manually, matches a basic pattern of UA-1234567-12.
- Added integration with W3 Total Cache and WP Super Cache. The page cache is now automatically cleared after updating settings. Caching is recommended for all WordPress users, as faster page loads improve tracking reliability and W3 Total Cache is our recommended caching plugin.
- Added the option to enter a manual location for ga.js, allowing you to host it locally should you wish to.
- Bugs fixed:
- Fixed implementation of _anonymizeIp, it now correctly anonymizes IP's by setting _gat._anonymizeIp.
- Increased request timeout time for Google Analytics authentication from 10 to 20 seconds, for slow hosts (if this fixes it for you, your hosting is probably not really good, consider another WordPress host).
- Documentation fixes:
- Added a note about profiles with the same UA code to the Analytics Profile selection.
- The profile selection dropdown now shows the UA code after the profile name too.
- Updated the screenshots and the FAQ for this plugin.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 4.0.5 |
Comparing to | |
See all releases |
Code changes from version 4.0.4 to 4.0.5
- googleanalytics.php +55 -16
- readme.txt +34 -19
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
googleanalytics.php
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Analytics for WordPress
|
4 |
-
Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=
|
5 |
-
Description: This plugin makes it simple to add Google Analytics
|
6 |
Author: Joost de Valk
|
7 |
-
Version: 4.0.
|
8 |
Requires at least: 2.8
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL
|
11 |
-
|
12 |
*/
|
13 |
|
14 |
// Determine the location
|
@@ -22,7 +21,7 @@ function gapp_plugin_path() {
|
|
22 |
|
23 |
if ( ! class_exists( 'GA_Admin' ) ) {
|
24 |
|
25 |
-
require_once('yst_plugin_tools.php'
|
26 |
|
27 |
class GA_Admin extends Yoast_GA_Plugin_Admin {
|
28 |
|
@@ -127,12 +126,27 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
127 |
jQuery('#extrasebox').css("display","none");
|
128 |
}
|
129 |
}).change();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
jQuery('#customvarsettings :input').change(function() {
|
131 |
if (jQuery("#customvarsettings :input:checked").size() > 5) {
|
132 |
alert('The maximum number of allowed custom variables in Google Analytics is 5, please unselect one of the other custom variables before selecting this one.')
|
133 |
jQuery(this).attr('checked', false);
|
134 |
};
|
135 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
});
|
137 |
</script>
|
138 |
<?php
|
@@ -172,14 +186,14 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
172 |
if (!current_user_can('manage_options')) die(__('You cannot edit the Google Analytics for WordPress options.'));
|
173 |
check_admin_referer('analyticspp-config');
|
174 |
|
175 |
-
foreach (array('uastring', 'dlextensions', 'domainorurl','position','domain', 'ga_token', 'extraseurl', 'gfsubmiteventpv', 'trackprefix', 'ignore_userlevel', 'internallink', 'internallinklabel') as $option_name) {
|
176 |
if (isset($_POST[$option_name]))
|
177 |
$options[$option_name] = $_POST[$option_name];
|
178 |
else
|
179 |
$options[$option_name] = '';
|
180 |
}
|
181 |
|
182 |
-
foreach (array('extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'allowanchor', 'allowlinker', 'rsslinktagging', 'advancedsettings', 'trackregistration', 'theme_updated', 'cv_loggedin', 'cv_authorname', 'cv_category', 'cv_all_categories', 'cv_tags', 'cv_year', 'cv_post_type', 'outboundpageview', 'downloadspageview', 'manual_uastring', 'taggfsubmit', 'wpec_tracking', 'shopp_tracking', 'anonymizeip', 'trackcommentform') as $option_name) {
|
183 |
if (isset($_POST[$option_name]) && $_POST[$option_name] != 'off')
|
184 |
$options[$option_name] = true;
|
185 |
else
|
@@ -190,8 +204,17 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
190 |
$options['uastring'] = $_POST['uastring_man'];
|
191 |
}
|
192 |
|
193 |
-
$
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
update_option($this->optionname, $options);
|
197 |
}
|
@@ -251,7 +274,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
251 |
else
|
252 |
$token = $options['ga_token'];
|
253 |
|
254 |
-
require_once('xmlparser.php'
|
255 |
if (file_exists(ABSPATH.'wp-includes/class-http.php'))
|
256 |
require_once(ABSPATH.'wp-includes/class-http.php');
|
257 |
|
@@ -267,7 +290,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
267 |
'method' => 'GET',
|
268 |
'body' => '',
|
269 |
'headers' => $headers,
|
270 |
-
'timeout' =>
|
271 |
);
|
272 |
$result = $request->request( $api_url , $args );
|
273 |
if (is_array($result) && $result['response']['code'] == 200) {
|
@@ -313,7 +336,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
313 |
if (!empty($sel)) {
|
314 |
$accountsel = true;
|
315 |
}
|
316 |
-
$select2 .= "\t".'<option class="sub_'.$i.'" '.$sel.' value="'.$ua.'">'.$title.'</option>'."\n";
|
317 |
}
|
318 |
$select1 .= "\t".'<option '.selected($accountsel,true,false).' value="'.$i.'">'.$account.'</option>'."\n";
|
319 |
$i++;
|
@@ -337,7 +360,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
337 |
window.location="'.$this->plugin_options_url().'&switchua=1&token='.$token.'&try='.$try.'";
|
338 |
</script>';
|
339 |
}
|
340 |
-
|
341 |
$line .= '<br/>Refresh this listing or switch to another account: ';
|
342 |
} else {
|
343 |
$line = 'Unfortunately, an error occurred while connecting to Google, please try again:';
|
@@ -502,6 +525,15 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
502 |
'desc' => 'This requires integration of your Analytics and AdSense account, for help, <a href="http://google.com/support/analytics/bin/answer.py?answer=92625">look here</a>.',
|
503 |
'content' => $this->checkbox('trackadsense'),
|
504 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
505 |
$rows[] = array(
|
506 |
'id' => 'extrase',
|
507 |
'label' => 'Track extra Search Engines',
|
@@ -626,7 +658,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
626 |
if ( count($modules) > 0 )
|
627 |
$this->postbox('toc','List of Available Modules',$this->toc($modules));
|
628 |
$this->plugin_like();
|
629 |
-
$this->postbox('donate','Donate $5, $10 or $20 now!','<form style="margin-left:50px;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
630 |
<input type="hidden" name="cmd" value="_s-xclick">
|
631 |
<input type="hidden" name="hosted_button_id" value="FW9FK4EBZ9FVJ">
|
632 |
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
@@ -725,7 +757,7 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
725 |
$push[] = "'_setAllowLinker',true";
|
726 |
|
727 |
if ( $options['anonymizeip'] )
|
728 |
-
$push[] = "'_anonymizeIp'";
|
729 |
|
730 |
if ( isset($options['domain']) && $options['domain'] != "" ) {
|
731 |
// should allow for a 'none' domain too!
|
@@ -854,7 +886,14 @@ if ( ! class_exists( 'GA_Filter' ) ) {
|
|
854 |
_gaq.push(<?php echo $pushstr; ?>);
|
855 |
(function() {
|
856 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
857 |
-
ga.src =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
858 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
859 |
})();
|
860 |
//]]></script>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Google Analytics for WordPress
|
4 |
+
Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v405
|
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.0.5
|
8 |
Requires at least: 2.8
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL
|
|
|
11 |
*/
|
12 |
|
13 |
// Determine the location
|
21 |
|
22 |
if ( ! class_exists( 'GA_Admin' ) ) {
|
23 |
|
24 |
+
require_once plugin_dir_path(__FILE__).'yst_plugin_tools.php';
|
25 |
|
26 |
class GA_Admin extends Yoast_GA_Plugin_Admin {
|
27 |
|
126 |
jQuery('#extrasebox').css("display","none");
|
127 |
}
|
128 |
}).change();
|
129 |
+
jQuery('#gajslocalhosting').change(function(){
|
130 |
+
if ((jQuery('#gajslocalhosting').attr('checked')) == true) {
|
131 |
+
jQuery('#localhostingbox').css("display","block");
|
132 |
+
} else {
|
133 |
+
jQuery('#localhostingbox').css("display","none");
|
134 |
+
}
|
135 |
+
}).change();
|
136 |
jQuery('#customvarsettings :input').change(function() {
|
137 |
if (jQuery("#customvarsettings :input:checked").size() > 5) {
|
138 |
alert('The maximum number of allowed custom variables in Google Analytics is 5, please unselect one of the other custom variables before selecting this one.')
|
139 |
jQuery(this).attr('checked', false);
|
140 |
};
|
141 |
});
|
142 |
+
jQuery('#uastring').change(function(){
|
143 |
+
if ((jQuery('#switchtomanual').attr('checked')) == true) {
|
144 |
+
if (!jQuery(this).val().match(/^UA-[\d-]+$/)) {
|
145 |
+
alert("That's not a valid UA ID, please make sure it looks something like this: UA-1234567-123, and that there are no spaces or other characters in the input field.");
|
146 |
+
jQuery(this).focus();
|
147 |
+
}
|
148 |
+
}
|
149 |
+
});
|
150 |
});
|
151 |
</script>
|
152 |
<?php
|
186 |
if (!current_user_can('manage_options')) die(__('You cannot edit the Google Analytics for WordPress options.'));
|
187 |
check_admin_referer('analyticspp-config');
|
188 |
|
189 |
+
foreach (array('uastring', 'dlextensions', 'domainorurl','position','domain', 'ga_token', 'extraseurl', 'gajsurl', 'gfsubmiteventpv', 'trackprefix', 'ignore_userlevel', 'internallink', 'internallinklabel') as $option_name) {
|
190 |
if (isset($_POST[$option_name]))
|
191 |
$options[$option_name] = $_POST[$option_name];
|
192 |
else
|
193 |
$options[$option_name] = '';
|
194 |
}
|
195 |
|
196 |
+
foreach (array('extrase', 'trackoutbound', 'admintracking', 'trackadsense', 'allowanchor', 'allowlinker', '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') as $option_name) {
|
197 |
if (isset($_POST[$option_name]) && $_POST[$option_name] != 'off')
|
198 |
$options[$option_name] = true;
|
199 |
else
|
204 |
$options['uastring'] = $_POST['uastring_man'];
|
205 |
}
|
206 |
|
207 |
+
$cache = '';
|
208 |
+
if ( function_exists('w3tc_pgcache_flush') ) {
|
209 |
+
w3tc_pgcache_flush();
|
210 |
+
$cache = ' and <strong>W3TC Page Cache cleared</strong>';
|
211 |
+
} else if ( function_exists('wp_cache_clear_cache') ) {
|
212 |
+
wp_cache_clear_cache();
|
213 |
+
$cache = ' and <strong>WP Super Cache cleared</strong>';
|
214 |
+
}
|
215 |
+
|
216 |
+
$options['msg'] = "<div id=\"updatemessage\" class=\"updated fade\"><p>Google Analytics <strong>settings updated</strong>$cache.</p></div>\n";
|
217 |
+
$options['msg'] .= "<script type=\"text/javascript\">setTimeout(function(){jQuery('#updatemessage').hide('slow');}, 3000);</script>";
|
218 |
}
|
219 |
update_option($this->optionname, $options);
|
220 |
}
|
274 |
else
|
275 |
$token = $options['ga_token'];
|
276 |
|
277 |
+
require_once plugin_dir_path(__FILE__).'xmlparser.php';
|
278 |
if (file_exists(ABSPATH.'wp-includes/class-http.php'))
|
279 |
require_once(ABSPATH.'wp-includes/class-http.php');
|
280 |
|
290 |
'method' => 'GET',
|
291 |
'body' => '',
|
292 |
'headers' => $headers,
|
293 |
+
'timeout' => 20,
|
294 |
);
|
295 |
$result = $request->request( $api_url , $args );
|
296 |
if (is_array($result) && $result['response']['code'] == 200) {
|
336 |
if (!empty($sel)) {
|
337 |
$accountsel = true;
|
338 |
}
|
339 |
+
$select2 .= "\t".'<option class="sub_'.$i.'" '.$sel.' value="'.$ua.'">'.$title.' - '.$ua.'</option>'."\n";
|
340 |
}
|
341 |
$select1 .= "\t".'<option '.selected($accountsel,true,false).' value="'.$i.'">'.$account.'</option>'."\n";
|
342 |
$i++;
|
360 |
window.location="'.$this->plugin_options_url().'&switchua=1&token='.$token.'&try='.$try.'";
|
361 |
</script>';
|
362 |
}
|
363 |
+
$line .= 'Please note that if you have several profiles of the same website, it doesn\'t matter which profile you select, and in fact another profile might show as selected later. You can check whether they\'re profiles for the same site by checking if they have the same UA code. If that\'s true, tracking will be correct.<br/>';
|
364 |
$line .= '<br/>Refresh this listing or switch to another account: ';
|
365 |
} else {
|
366 |
$line = 'Unfortunately, an error occurred while connecting to Google, please try again:';
|
525 |
'desc' => 'This requires integration of your Analytics and AdSense account, for help, <a href="http://google.com/support/analytics/bin/answer.py?answer=92625">look here</a>.',
|
526 |
'content' => $this->checkbox('trackadsense'),
|
527 |
);
|
528 |
+
$rows[] = array(
|
529 |
+
'id' => 'gajslocalhosting',
|
530 |
+
'label' => 'Host ga.js locally',
|
531 |
+
'content' => $this->checkbox('gajslocalhosting').'<div id="localhostingbox">
|
532 |
+
You have to provide a URL to your ga.js file:
|
533 |
+
<input type="text" name="gajsurl" size="30" value="'.$options['gajsurl'].'"/>
|
534 |
+
</div>',
|
535 |
+
'desc' => 'For some reasons you might want to use a locally hosted ga.js file, or another ga.js file, check the box and then please enter the full URL including http here.'
|
536 |
+
);
|
537 |
$rows[] = array(
|
538 |
'id' => 'extrase',
|
539 |
'label' => 'Track extra Search Engines',
|
658 |
if ( count($modules) > 0 )
|
659 |
$this->postbox('toc','List of Available Modules',$this->toc($modules));
|
660 |
$this->plugin_like();
|
661 |
+
$this->postbox('donate','Donate $5, $10 or $20 now!','<p>This plugin has cost me countless hours of work, if you use it, please donate a token of your appreciation!</p><br/><form style="margin-left:50px;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
662 |
<input type="hidden" name="cmd" value="_s-xclick">
|
663 |
<input type="hidden" name="hosted_button_id" value="FW9FK4EBZ9FVJ">
|
664 |
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
757 |
$push[] = "'_setAllowLinker',true";
|
758 |
|
759 |
if ( $options['anonymizeip'] )
|
760 |
+
$push[] = "'_gat._anonymizeIp'";
|
761 |
|
762 |
if ( isset($options['domain']) && $options['domain'] != "" ) {
|
763 |
// should allow for a 'none' domain too!
|
886 |
_gaq.push(<?php echo $pushstr; ?>);
|
887 |
(function() {
|
888 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
889 |
+
ga.src = <?php
|
890 |
+
if ( $options['gajslocalhosting'] && !empty($options['gajsurl']) ) {
|
891 |
+
echo "'".$options['gajsurl']."';";
|
892 |
+
} else {
|
893 |
+
echo "('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';";
|
894 |
+
}
|
895 |
+
?>
|
896 |
+
|
897 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
898 |
})();
|
899 |
//]]></script>
|
readme.txt
CHANGED
@@ -4,19 +4,20 @@ 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.0
|
7 |
-
Stable tag: 4.0.
|
8 |
|
9 |
-
The Google Analytics for WordPress plugin allows you to track your blog easily. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
The Google Analytics for WordPress plugin allows you to track your blog easily. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also
|
14 |
|
15 |
For the full list of features, check out the [Google Analytics for WordPress](http://yoast.com/wordpress/google-analytics/) homepage.
|
16 |
|
17 |
* Other [Wordpress plugins](http://yoast.com/wordpress/) by the same author.
|
18 |
* Want to increase traffic to your WordPress blog? Check out the [WordPress SEO](http://yoast.com/articles/wordpress-seo/) Guide!
|
19 |
* 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!
|
|
|
20 |
|
21 |
== Installation ==
|
22 |
|
@@ -29,8 +30,21 @@ This section describes how to install the plugin and get it working.
|
|
29 |
|
30 |
== Changelog ==
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
= 4.0.4 =
|
33 |
-
* Fix for stupid boolean mistake in 4.0.3
|
34 |
|
35 |
= 4.0.3 =
|
36 |
* New features in this release:
|
@@ -165,28 +179,29 @@ This section describes how to install the plugin and get it working.
|
|
165 |
|
166 |
== Frequently Asked Questions ==
|
167 |
|
168 |
-
=
|
169 |
|
170 |
-
|
171 |
|
172 |
-
|
173 |
-
1. selecting 'Custom filter' from the dropdown;
|
174 |
-
1. selecting 'Exclude';
|
175 |
-
1. selecting 'Request URI' in the Filter Field dropdown;
|
176 |
-
1. setting the Filter Pattern to '/downloads/(.*)$' for a prefix '/downloads/';
|
177 |
-
1. setting case sensitive to 'No'.
|
178 |
|
179 |
-
|
180 |
|
181 |
-
=
|
182 |
|
183 |
-
|
|
|
|
|
|
|
|
|
184 |
|
185 |
-
=
|
186 |
|
187 |
-
|
188 |
|
189 |
== Screenshots ==
|
190 |
|
191 |
-
1. Screenshot of the
|
192 |
-
2.
|
|
|
|
4 |
Tags: analytics, google analytics, statistics, tracking, stats, google
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 4.0.5
|
8 |
|
9 |
+
The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
The Google Analytics for WordPress plugin allows you to track your blog easily and with lots of metadata. It adds the asynchronous tracking code for Google Analytics and automatically tracks and segments all outbound links from within posts, comment author links, links within comments, blogroll links and downloads. It'll add custom variables while tracking to show you pageviews per author, post type, category or publication year. It'll also allow you to track AdSense clicks, add extra search engines, ignore certain user levels, and much much more: this is simply the Ultimate Google Analytic solution for WP!
|
14 |
|
15 |
For the full list of features, check out the [Google Analytics for WordPress](http://yoast.com/wordpress/google-analytics/) homepage.
|
16 |
|
17 |
* Other [Wordpress plugins](http://yoast.com/wordpress/) by the same author.
|
18 |
* Want to increase traffic to your WordPress blog? Check out the [WordPress SEO](http://yoast.com/articles/wordpress-seo/) Guide!
|
19 |
* 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!
|
20 |
+
* 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/).
|
21 |
|
22 |
== Installation ==
|
23 |
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 4.0.5 =
|
34 |
+
* New features in this release:
|
35 |
+
* Added a simple check to see if the UA code, when entered manually, matches a basic pattern of UA-1234567-12.
|
36 |
+
* Added integration with [W3 Total Cache](http://wordpress.org/extend/plugins/w3-total-cache/) and [WP Super Cache](http://wordpress.org/extend/plugins/wp-super-cache/). The page cache is now automatically cleared after updating settings. Caching is recommended for all WordPress users, as faster page loads improve tracking reliability and W3 Total Cache is our recommended caching plugin.
|
37 |
+
* Added the option to enter a manual location for ga.js, allowing you to host it locally should you wish to.
|
38 |
+
* Bugs fixed:
|
39 |
+
* Fixed implementation of _anonymizeIp, it now correctly anonymizes IP's by setting [_gat._anonymizeIp](http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp).
|
40 |
+
* Increased request timeout time for Google Analytics authentication from 10 to 20 seconds, for slow hosts (if this fixes it for you, your hosting is probably not really good, consider another WordPress host).
|
41 |
+
* Documentation fixes:
|
42 |
+
* Added a note about profiles with the same UA code to the Analytics Profile selection.
|
43 |
+
* The profile selection dropdown now shows the UA code after the profile name too.
|
44 |
+
* Updated the [screenshots](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/screenshots/) and the [FAQ](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/faq/) for this plugin.
|
45 |
+
|
46 |
= 4.0.4 =
|
47 |
+
* Fix for stupid boolean mistake in 4.0.3.
|
48 |
|
49 |
= 4.0.3 =
|
50 |
* New features in this release:
|
179 |
|
180 |
== Frequently Asked Questions ==
|
181 |
|
182 |
+
= Can I run this plugin together with another Google Analytics plugin? =
|
183 |
|
184 |
+
No. You can not. It will break tracking.
|
185 |
|
186 |
+
= Another profile than the one I selected is showing as selected? =
|
|
|
|
|
|
|
|
|
|
|
187 |
|
188 |
+
You probably have multiple profiles for the same website, that share the same UA-code. If so, it doesn't matter which of the profiles is shown as selected, tracking will be correct.
|
189 |
|
190 |
+
= I've just installed the new tracking and Google Analytics says it's not receiving data yet? =
|
191 |
|
192 |
+
Give it a couple of hours, usually it'll be fixed. It can take up to 24 hours to appear though.
|
193 |
+
|
194 |
+
= Google Analytics says it's receiving data, but I don't see any stats yet? =
|
195 |
+
|
196 |
+
This can take up to 24 hours after the installation of the new tracking code.
|
197 |
|
198 |
+
= Why is the tracking code loaded in the head section of the site? =
|
199 |
|
200 |
+
Because that's where it belongs. It makes the page load faster (yes, faster, due to the asynchronous method of loading the script) and tracking more reliable. If you must place it in the footer anyway, switch to manual mode and check out the docs for [manual placement of the Google Analytics code](http://yoast.com/wordpress/google-analytics/manual-placement/).
|
201 |
|
202 |
== Screenshots ==
|
203 |
|
204 |
+
1. Screenshot of the basic settings panel for this plugin.
|
205 |
+
2. Screenshot of the custom variable settings panel.
|
206 |
+
3. Screenshot of the link tracking panel.
|
207 |
+
4. Screenshot of the advanced settings panel.
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
screenshot-4.png
ADDED
Binary file
|