Version Description
- Fixed: Bug on pagePath
- Changed: Message about deleted web property
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Analytics |
Version | 1.0.16 |
Comparing to | |
See all releases |
Code changes from version 1.0.15 to 1.0.16
- admin/post_page_view.php +61 -61
- gawd_class.php +2 -2
- google-analytics-wd.php +2 -2
- readme.txt +5 -1
admin/post_page_view.php
CHANGED
@@ -1,62 +1,62 @@
|
|
1 |
-
<?php
|
2 |
-
$id = isset($_GET['post']) ? $_GET['post'] : '';
|
3 |
-
$uri_parts = explode( '/', get_permalink( $id ), 4 );
|
4 |
-
if ( isset( $uri_parts[3] ) ) {
|
5 |
-
$uri = '/' . $uri_parts[3];
|
6 |
-
}
|
7 |
-
$uri = explode( '/',$uri);
|
8 |
-
end($uri);
|
9 |
-
$key = key($uri);
|
10 |
-
$uri = '/' . $uri[$key-1];
|
11 |
-
$filter = rawurlencode( rawurldecode( $uri ) );
|
12 |
-
|
13 |
-
?>
|
14 |
-
<a href="#" class="gawd_btn">X</a>
|
15 |
-
<!--<select name="gawd_post_page_date" id="gawd_post_page_date" >
|
16 |
-
<option value="<?php echo date('Y-m-d', strtotime('-30 days')); ?>"><?php _e('Last 30 Days', 'gawd'); ?></option>
|
17 |
-
<option value="<?php echo date('Y-m-d', strtotime('-7 days')); ?>"><?php _e('Last 7 Days', 'gawd'); ?></option>
|
18 |
-
</select> -->
|
19 |
-
<div class="gawd_content" id="gawd_content_range" >
|
20 |
-
<div id="reportrange" class="pull-right" style="float:none !important">
|
21 |
-
<span></span> <b class="caret"></b>
|
22 |
-
</div>
|
23 |
-
<input type="hidden" id="gawd_start_end_date"/>
|
24 |
-
</div>
|
25 |
-
<select name="gawd_metric_post_page" id="gawd_metric_post_page" >
|
26 |
-
<option value="sessions"><?php _e('Sessions', 'gawd'); ?></option>
|
27 |
-
<option value="users" ><?php _e('Users', 'gawd'); ?></option>
|
28 |
-
<option value="bounceRate" ><?php _e('Bounce Rate', 'gawd'); ?></option>
|
29 |
-
<option value="pageviews" ><?php _e('Pageviews', 'gawd'); ?></option>
|
30 |
-
<option value="percentNewSessions"><?php _e('% New Sessions', 'gawd'); ?></option>
|
31 |
-
<option value="avgSessionDuration"><?php _e('Avg Session Duration', 'gawd'); ?></option>
|
32 |
-
<option value="pageviewsPerSession" ><?php echo __('Pages/Session', 'gawd'); ?></option>
|
33 |
-
</select>
|
34 |
-
<select name="gawd_chart_type_post_page" id="gawd_chart_type_post_page" class="gawd_draw_analytics">
|
35 |
-
<option value="line" ><?php _e('Line Chart', 'gawd'); ?></option>
|
36 |
-
<option value="pie" ><?php _e('Pie Chart', 'gawd'); ?></option>
|
37 |
-
<option value="column" ><?php _e('Columns', 'gawd'); ?></option>
|
38 |
-
</select>
|
39 |
-
<div class="clear"></div>
|
40 |
-
|
41 |
-
<div class="">
|
42 |
-
<div class="opacity_div_compact">
|
43 |
-
<div class="loading_div_compact">
|
44 |
-
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
45 |
-
</div>
|
46 |
-
</div>
|
47 |
-
<div class="gawd_post_page_meta" id="gawd_post_page_meta"></div>
|
48 |
-
</div>
|
49 |
-
<script>
|
50 |
-
jQuery(document).ready(function(){
|
51 |
-
datepicker_js('right','gawd_chart_type_post_page_callback');
|
52 |
-
jQuery('#gawd_metric_post_page, #gawd_post_page_date, #gawd_chart_type_post_page').on('change',function(){
|
53 |
-
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
54 |
-
})
|
55 |
-
})
|
56 |
-
function gawd_chart_type_post_page_callback(start, end){
|
57 |
-
jQuery('#reportrange span').html(start.format('Y-MM-DD') + ' - ' + end.format('Y-MM-DD'));
|
58 |
-
jQuery('#gawd_start_end_date').val(start.format('Y-MM-DD') + '/-/' + end.format('Y-MM-DD'));
|
59 |
-
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
60 |
-
}
|
61 |
-
|
62 |
</script>
|
1 |
+
<?php
|
2 |
+
$id = isset($_GET['post']) ? $_GET['post'] : '';
|
3 |
+
$uri_parts = explode( '/', get_permalink( $id ), 4 );
|
4 |
+
if ( isset( $uri_parts[3] ) ) {
|
5 |
+
$uri = '/' . $uri_parts[3];
|
6 |
+
}
|
7 |
+
$uri = explode( '/',$uri);
|
8 |
+
end($uri);
|
9 |
+
$key = key($uri);
|
10 |
+
$uri = '/' . $uri[$key-1];
|
11 |
+
$filter = rawurlencode( rawurldecode( $uri ) );
|
12 |
+
/*$filter = rawurlencode( rawurldecode(get_the_title()));*/
|
13 |
+
?>
|
14 |
+
<a href="#" class="gawd_btn">X</a>
|
15 |
+
<!--<select name="gawd_post_page_date" id="gawd_post_page_date" >
|
16 |
+
<option value="<?php echo date('Y-m-d', strtotime('-30 days')); ?>"><?php _e('Last 30 Days', 'gawd'); ?></option>
|
17 |
+
<option value="<?php echo date('Y-m-d', strtotime('-7 days')); ?>"><?php _e('Last 7 Days', 'gawd'); ?></option>
|
18 |
+
</select> -->
|
19 |
+
<div class="gawd_content" id="gawd_content_range" >
|
20 |
+
<div id="reportrange" class="pull-right" style="float:none !important">
|
21 |
+
<span></span> <b class="caret"></b>
|
22 |
+
</div>
|
23 |
+
<input type="hidden" id="gawd_start_end_date"/>
|
24 |
+
</div>
|
25 |
+
<select name="gawd_metric_post_page" id="gawd_metric_post_page" >
|
26 |
+
<option value="sessions"><?php _e('Sessions', 'gawd'); ?></option>
|
27 |
+
<option value="users" ><?php _e('Users', 'gawd'); ?></option>
|
28 |
+
<option value="bounceRate" ><?php _e('Bounce Rate', 'gawd'); ?></option>
|
29 |
+
<option value="pageviews" ><?php _e('Pageviews', 'gawd'); ?></option>
|
30 |
+
<option value="percentNewSessions"><?php _e('% New Sessions', 'gawd'); ?></option>
|
31 |
+
<option value="avgSessionDuration"><?php _e('Avg Session Duration', 'gawd'); ?></option>
|
32 |
+
<option value="pageviewsPerSession" ><?php echo __('Pages/Session', 'gawd'); ?></option>
|
33 |
+
</select>
|
34 |
+
<select name="gawd_chart_type_post_page" id="gawd_chart_type_post_page" class="gawd_draw_analytics">
|
35 |
+
<option value="line" ><?php _e('Line Chart', 'gawd'); ?></option>
|
36 |
+
<option value="pie" ><?php _e('Pie Chart', 'gawd'); ?></option>
|
37 |
+
<option value="column" ><?php _e('Columns', 'gawd'); ?></option>
|
38 |
+
</select>
|
39 |
+
<div class="clear"></div>
|
40 |
+
|
41 |
+
<div class="">
|
42 |
+
<div class="opacity_div_compact">
|
43 |
+
<div class="loading_div_compact">
|
44 |
+
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<div class="gawd_post_page_meta" id="gawd_post_page_meta"></div>
|
48 |
+
</div>
|
49 |
+
<script>
|
50 |
+
jQuery(document).ready(function(){
|
51 |
+
datepicker_js('right','gawd_chart_type_post_page_callback');
|
52 |
+
jQuery('#gawd_metric_post_page, #gawd_post_page_date, #gawd_chart_type_post_page').on('change',function(){
|
53 |
+
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
54 |
+
})
|
55 |
+
})
|
56 |
+
function gawd_chart_type_post_page_callback(start, end){
|
57 |
+
jQuery('#reportrange span').html(start.format('Y-MM-DD') + ' - ' + end.format('Y-MM-DD'));
|
58 |
+
jQuery('#gawd_start_end_date').val(start.format('Y-MM-DD') + '/-/' + end.format('Y-MM-DD'));
|
59 |
+
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
60 |
+
}
|
61 |
+
|
62 |
</script>
|
gawd_class.php
CHANGED
@@ -2360,7 +2360,7 @@ class GAWD
|
|
2360 |
$gawd_user_data = get_option('gawd_user_data');
|
2361 |
$screen = get_current_screen();
|
2362 |
if ($webPropertyId == null) {
|
2363 |
-
echo
|
2364 |
}
|
2365 |
if (strpos($screen->base, 'gawd') !== false && $accountId != null && $webPropertyId != null && $gawd_client->analytics_member->management_webproperties != null ) {
|
2366 |
try {
|
@@ -2376,7 +2376,7 @@ class GAWD
|
|
2376 |
fwrite($fh, $e->getMessage(). "----check_property_delete function".PHP_EOL);
|
2377 |
fclose($fh);
|
2378 |
if (strpos($e->getMessage(), 'not found.') !== false) {
|
2379 |
-
echo
|
2380 |
}
|
2381 |
}
|
2382 |
}
|
2360 |
$gawd_user_data = get_option('gawd_user_data');
|
2361 |
$screen = get_current_screen();
|
2362 |
if ($webPropertyId == null) {
|
2363 |
+
echo "<div class='notice notice-error'><p>Google Analytics WD: You haven't created a web-property with current site URL, or it has been deleted. Please <a href='" . admin_url() . "admin.php?page=gawd_settings'>authenticate</a>.</p></div>";
|
2364 |
}
|
2365 |
if (strpos($screen->base, 'gawd') !== false && $accountId != null && $webPropertyId != null && $gawd_client->analytics_member->management_webproperties != null ) {
|
2366 |
try {
|
2376 |
fwrite($fh, $e->getMessage(). "----check_property_delete function".PHP_EOL);
|
2377 |
fclose($fh);
|
2378 |
if (strpos($e->getMessage(), 'not found.') !== false) {
|
2379 |
+
echo "<div class='notice notice-error'><p>Google Analytics WD: You haven't created a web-property with current site URL, or it has been deleted. Please <a href='" . admin_url() . "admin.php?page=gawd_settings'>authenticate</a>.</p></div>";
|
2380 |
}
|
2381 |
}
|
2382 |
}
|
google-analytics-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
|
6 |
* Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -26,7 +26,7 @@ if (!defined('GAWD_INC')) {
|
|
26 |
}
|
27 |
|
28 |
if (!defined('GAWD_VERSION')) {
|
29 |
-
define('GAWD_VERSION', '1.0.
|
30 |
}
|
31 |
|
32 |
|
4 |
* Plugin Name: Google Analytics
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
|
6 |
* Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
|
7 |
+
* Version: 1.0.16
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
26 |
}
|
27 |
|
28 |
if (!defined('GAWD_VERSION')) {
|
29 |
+
define('GAWD_VERSION', '1.0.16');
|
30 |
}
|
31 |
|
32 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-google-analytics-plugin.h
|
|
4 |
Tags: google analytics, google analytics dashboard, statistics, tracking, analytics, analytics dashboard, stats, ga, googleanalytics, ecommerce tracking, custom reports, custom dimensions
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -100,6 +100,10 @@ Upgrade to Google Analytics WD Pro for premium features:
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
103 |
= 1.0.15 =
|
104 |
* Fixed: Bug on date picker
|
105 |
* Changed: Improved error handling
|
4 |
Tags: google analytics, google analytics dashboard, statistics, tracking, analytics, analytics dashboard, stats, ga, googleanalytics, ecommerce tracking, custom reports, custom dimensions
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.0.16
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 1.0.16 =
|
104 |
+
* Fixed: Bug on pagePath
|
105 |
+
* Changed: Message about deleted web property
|
106 |
+
|
107 |
= 1.0.15 =
|
108 |
* Fixed: Bug on date picker
|
109 |
* Changed: Improved error handling
|