Version Description
- Fix a small bug in tracking that could potentially slow down admin.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 4.2.8 |
Comparing to | |
See all releases |
Code changes from version 4.2.7 to 4.2.8
- class-tracking.php +6 -2
- googleanalytics.php +2 -2
- readme.txt +9 -1
class-tracking.php
CHANGED
@@ -44,6 +44,10 @@ if ( !class_exists( 'Yoast_Tracking' ) ) {
|
|
44 |
* Main tracking function.
|
45 |
*/
|
46 |
function tracking() {
|
|
|
|
|
|
|
|
|
47 |
// Start of Metrics
|
48 |
global $wpdb;
|
49 |
|
@@ -55,7 +59,7 @@ if ( !class_exists( 'Yoast_Tracking' ) ) {
|
|
55 |
}
|
56 |
|
57 |
$data = get_transient( 'yoast_tracking_cache' );
|
58 |
-
if (
|
59 |
|
60 |
$pts = array();
|
61 |
foreach ( get_post_types( array( 'public' => true ) ) as $pt ) {
|
@@ -138,7 +142,7 @@ if ( !class_exists( 'Yoast_Tracking' ) ) {
|
|
138 |
wp_remote_post( 'https://tracking.yoast.com/', $args );
|
139 |
|
140 |
// Store for a week, then push data again.
|
141 |
-
set_transient( 'yoast_tracking_cache', $data, 7 * 60 * 60 * 24 );
|
142 |
}
|
143 |
}
|
144 |
}
|
44 |
* Main tracking function.
|
45 |
*/
|
46 |
function tracking() {
|
47 |
+
global $pagenow;
|
48 |
+
if ( in_array( $pagenow, array('index.php','plugins.php','update-core.php','themes.php') ) === false )
|
49 |
+
return;
|
50 |
+
|
51 |
// Start of Metrics
|
52 |
global $wpdb;
|
53 |
|
59 |
}
|
60 |
|
61 |
$data = get_transient( 'yoast_tracking_cache' );
|
62 |
+
if ( !$data ) {
|
63 |
|
64 |
$pts = array();
|
65 |
foreach ( get_post_types( array( 'public' => true ) ) as $pt ) {
|
142 |
wp_remote_post( 'https://tracking.yoast.com/', $args );
|
143 |
|
144 |
// Store for a week, then push data again.
|
145 |
+
set_transient( 'yoast_tracking_cache', $data, ( 7 * 60 * 60 * 24 ) );
|
146 |
}
|
147 |
}
|
148 |
}
|
googleanalytics.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics for WordPress
|
|
4 |
Plugin URI: http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v420
|
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.2.
|
8 |
Requires at least: 3.0
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL v3
|
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
28 |
|
29 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
30 |
|
31 |
-
define( 'GAWP_VERSION', '4.2.
|
32 |
|
33 |
/*
|
34 |
* Admin User Interface
|
4 |
Plugin URI: http://yoast.com/wordpress/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v420
|
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.2.8
|
8 |
Requires at least: 3.0
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL v3
|
28 |
|
29 |
// This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics
|
30 |
|
31 |
+
define( 'GAWP_VERSION', '4.2.8' );
|
32 |
|
33 |
/*
|
34 |
* Admin User Interface
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.4
|
7 |
-
Stable tag: 4.2.
|
8 |
|
9 |
Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.
|
10 |
|
@@ -58,10 +58,18 @@ This section describes how to install the plugin and get it working.
|
|
58 |
|
59 |
== Changelog ==
|
60 |
|
|
|
|
|
|
|
|
|
61 |
= 4.2.7 =
|
62 |
|
63 |
* Fix to prevent far too agressive oAuth implementation from breaking other plugins.
|
64 |
|
|
|
|
|
|
|
|
|
65 |
= 4.2.5 =
|
66 |
|
67 |
* Fixed a couple notices.
|
4 |
Tags: analytics, google analytics, statistics, tracking, stats, google
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.4
|
7 |
+
Stable tag: 4.2.8
|
8 |
|
9 |
Track your WordPress site easily and with lots of metadata: views per author & category, automatic tracking of outbound clicks and pageviews.
|
10 |
|
58 |
|
59 |
== Changelog ==
|
60 |
|
61 |
+
= 4.2.8 =
|
62 |
+
|
63 |
+
* Fix a small bug in tracking that could potentially slow down admin.
|
64 |
+
|
65 |
= 4.2.7 =
|
66 |
|
67 |
* Fix to prevent far too agressive oAuth implementation from breaking other plugins.
|
68 |
|
69 |
+
= 4.2.6 =
|
70 |
+
|
71 |
+
* Fix to prevent far too agressive oAuth implementation from breaking other plugins.
|
72 |
+
|
73 |
= 4.2.5 =
|
74 |
|
75 |
* Fixed a couple notices.
|