Version Description
- 27-April-2016
- Fix : Only users with 'manage_options' can access the widget.
Download this release
Release Info
Developer | amribrahim |
Plugin | Google Analytics |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- lara-google-analytics.php +3 -3
- readme.txt +10 -6
lara-google-analytics.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
Plugin Name: Google Analytics by Lara
|
5 |
Plugin URI: https://www.whmcsadmintheme.com
|
6 |
Description: Easily connects your Google Analytics account with WordPress.
|
7 |
-
Version: 1.0.
|
8 |
Author: Amr M. Ibrahim
|
9 |
Author URI: https://www.whmcsadmintheme.com
|
10 |
License: GPL2
|
11 |
*/
|
12 |
|
13 |
-
define ("lrgawidget_plugin_version", "1.0.
|
14 |
define ("lrgawidget_plugin_scripts_version", "12");
|
15 |
define ("lrgawidget_plugin_prefiex", "lrgalite-");
|
16 |
define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
|
@@ -32,7 +32,7 @@ add_action( 'wp_ajax_lrgawidget_getSessions', 'lrgawidget_callback' );
|
|
32 |
add_action( 'wp_head', 'lrgawidget_ga_code');
|
33 |
|
34 |
function lrgawidget_enqueue($hook) {
|
35 |
-
if ( 'index.php' != $hook ) {
|
36 |
return;
|
37 |
}
|
38 |
$user_id = get_current_user_id();
|
4 |
Plugin Name: Google Analytics by Lara
|
5 |
Plugin URI: https://www.whmcsadmintheme.com
|
6 |
Description: Easily connects your Google Analytics account with WordPress.
|
7 |
+
Version: 1.0.4
|
8 |
Author: Amr M. Ibrahim
|
9 |
Author URI: https://www.whmcsadmintheme.com
|
10 |
License: GPL2
|
11 |
*/
|
12 |
|
13 |
+
define ("lrgawidget_plugin_version", "1.0.4");
|
14 |
define ("lrgawidget_plugin_scripts_version", "12");
|
15 |
define ("lrgawidget_plugin_prefiex", "lrgalite-");
|
16 |
define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
|
32 |
add_action( 'wp_head', 'lrgawidget_ga_code');
|
33 |
|
34 |
function lrgawidget_enqueue($hook) {
|
35 |
+
if ( 'index.php' != $hook || !current_user_can('manage_options')) {
|
36 |
return;
|
37 |
}
|
38 |
$user_id = get_current_user_id();
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Google Analytics
|
2 |
Tags: lara, analytics, analytics dashboard, dashboard, google, google analytics, google analytics dashboard, google analytics plugin, google analytics widget, tracking, universal google analytics
|
3 |
Contributors: amribrahim
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.5
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,9 +11,9 @@ Easily connects your Google Analytics account with WordPress.
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
== Installation ==
|
19 |
1. Download the plugin zip file.
|
@@ -43,4 +43,8 @@ Adds a full width Google Analytics dashboard widget for WordPress admin interfac
|
|
43 |
|
44 |
= 1.0.3 =
|
45 |
* 26-April-2016
|
46 |
-
* Revised description.
|
|
|
|
|
|
|
|
1 |
+
=== Google Analytics by Lara ===
|
2 |
Tags: lara, analytics, analytics dashboard, dashboard, google, google analytics, google analytics dashboard, google analytics plugin, google analytics widget, tracking, universal google analytics
|
3 |
Contributors: amribrahim
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.5.1
|
6 |
+
Stable tag: 1.0.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Adds a full width Google Analytics dashboard widget for WordPress admin interface, and inserts latest Google Analytics tracking code to all your pages.
|
15 |
|
16 |
+
> Check a fully working demo, including all <strong>Google Analytics by Lara</strong> free and premium features at : [Google Analytics Dashboard Widget](https://wpdemo.whmcsadmintheme.com/).
|
17 |
|
18 |
== Installation ==
|
19 |
1. Download the plugin zip file.
|
43 |
|
44 |
= 1.0.3 =
|
45 |
* 26-April-2016
|
46 |
+
* Revised description.
|
47 |
+
|
48 |
+
= 1.0.4 =
|
49 |
+
* 27-April-2016
|
50 |
+
* Fix : Only users with 'manage_options' can access the widget.
|