Google Analytics - Version 1.0.5

Version Description

  • 7-May-2016
  • Fix : Track subscribers and anonymous visitors only.
Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

Files changed (2) hide show
  1. lara-google-analytics.php +6 -4
  2. readme.txt +11 -5
lara-google-analytics.php CHANGED
@@ -1,16 +1,16 @@
1
  <?php
2
 
3
  /*
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/');
@@ -123,8 +123,10 @@ function lrga_welcome_panel() {
123
 
124
  function lrgawidget_ga_code(){
125
  $lrgawidget_property_id = get_option('lrgawidget_property_id',"");
126
- if (!is_admin() && !empty($lrgawidget_property_id) ) {
127
  ?>
 
 
128
  <script type="text/javascript">
129
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
130
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
1
  <?php
2
 
3
  /*
4
+ Plugin Name: Google Analytics
5
  Plugin URI: https://www.whmcsadmintheme.com
6
  Description: Easily connects your Google Analytics account with WordPress.
7
+ Version: 1.0.5
8
  Author: Amr M. Ibrahim
9
  Author URI: https://www.whmcsadmintheme.com
10
  License: GPL2
11
  */
12
 
13
+ define ("lrgawidget_plugin_version", "1.0.5");
14
  define ("lrgawidget_plugin_scripts_version", "12");
15
  define ("lrgawidget_plugin_prefiex", "lrgalite-");
16
  define ("lrgawidget_plugin_dist_dir", plugin_dir_url( __FILE__ ).'dist/');
123
 
124
  function lrgawidget_ga_code(){
125
  $lrgawidget_property_id = get_option('lrgawidget_property_id',"");
126
+ if (!current_user_can('edit_posts') && !empty($lrgawidget_property_id) ) {
127
  ?>
128
+
129
+ <!-- Google Analytics by Lara - https://www.whmcsadmintheme.com -->
130
  <script type="text/javascript">
131
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
132
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
readme.txt CHANGED
@@ -1,9 +1,9 @@
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,6 +11,8 @@ Easily connects your Google Analytics account with WordPress.
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/).
@@ -47,4 +49,8 @@ Adds a full width Google Analytics dashboard widget for WordPress admin interfac
47
 
48
  = 1.0.4 =
49
  * 27-April-2016
50
- * Fix : Only users with 'manage_options' can access the widget.
 
 
 
 
1
+ === Google Analytics ===
2
+ Tags: analyticator, analytics, analytics dashboard, better google analytics, analitics, charts, counter, dashboard, demographics, easy analytics, ga, ga code, gogle, google, google analytic, google analytics, google analytics dashboard, google analytics for wordpress, google analytics manager, google analytics plugin, google analytics tracking code, google analytics widget, hit, hit counter, hits website, install analytics, interests, keywords, marketing, pageview counter, pageviews, reports, simple analytics, statistic, stats, stats counter, statscounter, track, tracker, tracking, tracking code, universal tracking, visitor tracker, web statistics, web stats, website visitors, wordpress analytics, hitcounter, hits, statistics, visitor tracking, visitors, googleanalytics, universal google analytics, lara
3
  Contributors: amribrahim
4
  Requires at least: 4.0
5
+ Tested up to: 4.6
6
+ Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
11
 
12
  == Description ==
13
 
14
+ <strong>Google Analytics - by Lara.</strong>
15
+
16
  Adds a full width Google Analytics dashboard widget for WordPress admin interface, and inserts latest Google Analytics tracking code to all your pages.
17
 
18
  > 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/).
49
 
50
  = 1.0.4 =
51
  * 27-April-2016
52
+ * Fix : Only users with 'manage_options' can access the widget.
53
+
54
+ = 1.0.5 =
55
+ * 7-May-2016
56
+ * Fix : Track subscribers and anonymous visitors only.