Event Tracking for Gravity Forms - Version 2.4.10

Version Description

Download this release

Release Info

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

Code changes from version 2.4.9 to 2.4.10

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ronalfy, bigwing, nmarks, kzeni
3
  Tags: gravity forms, google analytics, google tag manager, matomo, piwik, event tracking
4
  Requires at least: 5.5
5
  Tested up to: 5.8
6
- Stable tag: 2.4.9
7
  Requires PHP: 5.6
8
  Donate link: https://github.com/mediaron
9
  License: GPLv2 or later
@@ -133,6 +133,10 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
133
 
134
  == Changelog ==
135
 
 
 
 
 
136
  = 2.4.9 =
137
  * Released 2021=08-22
138
  * Prevent GTM from sending events more than once (props @zahadum).
@@ -341,5 +345,5 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
341
 
342
  == Upgrade Notice ==
343
 
344
- = 2.4.9 =
345
- Prevent GTM from sending events more than once (props @zahadum)
3
  Tags: gravity forms, google analytics, google tag manager, matomo, piwik, event tracking
4
  Requires at least: 5.5
5
  Tested up to: 5.8
6
+ Stable tag: 2.4.10
7
  Requires PHP: 5.6
8
  Donate link: https://github.com/mediaron
9
  License: GPLv2 or later
133
 
134
  == Changelog ==
135
 
136
+ = 2.4.10
137
+ * Released 2021-08-23
138
+ * Fixing a bug caused another. Fixing GTM not sending any events.
139
+
140
  = 2.4.9 =
141
  * Released 2021=08-22
142
  * Prevent GTM from sending events more than once (props @zahadum).
345
 
346
  == Upgrade Notice ==
347
 
348
+ = 2.4.10 =
349
+ Fixing a bug caused another. Fixing GTM not sending any events.
gravity-forms-event-tracking.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Gravity Forms Event Tracking
4
  * Plugin URI: https://wordpress.org/plugins/gravity-forms-google-analytics-event-tracking/
5
  * Description: Add event tracking to your Gravity Forms with ease using Google Analytics, Tag Manager, or Matomo
6
- * Version: 2.4.9
7
  * Author: Ronald Huereca
8
  * Author URI: https://mediaron.com
9
  * Text Domain: gravity-forms-google-analytics-event-tracking
@@ -19,7 +19,7 @@ if ( ! defined( 'WPINC' ) ) {
19
  }
20
 
21
  define( 'GFGAET_MIN_GFORMS_VERSION', '2.2.0' );
22
- define( 'GFGAET_VERSION', '2.4.9' );
23
  define( 'GFGAET_FILE', __FILE__ );
24
 
25
  class GFGAET {
3
  * Plugin Name: Gravity Forms Event Tracking
4
  * Plugin URI: https://wordpress.org/plugins/gravity-forms-google-analytics-event-tracking/
5
  * Description: Add event tracking to your Gravity Forms with ease using Google Analytics, Tag Manager, or Matomo
6
+ * Version: 2.4.10
7
  * Author: Ronald Huereca
8
  * Author URI: https://mediaron.com
9
  * Text Domain: gravity-forms-google-analytics-event-tracking
19
  }
20
 
21
  define( 'GFGAET_MIN_GFORMS_VERSION', '2.2.0' );
22
+ define( 'GFGAET_VERSION', '2.4.10' );
23
  define( 'GFGAET_FILE', __FILE__ );
24
 
25
  class GFGAET {
includes/GFGAET_Submission_Feeds.php CHANGED
@@ -872,7 +872,7 @@ gtag('config', '<?php echo esc_js( $ga_code ); ?>');
872
  utmContent = utmVariables.content;
873
  }
874
  if ( typeof( window.parent.dataLayer ) != 'undefined' ) {
875
- if (typeof(window.parent.gfaetTagManagerSent) != 'undefined' ) {
876
  window.parent.dataLayer.push({'event': 'GFTrackEvent',
877
  'GFTrackCategory':'<?php echo esc_js( $event_category ); ?>',
878
  'GFTrackAction':'<?php echo esc_js( $event_action ); ?>',
872
  utmContent = utmVariables.content;
873
  }
874
  if ( typeof( window.parent.dataLayer ) != 'undefined' ) {
875
+ if (typeof(window.parent.gfaetTagManagerSent) == 'undefined' ) {
876
  window.parent.dataLayer.push({'event': 'GFTrackEvent',
877
  'GFTrackCategory':'<?php echo esc_js( $event_category ); ?>',
878
  'GFTrackAction':'<?php echo esc_js( $event_action ); ?>',