Event Tracking for Gravity Forms - Version 1.6.2

Version Description

  • Fixed bug where manual event values were not sent properly.
Download this release

Release Info

Developer nmarks
Plugin Icon 128x128 Event Tracking for Gravity Forms
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: nmarks
3
  Tags: gravity forms, google analytics, event tracking
4
  Requires at least: 3.5.2
5
  Tested up to: 4.1
6
- Stable tag: 1.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -83,6 +83,9 @@ Check out the documentation on [github](https://github.com/nathanmarks/wordpress
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 1.6.1 =
87
  * Hotfix to remove echo'd text bug
88
 
3
  Tags: gravity forms, google analytics, event tracking
4
  Requires at least: 3.5.2
5
  Tested up to: 4.1
6
+ Stable tag: 1.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
83
 
84
  == Changelog ==
85
 
86
+ = 1.6.2 =
87
+ * Fixed bug where manual event values were not sent properly.
88
+
89
  = 1.6.1 =
90
  * Hotfix to remove echo'd text bug
91
 
gravity-forms-event-tracking.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Gravity Forms Google Analytics Event Tracking
11
  * Plugin URI: https://wordpress.org/plugins/gravity-forms-google-analytics-event-tracking/
12
  * Description: Add Google Analytics event tracking to your Gravity Forms with ease.
13
- * Version: 1.6.1
14
  * Author: Nathan Marks
15
  * Author URI: http://www.nvisionsolutions.ca
16
  * Text Domain: gravity-forms-google-analytics-event-tracking
10
  * Plugin Name: Gravity Forms Google Analytics Event Tracking
11
  * Plugin URI: https://wordpress.org/plugins/gravity-forms-google-analytics-event-tracking/
12
  * Description: Add Google Analytics event tracking to your Gravity Forms with ease.
13
+ * Version: 1.6.2
14
  * Author: Nathan Marks
15
  * Author URI: http://www.nvisionsolutions.ca
16
  * Text Domain: gravity-forms-google-analytics-event-tracking
includes/class-gravity-forms-event-tracking-feed.php CHANGED
@@ -14,7 +14,7 @@ GFForms::include_feed_addon_framework();
14
 
15
  class Gravity_Forms_Event_Tracking extends GFFeedAddOn {
16
 
17
- protected $_version = "1.6.1";
18
  protected $_min_gravityforms_version = "1.8.20";
19
 
20
  /**
@@ -301,7 +301,7 @@ class Gravity_Forms_Event_Tracking extends GFFeedAddOn {
301
 
302
  if ( $event_value = apply_filters( 'gform_event_value', $ga_event_data['gaEventValue'], $form ) ) {
303
  // Event value must be a valid float!
304
- $event_value = (float) $event_value;
305
  $event->setEventValue( $event_value );
306
  }
307
 
14
 
15
  class Gravity_Forms_Event_Tracking extends GFFeedAddOn {
16
 
17
+ protected $_version = "1.6.2";
18
  protected $_min_gravityforms_version = "1.8.20";
19
 
20
  /**
301
 
302
  if ( $event_value = apply_filters( 'gform_event_value', $ga_event_data['gaEventValue'], $form ) ) {
303
  // Event value must be a valid float!
304
+ $event_value = GFCommon::to_number( $event_value );
305
  $event->setEventValue( $event_value );
306
  }
307