WP Google Analytics Events - Version 2.4.6

Version Description

Download this release

Release Info

Developer yuvalo
Plugin Icon 128x128 WP Google Analytics Events
Version 2.4.6
Comparing to
See all releases

Code changes from version 2.4.5 to 2.4.6

ga-scroll-event.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Analytics Events
4
  Plugin URI: http://wpflow.com
5
  Description: Adds the Google Analytics code to your website and enables you to send events on scroll or click.
6
- Version: 2.4.5
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
@@ -84,7 +84,7 @@ add_action('init','ga_events_scripts');
84
 
85
  function ga_events_scripts() {
86
  wp_enqueue_script('jquery');
87
- wp_enqueue_script('scrolldepth',plugins_url( '/js/ga-scroll-events.js', __FILE__) , array('jquery'), '2.4.5', false);
88
  }
89
 
90
  add_action( 'plugins_loaded', 'ga_events_setup');
3
  Plugin Name: WP Google Analytics Events
4
  Plugin URI: http://wpflow.com
5
  Description: Adds the Google Analytics code to your website and enables you to send events on scroll or click.
6
+ Version: 2.4.6
7
  Author: Yuval Oren
8
  Author URI: http://wpflow.com
9
  License: GPLv2
84
 
85
  function ga_events_scripts() {
86
  wp_enqueue_script('jquery');
87
+ wp_enqueue_script('scrolldepth',plugins_url( '/js/ga-scroll-events.js', __FILE__) , array('jquery'), '2.4.6', false);
88
  }
89
 
90
  add_action( 'plugins_loaded', 'ga_events_setup');
includes/admin.php CHANGED
@@ -94,6 +94,7 @@ if ($active_page == 'wp-google-analytics-events') {
94
  <li title="Dynamic Event Data"><i class="fa fa-check-square-o fa-lg"></i><strong>Placeholders</strong></li>
95
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>YouTube Video Tracking</strong></li>
96
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Vimeo Video support</strong></li>
 
97
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>HTML Tag support</strong></li>
98
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Pro Support</strong></li>
99
  </ul>
@@ -148,8 +149,8 @@ if ($active_page == 'wp-google-analytics-events') {
148
  <img src="<?php echo plugins_url( 'images/icon_block.png', dirname(__FILE__)) ?>" />
149
  </div>
150
  <div class="ga_events_box_li_content">
151
- <span class="ga_events_box_li_title">HTML Tag support</span>
152
- <span class="ga_events_box_li_txt">Add much more custom tags</span>
153
  </div>
154
  </li>
155
  </ul>
94
  <li title="Dynamic Event Data"><i class="fa fa-check-square-o fa-lg"></i><strong>Placeholders</strong></li>
95
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>YouTube Video Tracking</strong></li>
96
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Vimeo Video support</strong></li>
97
+ <li><i class="fa fa-check-square-o fa-lg"></i><strong>Allow non-admin users to manage the plugin</strong></li>
98
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>HTML Tag support</strong></li>
99
  <li><i class="fa fa-check-square-o fa-lg"></i><strong>Pro Support</strong></li>
100
  </ul>
149
  <img src="<?php echo plugins_url( 'images/icon_block.png', dirname(__FILE__)) ?>" />
150
  </div>
151
  <div class="ga_events_box_li_content">
152
+ <span class="ga_events_box_li_title">User Permissions</span>
153
+ <span class="ga_events_box_li_txt">Allow non Administrators to manage the plugin</span>
154
  </div>
155
  </li>
156
  </ul>
js/ga-scroll-events.js CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
- * WP Googel Analytics Events | v2.4.5
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
@@ -67,14 +67,15 @@ var scroll_events = (function ($) {
67
 
68
  track_event(event.data.category, event.data.action, event.data.label, event.data.universal, event.data.bounce, event.data.evalue);
69
  var hasHref = event.currentTarget.href;
 
70
  if (hasHref && hasHref !== "") {
71
  event.preventDefault();
72
- if (event.currentTarget.target.trim() === "_blank") {
73
  var w = window.open('', '_blank');
74
- w.location.href = event.currentTarget.href;
75
  } else {
76
  setTimeout(function () {
77
- window.location = event.currentTarget.href;
78
  }, 100);
79
  }
80
  }
1
  /*!
2
+ * WP Googel Analytics Events | v2.4.6
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
67
 
68
  track_event(event.data.category, event.data.action, event.data.label, event.data.universal, event.data.bounce, event.data.evalue);
69
  var hasHref = event.currentTarget.href;
70
+ var hrefTarget = event.currentTarget.target;
71
  if (hasHref && hasHref !== "") {
72
  event.preventDefault();
73
+ if (hrefTarget.trim() === "_blank") {
74
  var w = window.open('', '_blank');
75
+ w.location.href = hasHref;
76
  } else {
77
  setTimeout(function () {
78
+ window.location = hasHref;
79
  }, 100);
80
  }
81
  }
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo, claconsay
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
- Tested up to: 4.8
5
- Stable tag: 2.4.5
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
@@ -91,6 +91,9 @@ If you are looking for more in-depth support, we encourage you to check out [WP
91
  2. Google Analytics real time events screenshot-2.png
92
  == Changelog ==
93
 
 
 
 
94
  = Version 2.4.5 =
95
  1. Fixed compressed UI in firefox
96
 
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo, claconsay
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
+ Tested up to: 4.8.2
5
+ Stable tag: 2.4.6
6
  License: GPLv2
7
  Requires at least: 3.0
8
 
91
  2. Google Analytics real time events screenshot-2.png
92
  == Changelog ==
93
 
94
+ = Version 2.4.6 =
95
+ 1. Minor bug fixes
96
+
97
  = Version 2.4.5 =
98
  1. Fixed compressed UI in firefox
99