Google Analytics - Version 3.2.2

Version Description

  • 27-Apr-2020
  • Fix : Show the correct dates in negative UTC timezone.
  • Update : The plugin now requires PHP version 5.6 or higher, and WordPress 4.7 or higher.
  • Rearranging the changelog.
Download this release

Release Info

Developer amribrahim
Plugin Icon 128x128 Google Analytics
Version 3.2.2
Comparing to
See all releases

Code changes from version 3.2.1 to 3.2.2

dist/js/lrgalite-main.js CHANGED
@@ -913,7 +913,7 @@ function drawGraph(data,name){
913
  var y = item.datapoint[1];
914
  var rightMargin = "auto";
915
  var leftMargin = "auto";
916
- var formattedDateString = moment(item.datapoint[0]).format('ddd, MMMM D, YYYY');
917
 
918
  var currToolTipText = formattedDateString + "<br>";
919
  var totalorders = 0;
913
  var y = item.datapoint[1];
914
  var rightMargin = "auto";
915
  var leftMargin = "auto";
916
+ var formattedDateString = moment.utc(item.datapoint[0]).format('ddd, MMMM D, YYYY');
917
 
918
  var currToolTipText = formattedDateString + "<br>";
919
  var totalorders = 0;
dist/js/lrgawidget.js CHANGED
@@ -626,7 +626,7 @@ function drawGraph(data,name){
626
  var y = item.datapoint[1];
627
  var rightMargin = "auto";
628
  var leftMargin = "auto";
629
- var formattedDateString = moment(item.datapoint[0]).format('ddd, MMMM D, YYYY');
630
 
631
  var currToolTipText = formattedDateString + "<br>";
632
  var totalorders = 0;
626
  var y = item.datapoint[1];
627
  var rightMargin = "auto";
628
  var leftMargin = "auto";
629
+ var formattedDateString = moment.utc(item.datapoint[0]).format('ddd, MMMM D, YYYY');
630
 
631
  var currToolTipText = formattedDateString + "<br>";
632
  var totalorders = 0;
lara-google-analytics.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Lara's Google Analytics
5
  Plugin URI: https://www.xtraorbit.com/wordpress-google-analytics-dashboard-widget/
6
  Description: Full width Google Analytics dashboard widget for Wordpress admin interface, which also inserts latest Google Analytics tracking code to your pages.
7
- Version: 3.2.1
8
  Author: Amr M. Ibrahim
9
  Author URI: https://www.xtraorbit.com/
10
  License: GPL2
@@ -12,8 +12,11 @@ Text Domain: lara-google-analytics
12
  Domain Path: /languages/
13
  */
14
 
15
- define ("lrgawidget_plugin_version", "3.2.1");
16
- define ("lrgawidget_plugin_scripts_version", "321");
 
 
 
17
  define ("lrgawidget_plugin_prefiex", "lrgalite-");
18
  define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
19
  define ("lrgawidget_plugin_plugins_dir", plugin_dir_url( __FILE__ ).'dist/plugins/');
@@ -149,9 +152,9 @@ function lrgawidget_ga_code(){
149
 
150
  function lrgawidget_activate() {
151
  global $wpdb;
152
- if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
153
  deactivate_plugins( basename( __FILE__ ) );
154
- wp_die('<p>'.sprintf('This plugin can not be activated because it requires a PHP version greater than <b>5.3.0</b>.<br>You are currently using PHP <b>%1$s</b>.<br><br>Your PHP version can be updated by your hosting company.',PHP_VERSION).'</p><a href="'. admin_url('plugins.php').'">Go back</a>');
155
  }else{
156
  $wpdb->query("CREATE TABLE IF NOT EXISTS `".lrgawidget_plugin_table."` (`id` int(10) NOT NULL AUTO_INCREMENT, `name` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY (`id`))");
157
  }
4
  Plugin Name: Lara's Google Analytics
5
  Plugin URI: https://www.xtraorbit.com/wordpress-google-analytics-dashboard-widget/
6
  Description: Full width Google Analytics dashboard widget for Wordpress admin interface, which also inserts latest Google Analytics tracking code to your pages.
7
+ Version: 3.2.2
8
  Author: Amr M. Ibrahim
9
  Author URI: https://www.xtraorbit.com/
10
  License: GPL2
12
  Domain Path: /languages/
13
  */
14
 
15
+ if (!defined("ABSPATH"))
16
+ die("This file cannot be accessed directly");
17
+
18
+ define ("lrgawidget_plugin_version", "3.2.2");
19
+ define ("lrgawidget_plugin_scripts_version", "322");
20
  define ("lrgawidget_plugin_prefiex", "lrgalite-");
21
  define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
22
  define ("lrgawidget_plugin_plugins_dir", plugin_dir_url( __FILE__ ).'dist/plugins/');
152
 
153
  function lrgawidget_activate() {
154
  global $wpdb;
155
+ if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
156
  deactivate_plugins( basename( __FILE__ ) );
157
+ wp_die('<p>'.sprintf('This plugin can not be activated because it requires a PHP version greater than <b>5.6.0</b>.<br>You are currently using PHP <b>%1$s</b>.<br><br>Your PHP version can be updated by your hosting company.',PHP_VERSION).'</p><a href="'. admin_url('plugins.php').'">Go back</a>');
158
  }else{
159
  $wpdb->query("CREATE TABLE IF NOT EXISTS `".lrgawidget_plugin_table."` (`id` int(10) NOT NULL AUTO_INCREMENT, `name` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY (`id`))");
160
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Lara's Google Analytics ===
2
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget
3
  Contributors: amribrahim, laragoogleanalytics
4
- Requires PHP: 5.3.0
5
- Requires at least: 4.0
6
  Tested up to: 5.4.0
7
- Stable tag: 3.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,41 +40,62 @@ Adds a full width Google Analytics dashboard widget for WordPress admin interfac
40
  12. Google Analytics - Pro Version Only - Traffic Sources, showing who is sending you visitors.
41
 
42
  == Changelog ==
43
- = 1.0.2 =
44
- * 22-April-2016
45
- * Initial release.
 
 
46
 
47
- = 1.0.3 =
48
- * 26-April-2016
49
- * Revised description.
50
-
51
- = 1.0.4 =
52
- * 27-April-2016
53
- * Fix : Only users with 'manage_options' can access the widget.
54
 
55
- = 1.0.5 =
56
- * 7-May-2016
57
- * Fix : Track subscribers and anonymous visitors only.
 
 
58
 
59
- = 1.0.6 =
60
- * 29-Aug-2016
61
- * Fix : Check for cURL extension.
62
- * New : Use PageViews in the pages tab.
63
 
64
- = 1.1 =
65
- * 30-Oct-2016
66
- * Fix : Combining Javascript and CSS files into 2 files.
67
- * Fix : Checking for PHP version upon plugin activation.
68
- * Fix : Several minor improvements.
69
  * New : Code refactoring.
 
 
 
70
 
71
- = 1.1.1 =
72
- * 8-Jan-2017
73
- * Fix : Changed cURL query handling, to prevent requests to google from returning errors.
74
 
75
- = 1.1.2 =
76
- * 8-June-2017
77
- * Fix : WordPress v4.8 compatibility.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
  = 2.0.0 =
80
  * 12-Dec-2017
@@ -84,53 +105,38 @@ Adds a full width Google Analytics dashboard widget for WordPress admin interfac
84
  * New : Moving Pages, Browsers, Languages, Operating Systems, and Screen Resolutions tabs to the free version.
85
  * New : Warn when using different time zones.
86
 
87
- = 2.0.1 =
88
- * 17-Feb-2018
89
- * Fix : Support URL and plugin overview URL updated.
90
-
91
- = 2.0.2 =
92
- * 8-May-2018
93
- * New : Adding IP anonymization.
94
-
95
- = 2.0.3 =
96
- * 8-Dec-2018
97
- * update : WordPress v 5.0 compatibility.
98
-
99
- = 2.0.4 =
100
- * 8-Dec-2018
101
- * update : moment.js updated to v2.23.0.
102
 
103
- = 2.0.5 =
104
- * 14-Oct-2019
105
- * Fix : validate POST variables.
106
 
107
- = 2.0.6 =
108
- * 14-Oct-2019
109
- * Fix : extra validation for POST variables.
110
- * Fix : Pages tab shows correct percentage values.
 
 
111
 
112
- = 2.0.7 =
113
- * 14-Oct-2019
114
- * Fix : restrict settings to super admins.
 
115
 
116
- = 3.0.0 =
117
- * 02-Jan-2020
118
- * New : Code refactoring.
119
- * New : Various security checks and validation for POST variables.
120
- * New : Implementing Multisite Multi-Network in the Pro Version.
121
- * New : Implementing Permissions Control in the Pro Version.
122
 
123
- = 3.1.0 =
124
- * 26-Jan-2020
125
- * New : Localization support.
126
- * New : Review notice.
127
 
128
- = 3.2.0 =
129
- * 5-Mar-2020
130
- * New : [pro] Added the ability to lock settings for users.
131
- * New : WooCommerce earnings graph.
132
- * Fix : Compatibility issues with other plugins, that causes the widget to display a blank page, instead of the main graph.
133
 
134
- = 3.2.1 =
135
- * 13-Mar-2020
136
- * Fix : Site Health errors, caused by session_start.
1
  === Lara's Google Analytics ===
2
  Tags: analytics,google analytics,google analytics dashboard,google analytics plugin,google analytics widget
3
  Contributors: amribrahim, laragoogleanalytics
4
+ Requires PHP: 5.6.0
5
+ Requires at least: 4.7.0
6
  Tested up to: 5.4.0
7
+ Stable tag: 3.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
  12. Google Analytics - Pro Version Only - Traffic Sources, showing who is sending you visitors.
41
 
42
  == Changelog ==
43
+ = 3.2.2 =
44
+ * 27-Apr-2020
45
+ * Fix : Show the correct dates in negative UTC timezone.
46
+ * Update : The plugin now requires PHP version 5.6 or higher, and WordPress 4.7 or higher.
47
+ * Rearranging the changelog.
48
 
49
+ = 3.2.1 =
50
+ * 13-Mar-2020
51
+ * Fix : Site Health errors, caused by session_start.
 
 
 
 
52
 
53
+ = 3.2.0 =
54
+ * 5-Mar-2020
55
+ * New : [pro] Added the ability to lock settings for users.
56
+ * New : WooCommerce earnings graph.
57
+ * Fix : Compatibility issues with other plugins, that causes the widget to display a blank page, instead of the main graph.
58
 
59
+ = 3.1.0 =
60
+ * 26-Jan-2020
61
+ * New : Localization support.
62
+ * New : Review notice.
63
 
64
+ = 3.0.0 =
65
+ * 02-Jan-2020
 
 
 
66
  * New : Code refactoring.
67
+ * New : Various security checks and validation for POST variables.
68
+ * New : Implementing Multisite Multi-Network in the Pro Version.
69
+ * New : Implementing Permissions Control in the Pro Version.
70
 
71
+ = 2.0.7 =
72
+ * 14-Oct-2019
73
+ * Fix : restrict settings to super admins.
74
 
75
+ = 2.0.6 =
76
+ * 14-Oct-2019
77
+ * Fix : extra validation for POST variables.
78
+ * Fix : Pages tab shows correct percentage values.
79
+
80
+ = 2.0.5 =
81
+ * 14-Oct-2019
82
+ * Fix : validate POST variables.
83
+
84
+ = 2.0.4 =
85
+ * 8-Dec-2018
86
+ * update : moment.js updated to v2.23.0.
87
+
88
+ = 2.0.3 =
89
+ * 8-Dec-2018
90
+ * update : WordPress v 5.0 compatibility.
91
+
92
+ = 2.0.2 =
93
+ * 8-May-2018
94
+ * New : Adding IP anonymization.
95
+
96
+ = 2.0.1 =
97
+ * 17-Feb-2018
98
+ * Fix : Support URL and plugin overview URL updated.
99
 
100
  = 2.0.0 =
101
  * 12-Dec-2017
105
  * New : Moving Pages, Browsers, Languages, Operating Systems, and Screen Resolutions tabs to the free version.
106
  * New : Warn when using different time zones.
107
 
108
+ = 1.1.2 =
109
+ * 8-June-2017
110
+ * Fix : WordPress v4.8 compatibility.
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
+ = 1.1.1 =
113
+ * 8-Jan-2017
114
+ * Fix : Changed cURL query handling, to prevent requests to google from returning errors.
115
 
116
+ = 1.1 =
117
+ * 30-Oct-2016
118
+ * Fix : Combining Javascript and CSS files into 2 files.
119
+ * Fix : Checking for PHP version upon plugin activation.
120
+ * Fix : Several minor improvements.
121
+ * New : Code refactoring.
122
 
123
+ = 1.0.6 =
124
+ * 29-Aug-2016
125
+ * Fix : Check for cURL extension.
126
+ * New : Use PageViews in the pages tab.
127
 
128
+ = 1.0.5 =
129
+ * 7-May-2016
130
+ * Fix : Track subscribers and anonymous visitors only.
 
 
 
131
 
132
+ = 1.0.4 =
133
+ * 27-April-2016
134
+ * Fix : Only users with 'manage_options' can access the widget.
 
135
 
136
+ = 1.0.3 =
137
+ * 26-April-2016
138
+ * Revised description.
 
 
139
 
140
+ = 1.0.2 =
141
+ * 22-April-2016
142
+ * Initial release.