Version Description
- Released 2018-08-23
- Bug fix: Blank event values were being sent in Google Analytics mode, which resulted in failed conversions
Download this release
Release Info
| Developer | ronalfy |
| Plugin | |
| Version | 2.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2.0 to 2.2.1
- README.txt +8 -1
- gravity-forms-event-tracking.php +1 -1
- includes/GFGAET_Submission_Feeds.php +2 -2
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:4.0
|
| 5 |
Tested up to: 4.9
|
| 6 |
-
Stable tag: 2.2.
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Donate link: https://mediaron.com/give/
|
| 9 |
License: GPLv2 or later
|
|
@@ -116,6 +116,10 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
|
|
| 116 |
|
| 117 |
== Changelog ==
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
= 2.2.0 =
|
| 120 |
* Released 2018-08-19
|
| 121 |
* Bug fix: Non-integer values being sent to Google Analytics weren't tracking as conversions
|
|
@@ -243,6 +247,9 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
|
|
| 243 |
|
| 244 |
== Upgrade Notice ==
|
| 245 |
|
|
|
|
|
|
|
|
|
|
| 246 |
= 2.2.0 =
|
| 247 |
Event values can now be sent using the Measurement Protocol, Google Analytics, Google Tag Manager, and Matomo. Please double-check your conversions after you update.
|
| 248 |
|
| 3 |
Tags: gravity forms, google analytics, google tag manager, matomo, piwik, event tracking
|
| 4 |
Requires at least:4.0
|
| 5 |
Tested up to: 4.9
|
| 6 |
+
Stable tag: 2.2.1
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Donate link: https://mediaron.com/give/
|
| 9 |
License: GPLv2 or later
|
| 116 |
|
| 117 |
== Changelog ==
|
| 118 |
|
| 119 |
+
= 2.2.1 =
|
| 120 |
+
* Released 2018-08-23
|
| 121 |
+
* Bug fix: Blank event values were being sent in Google Analytics mode, which resulted in failed conversions
|
| 122 |
+
|
| 123 |
= 2.2.0 =
|
| 124 |
* Released 2018-08-19
|
| 125 |
* Bug fix: Non-integer values being sent to Google Analytics weren't tracking as conversions
|
| 247 |
|
| 248 |
== Upgrade Notice ==
|
| 249 |
|
| 250 |
+
= 2.2.1 =
|
| 251 |
+
Bug fix: Blank event values were being sent in Google Analytics mode, which resulted in failed conversions. Please double-check your conversions after you update.
|
| 252 |
+
|
| 253 |
= 2.2.0 =
|
| 254 |
Event values can now be sent using the Measurement Protocol, Google Analytics, Google Tag Manager, and Matomo. Please double-check your conversions after you update.
|
| 255 |
|
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 (formerly Piwik).
|
| 6 |
-
* Version: 2.2.
|
| 7 |
* Author: Ronald Huereca
|
| 8 |
* Author URI: https://mediaron.com
|
| 9 |
* Text Domain: gravity-forms-google-analytics-event-tracking
|
| 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 (formerly Piwik).
|
| 6 |
+
* Version: 2.2.1
|
| 7 |
* Author: Ronald Huereca
|
| 8 |
* Author URI: https://mediaron.com
|
| 9 |
* Text Domain: gravity-forms-google-analytics-event-tracking
|
includes/GFGAET_Submission_Feeds.php
CHANGED
|
@@ -368,7 +368,7 @@ class GFGAET_Submission_Feeds extends GFFeedAddOn {
|
|
| 368 |
|
| 369 |
// If UA code matches, use that tracker
|
| 370 |
if ( default_ua_code == '<?php echo esc_js( $ua_code ); ?>' ) {
|
| 371 |
-
window.parent.ga( 'send', 'event', '<?php echo esc_js( $event_category ); ?>', '<?php echo esc_js( $event_action ); ?>', '<?php echo esc_js( $event_label ); ?>'<?php if ( 0 !== $event_value ) { echo ',' . "'" . esc_js( $event_value ) . "'"; } ?>);
|
| 372 |
} else {
|
| 373 |
// UA code doesn't match, use another tracker
|
| 374 |
window.parent.ga( 'create', '<?php echo esc_js( $ua_code ); ?>', 'auto', 'GTGAET_Tracker<?php echo absint( $count ); ?>' );
|
|
@@ -501,7 +501,7 @@ class GFGAET_Submission_Feeds extends GFFeedAddOn {
|
|
| 501 |
if ( null == matomo_feed_submission ) {
|
| 502 |
if ( typeof window.parent._paq != 'undefined' ) {
|
| 503 |
|
| 504 |
-
window.parent._paq.push(['trackEvent', '<?php echo esc_js( $event_category ); ?>', '<?php echo esc_js( $event_action ); ?>', '<?php echo esc_js( $event_label ); ?>'<?php if ( 0 !== $event_value ) { echo ',' . "'" . esc_js( $event_value ) . "'"; } ?>]);
|
| 505 |
|
| 506 |
sessionStorage.setItem('matomo_feed_<?php echo absint( $feed_id ); ?>_entry_<?php echo absint( $entry[ 'id' ] ); ?>', true );
|
| 507 |
}
|
| 368 |
|
| 369 |
// If UA code matches, use that tracker
|
| 370 |
if ( default_ua_code == '<?php echo esc_js( $ua_code ); ?>' ) {
|
| 371 |
+
window.parent.ga( 'send', 'event', '<?php echo esc_js( $event_category ); ?>', '<?php echo esc_js( $event_action ); ?>', '<?php echo esc_js( $event_label ); ?>'<?php if ( 0 !== $event_value && !empty( $event_value ) ) { echo ',' . "'" . esc_js( $event_value ) . "'"; } ?>);
|
| 372 |
} else {
|
| 373 |
// UA code doesn't match, use another tracker
|
| 374 |
window.parent.ga( 'create', '<?php echo esc_js( $ua_code ); ?>', 'auto', 'GTGAET_Tracker<?php echo absint( $count ); ?>' );
|
| 501 |
if ( null == matomo_feed_submission ) {
|
| 502 |
if ( typeof window.parent._paq != 'undefined' ) {
|
| 503 |
|
| 504 |
+
window.parent._paq.push(['trackEvent', '<?php echo esc_js( $event_category ); ?>', '<?php echo esc_js( $event_action ); ?>', '<?php echo esc_js( $event_label ); ?>'<?php if ( 0 !== $event_value && !empty( $event_value ) ) { echo ',' . "'" . esc_js( $event_value ) . "'"; } ?>]);
|
| 505 |
|
| 506 |
sessionStorage.setItem('matomo_feed_<?php echo absint( $feed_id ); ?>_entry_<?php echo absint( $entry[ 'id' ] ); ?>', true );
|
| 507 |
}
|
