Version Description
- Completely redesigned with new features!
- Updated with the latest Google Analytics code
- No need to find your GA property ID and copy it over, just sign in with Google and choose your site
- See analytics right inside the plugin, the past 7 days vs your previous 7 days
- Shows pageviews, users, pages per session and bounce rate + top 5 traffic referrals
- Wordpress Dashboard widget for 7, 30 or 90 days graph and top site usage stats
- Disable tracking for logged in users like admins or editors for more reliable analytics
- Support for the old PHP versions
Download this release
Release Info
Developer | ShareThis |
Plugin | Google Analytics |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- class/Ga_Admin.php +8 -7
- googleanalytics.php +2 -2
- readme.txt +11 -1
class/Ga_Admin.php
CHANGED
@@ -97,13 +97,14 @@ class Ga_Admin {
|
|
97 |
* Update hook fires when plugin is being loaded.
|
98 |
*/
|
99 |
public static function update_googleanalytics() {
|
100 |
-
|
|
|
101 |
$installed_version = get_option( self::GA_VERSION_OPTION_NAME, '1.0.7' );
|
102 |
$old_property_value = Ga_Helper::get_option( 'web_property_id' );
|
103 |
if ( version_compare( $installed_version, GOOGLEANALYTICS_VERSION, 'eq' ) ) {
|
104 |
return;
|
105 |
}
|
106 |
-
if ( empty( $old_property_value ) && empty(
|
107 |
update_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, true );
|
108 |
}
|
109 |
|
@@ -165,12 +166,12 @@ class Ga_Admin {
|
|
165 |
add_submenu_page( 'googleanalytics', 'Google Analytics', __( 'Settings' ), 'manage_options', 'googleanalytics/settings', 'Ga_Admin::options_page_googleanalytics' );
|
166 |
}
|
167 |
}
|
168 |
-
|
169 |
public static function update_terms() {
|
170 |
if ( !empty( $_GET['accept-terms'] ) && ( 'Y' === $_GET['accept-terms'] ) ) {
|
171 |
update_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, true );
|
172 |
}
|
173 |
-
}
|
174 |
/**
|
175 |
* Prepares and displays plugin's stats page.
|
176 |
*/
|
@@ -183,9 +184,9 @@ class Ga_Admin {
|
|
183 |
$data = self::get_stats_page();
|
184 |
Ga_View::load( 'statistics', array(
|
185 |
'data' => $data
|
186 |
-
) );
|
187 |
}
|
188 |
-
|
189 |
/**
|
190 |
* Prepares and displays plugin's settings page.
|
191 |
*/
|
@@ -555,4 +556,4 @@ class Ga_Admin {
|
|
555 |
echo Ga_Helper::get_ga_dashboard_widget_data_json( $date_range, $metric, false, true );
|
556 |
wp_die();
|
557 |
}
|
558 |
-
}
|
97 |
* Update hook fires when plugin is being loaded.
|
98 |
*/
|
99 |
public static function update_googleanalytics() {
|
100 |
+
|
101 |
+
$version = get_option( self::GA_VERSION_OPTION_NAME );
|
102 |
$installed_version = get_option( self::GA_VERSION_OPTION_NAME, '1.0.7' );
|
103 |
$old_property_value = Ga_Helper::get_option( 'web_property_id' );
|
104 |
if ( version_compare( $installed_version, GOOGLEANALYTICS_VERSION, 'eq' ) ) {
|
105 |
return;
|
106 |
}
|
107 |
+
if ( empty( $old_property_value ) && empty( $version ) ) {
|
108 |
update_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, true );
|
109 |
}
|
110 |
|
166 |
add_submenu_page( 'googleanalytics', 'Google Analytics', __( 'Settings' ), 'manage_options', 'googleanalytics/settings', 'Ga_Admin::options_page_googleanalytics' );
|
167 |
}
|
168 |
}
|
169 |
+
|
170 |
public static function update_terms() {
|
171 |
if ( !empty( $_GET['accept-terms'] ) && ( 'Y' === $_GET['accept-terms'] ) ) {
|
172 |
update_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, true );
|
173 |
}
|
174 |
+
}
|
175 |
/**
|
176 |
* Prepares and displays plugin's stats page.
|
177 |
*/
|
184 |
$data = self::get_stats_page();
|
185 |
Ga_View::load( 'statistics', array(
|
186 |
'data' => $data
|
187 |
+
) );
|
188 |
}
|
189 |
+
|
190 |
/**
|
191 |
* Prepares and displays plugin's settings page.
|
192 |
*/
|
556 |
echo Ga_Helper::get_ga_dashboard_widget_data_json( $date_range, $metric, false, true );
|
557 |
wp_die();
|
558 |
}
|
559 |
+
}
|
googleanalytics.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
|
6 |
* Description: Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
|
7 |
-
* Version: 2.0.
|
8 |
* Author: ShareThis
|
9 |
* Author URI: http://sharethis.com
|
10 |
*/
|
@@ -35,7 +35,7 @@ if ( ! defined( 'GA_MAIN_FILE_PATH' ) ) {
|
|
35 |
if ( ! defined( 'GA_SHARETHIS_SCRIPTS_INCLUDED' ) ) {
|
36 |
define( 'GA_SHARETHIS_SCRIPTS_INCLUDED', 0 );
|
37 |
}
|
38 |
-
define( 'GOOGLEANALYTICS_VERSION', '2.0.
|
39 |
include_once GA_PLUGIN_DIR . '/overwrite/ga_overwrite.php';
|
40 |
include_once GA_PLUGIN_DIR . '/class/Ga_Autoloader.php';
|
41 |
Ga_Autoloader::register();
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: http://wordpress.org/extend/plugins/googleanalytics/
|
6 |
* Description: Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
|
7 |
+
* Version: 2.0.1
|
8 |
* Author: ShareThis
|
9 |
* Author URI: http://sharethis.com
|
10 |
*/
|
35 |
if ( ! defined( 'GA_SHARETHIS_SCRIPTS_INCLUDED' ) ) {
|
36 |
define( 'GA_SHARETHIS_SCRIPTS_INCLUDED', 0 );
|
37 |
}
|
38 |
+
define( 'GOOGLEANALYTICS_VERSION', '2.0.1' );
|
39 |
include_once GA_PLUGIN_DIR . '/overwrite/ga_overwrite.php';
|
40 |
include_once GA_PLUGIN_DIR . '/class/Ga_Autoloader.php';
|
41 |
Ga_Autoloader::register();
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: ShareThis
|
|
3 |
Tags: analytics, dashboard, google, google analytics, google analytics plugin, javascript, marketing, pageviews, statistics, stats, tracking, visits, web stats, widget, analytics dashboard, google analytics dashboard, google analytics widget, google analytics dashboard
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7.0
|
6 |
-
Stable tag:
|
7 |
|
8 |
Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
|
9 |
|
@@ -46,6 +46,16 @@ By downloading and installing this plugin you are agreeing to the <a href="http:
|
|
46 |
5. View different time ranges and key metrics in the Wordpress Google Analytics widget
|
47 |
|
48 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
= 2.0.0 =
|
51 |
* Completely redesigned with new features!
|
3 |
Tags: analytics, dashboard, google, google analytics, google analytics plugin, javascript, marketing, pageviews, statistics, stats, tracking, visits, web stats, widget, analytics dashboard, google analytics dashboard, google analytics widget, google analytics dashboard
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.7.0
|
6 |
+
Stable tag: trunk
|
7 |
|
8 |
Use Google Analytics on your Wordpress site without touching any code, and view visitor reports right in your Wordpress admin dashboard!
|
9 |
|
46 |
5. View different time ranges and key metrics in the Wordpress Google Analytics widget
|
47 |
|
48 |
== Changelog ==
|
49 |
+
|
50 |
+
= 2.0.1 =
|
51 |
+
* Completely redesigned with new features!
|
52 |
+
* Updated with the latest Google Analytics code
|
53 |
+
* No need to find your GA property ID and copy it over, just sign in with Google and choose your site
|
54 |
+
* See analytics right inside the plugin, the past 7 days vs your previous 7 days
|
55 |
+
* Shows pageviews, users, pages per session and bounce rate + top 5 traffic referrals
|
56 |
+
* Wordpress Dashboard widget for 7, 30 or 90 days graph and top site usage stats
|
57 |
+
* Disable tracking for logged in users like admins or editors for more reliable analytics
|
58 |
+
* Support for the old PHP versions
|
59 |
|
60 |
= 2.0.0 =
|
61 |
* Completely redesigned with new features!
|