WP Google Analytics Events - Version 2.5.2

Version Description

Download this release

Release Info

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

Code changes from version 2.5.1 to 2.5.2

Files changed (3) hide show
  1. ga-scroll-event.php +5 -2
  2. js/ga-scroll-events.js +1 -1
  3. readme.txt +5 -2
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.5.1
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.5.1', false);
88
  }
89
 
90
  add_action( 'plugins_loaded', 'ga_events_setup');
@@ -159,6 +159,9 @@ function ga_events_footer() {
159
  <script>
160
 
161
  jQuery(document).ready(function() {
 
 
 
162
  scroll_events.bind_events( {
163
  universal: ".$universal.",
164
  gtm:".$gtm.",
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.5.2
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.5.2', false);
88
  }
89
 
90
  add_action( 'plugins_loaded', 'ga_events_setup');
159
  <script>
160
 
161
  jQuery(document).ready(function() {
162
+ if(typeof scroll_events == 'undefined') {
163
+ return;
164
+ }
165
  scroll_events.bind_events( {
166
  universal: ".$universal.",
167
  gtm:".$gtm.",
js/ga-scroll-events.js CHANGED
@@ -1,5 +1,5 @@
1
  /*!
2
- * WP Googel Analytics Events | v2.5.1
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
1
  /*!
2
+ * WP Googel Analytics Events | v2.5.2
3
  * Copyright (c) 2013 Yuval Oren (@yuvalo)
4
  * License: GPLv2
5
  */
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
- Tested up to: 4.8.2
5
- Stable tag: 2.5.1
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.5.1 =
95
  1. Fixed an issue with the none-interaction field
96
 
1
  === WP Google Analytics Events ===
2
  Contributors: yuvalo
3
  Tags: analytics, google, events, ga, google analytics, tracking
4
+ Tested up to: 4.9.8
5
+ Stable tag: 2.5.2
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.5.2 =
95
+ 1. Fixed a javascript error when ad blockers are on
96
+
97
  = Version 2.5.1 =
98
  1. Fixed an issue with the none-interaction field
99