Version Description
- Hotfix for issue with paypal standard converting early
Download this release
Release Info
Developer | nmarks |
Plugin | Event Tracking for Gravity Forms |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
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.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -80,7 +80,7 @@ Check out the documentation on [github](https://github.com/nathanmarks/wordpress
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
-
= 1.5.
|
84 |
* Hotfix for issue with paypal standard converting early
|
85 |
|
86 |
= 1.5.3 =
|
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.5.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.5.5 =
|
84 |
* Hotfix for issue with paypal standard converting early
|
85 |
|
86 |
= 1.5.3 =
|
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.5.
|
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.5.5
|
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.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
GFForms::include_addon_framework();
|
14 |
|
15 |
class Gravity_Forms_Event_Tracking extends GFAddOn {
|
16 |
-
protected $_version = "1.5.
|
17 |
protected $_min_gravityforms_version = "1.8.20";
|
18 |
|
19 |
/**
|
@@ -161,10 +161,12 @@ class Gravity_Forms_Event_Tracking extends GFAddOn {
|
|
161 |
|
162 |
gform_update_meta( $entry['id'], 'ga_event_vars', maybe_serialize( $ga_event_vars ) );
|
163 |
|
164 |
-
if ( $entry['payment_status']
|
165 |
-
|
166 |
-
$this->push_event( $entry, $form );
|
167 |
}
|
|
|
|
|
|
|
168 |
}
|
169 |
|
170 |
/**
|
13 |
GFForms::include_addon_framework();
|
14 |
|
15 |
class Gravity_Forms_Event_Tracking extends GFAddOn {
|
16 |
+
protected $_version = "1.5.5";
|
17 |
protected $_min_gravityforms_version = "1.8.20";
|
18 |
|
19 |
/**
|
161 |
|
162 |
gform_update_meta( $entry['id'], 'ga_event_vars', maybe_serialize( $ga_event_vars ) );
|
163 |
|
164 |
+
if ( isset($entry['payment_status']) && $entry['payment_status'] == "Processing" ) {
|
165 |
+
return;
|
|
|
166 |
}
|
167 |
+
|
168 |
+
// Push the event to google
|
169 |
+
$this->push_event( $entry, $form );
|
170 |
}
|
171 |
|
172 |
/**
|