Version Description
- Fix for when you have only 1 site in a specific Analytics profile.
Download this release
Release Info
Developer | joostdevalk |
Plugin | Google Analytics for WordPress by MonsterInsights |
Version | 4.0.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.0.1
- googleanalytics.php +15 -5
- readme.txt +4 -1
googleanalytics.php
CHANGED
@@ -4,7 +4,7 @@ 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=v40
|
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: 4.0
|
8 |
Requires at least: 2.8
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL
|
@@ -64,6 +64,7 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
64 |
$uastring = '';
|
65 |
}
|
66 |
wp_enqueue_script('jquery');
|
|
|
67 |
?>
|
68 |
<script type="text/javascript" charset="utf-8">
|
69 |
function makeSublist(parent,child,childVal)
|
@@ -262,12 +263,21 @@ if ( ! class_exists( 'GA_Admin' ) ) {
|
|
262 |
$arr = yoast_xml2array($options['ga_api_responses'][$token]['body']);
|
263 |
|
264 |
$ga_accounts = array();
|
265 |
-
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
if (!isset($ga_accounts[$account]) || !is_array($ga_accounts[$account]))
|
269 |
$ga_accounts[$account] = array();
|
270 |
-
$ga_accounts[$account][$
|
271 |
}
|
272 |
|
273 |
$select1 = '<select style="width:150px;" name="ga_account" id="ga_account">';
|
4 |
Plugin URI: http://yoast.com/wordpress/analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=google-analytics-for-wordpress&utm_content=v40
|
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: 4.0.1
|
8 |
Requires at least: 2.8
|
9 |
Author URI: http://yoast.com/
|
10 |
License: GPL
|
64 |
$uastring = '';
|
65 |
}
|
66 |
wp_enqueue_script('jquery');
|
67 |
+
|
68 |
?>
|
69 |
<script type="text/javascript" charset="utf-8">
|
70 |
function makeSublist(parent,child,childVal)
|
263 |
$arr = yoast_xml2array($options['ga_api_responses'][$token]['body']);
|
264 |
|
265 |
$ga_accounts = array();
|
266 |
+
if (isset($arr['feed']['entry'][0])) {
|
267 |
+
foreach ($arr['feed']['entry'] as $site) {
|
268 |
+
$ua = $site['dxp:property']['3_attr']['value'];
|
269 |
+
$account = $site['dxp:property']['1_attr']['value'];
|
270 |
+
if (!isset($ga_accounts[$account]) || !is_array($ga_accounts[$account]))
|
271 |
+
$ga_accounts[$account] = array();
|
272 |
+
$ga_accounts[$account][$site['title']] = $ua;
|
273 |
+
}
|
274 |
+
} else {
|
275 |
+
$ua = $arr['feed']['entry']['dxp:property']['3_attr']['value'];
|
276 |
+
$account = $arr['feed']['entry']['dxp:property']['1_attr']['value'];
|
277 |
+
$title = $arr['feed']['entry']['title'];
|
278 |
if (!isset($ga_accounts[$account]) || !is_array($ga_accounts[$account]))
|
279 |
$ga_accounts[$account] = array();
|
280 |
+
$ga_accounts[$account][$title] = $ua;
|
281 |
}
|
282 |
|
283 |
$select1 = '<select style="width:150px;" name="ga_account" id="ga_account">';
|
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.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 allows 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 |
|
@@ -31,6 +31,9 @@ This section describes how to install the plugin and get it working.
|
|
31 |
|
32 |
== Changelog ==
|
33 |
|
|
|
|
|
|
|
34 |
= 4.0 =
|
35 |
* NOTE WHEN UPGRADING: you'll have to reconfigure the plugin so it can fully support all the new features!
|
36 |
* Complete rewrite of the codebase
|
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.1
|
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 allows 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 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 4.0.1 =
|
35 |
+
* Fix for when you have only 1 site in a specific Analytics profile.
|
36 |
+
|
37 |
= 4.0 =
|
38 |
* NOTE WHEN UPGRADING: you'll have to reconfigure the plugin so it can fully support all the new features!
|
39 |
* Complete rewrite of the codebase
|