Version Description
- Released 2022-11-09
- Updating Google Analytics Add-on banners.
- Cleaning up documentation.
- Testing with latest Gravity Forms and WordPress 6.1.
Download this release
Release Info
| Developer | ronalfy |
| Plugin | |
| Version | 2.4.12 |
| Comparing to | |
| See all releases | |
Code changes from version 2.4.11 to 2.4.12
README.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
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: 6.
|
| 6 |
-
Stable tag: 2.4.
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Donate link: https://github.com/mediaron
|
| 9 |
License: GPLv2 or later
|
|
@@ -13,7 +13,7 @@ Easily add event tracking using Gravity Forms and your Google Analytics or Googl
|
|
| 13 |
|
| 14 |
== Description ==
|
| 15 |
|
| 16 |
-
> Gravity Forms
|
| 17 |
|
| 18 |
This plugin provides an easy way to add event tracking to your Gravity Forms using Google Analytics and Google Tag Manager.
|
| 19 |
|
|
@@ -50,11 +50,11 @@ Development happens on <a href="https://github.com/ronalfy/wordpress-gravity-for
|
|
| 50 |
|
| 51 |
> Please <a href="https://wordpress.org/support/plugin/gravity-forms-google-analytics-event-tracking/reviews/#new-post">Rate the Plugin</a> or <a href="https://mediaron.com/give/">Give Back</a> to show support.
|
| 52 |
|
| 53 |
-
<h2>
|
| 54 |
|
| 55 |
-
The official Gravity Forms add-on is
|
| 56 |
|
| 57 |
-
Find out more details about the <a href="https://www.gravityforms.com/
|
| 58 |
|
| 59 |
== Installation ==
|
| 60 |
|
|
@@ -86,7 +86,11 @@ Find out more details about the <a href="https://www.gravityforms.com/blog/googl
|
|
| 86 |
|
| 87 |
== Frequently Asked Questions ==
|
| 88 |
|
| 89 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
Check out <a href="https://mediaron.com/event-tracking-with-gravity-forms-and-google-analytics-4/">this post</a> and YouTube Playlist for how to integrate with Google Analytics 4.
|
| 92 |
|
|
@@ -141,6 +145,12 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
|
|
| 141 |
|
| 142 |
== Changelog ==
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
= 2.4.11 =
|
| 145 |
* Released 2022-01-28
|
| 146 |
* WordPress 5.9 testing/compatibility
|
|
@@ -359,5 +369,5 @@ Check out the documentation on [github](https://github.com/ronalfy/wordpress-gra
|
|
| 359 |
|
| 360 |
== Upgrade Notice ==
|
| 361 |
|
| 362 |
-
= 2.4.
|
| 363 |
-
Tested with WP
|
| 2 |
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: 6.1
|
| 6 |
+
Stable tag: 2.4.12
|
| 7 |
Requires PHP: 5.6
|
| 8 |
Donate link: https://github.com/mediaron
|
| 9 |
License: GPLv2 or later
|
| 13 |
|
| 14 |
== Description ==
|
| 15 |
|
| 16 |
+
> Gravity Forms has launched <a href="https://www.gravityforms.com/add-ons/google-analytics/">an official Google Analytics Add-on</a>. It is the successor to this plugin.
|
| 17 |
|
| 18 |
This plugin provides an easy way to add event tracking to your Gravity Forms using Google Analytics and Google Tag Manager.
|
| 19 |
|
| 50 |
|
| 51 |
> Please <a href="https://wordpress.org/support/plugin/gravity-forms-google-analytics-event-tracking/reviews/#new-post">Rate the Plugin</a> or <a href="https://mediaron.com/give/">Give Back</a> to show support.
|
| 52 |
|
| 53 |
+
<h2>Get the official Gravity Forms Google Analytics Add-on</h2>
|
| 54 |
|
| 55 |
+
The official Gravity Forms add-on is here and is the successor to this plugin.
|
| 56 |
|
| 57 |
+
Find out more details about the <a href="https://www.gravityforms.com/add-ons/google-analytics/">Gravity Forms Google Analytics Add-on</a>.
|
| 58 |
|
| 59 |
== Installation ==
|
| 60 |
|
| 86 |
|
| 87 |
== Frequently Asked Questions ==
|
| 88 |
|
| 89 |
+
= What are the plans for this plugin now that an official Add-on is out? =
|
| 90 |
+
|
| 91 |
+
This plugin will continue to be maintained. No new features are planned, however. Users are encouraged to use the official <a href="https://www.gravityforms.com/add-ons/google-analytics/">Gravity Forms Google Analytics Add-on</a> for more up-to-date features and support.
|
| 92 |
+
|
| 93 |
+
= Do this plugin support Google Analytics 4? =
|
| 94 |
|
| 95 |
Check out <a href="https://mediaron.com/event-tracking-with-gravity-forms-and-google-analytics-4/">this post</a> and YouTube Playlist for how to integrate with Google Analytics 4.
|
| 96 |
|
| 145 |
|
| 146 |
== Changelog ==
|
| 147 |
|
| 148 |
+
= 2.4.12 =
|
| 149 |
+
* Released 2022-11-09
|
| 150 |
+
* Updating Google Analytics Add-on banners.
|
| 151 |
+
* Cleaning up documentation.
|
| 152 |
+
* Testing with latest Gravity Forms and WordPress 6.1.
|
| 153 |
+
|
| 154 |
= 2.4.11 =
|
| 155 |
* Released 2022-01-28
|
| 156 |
* WordPress 5.9 testing/compatibility
|
| 369 |
|
| 370 |
== Upgrade Notice ==
|
| 371 |
|
| 372 |
+
= 2.4.12 =
|
| 373 |
+
Tested with WP 6.1 and Gravity Forms 2.6. Cleaning up documentation and updating links to the official Google Analytics Add-on.
|
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.
|
| 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.
|
| 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.12
|
| 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.12' );
|
| 23 |
define( 'GFGAET_FILE', __FILE__ );
|
| 24 |
|
| 25 |
class GFGAET {
|
img/gravity-forms-ga-addon-horizontal.png
ADDED
|
Binary file
|
includes/GFGAET_Submission_Feeds.php
CHANGED
|
@@ -98,7 +98,7 @@ class GFGAET_Submission_Feeds extends GFFeedAddOn {
|
|
| 98 |
}
|
| 99 |
$docs_link = sprintf( '<a href="%s" target="_blank">%s</a>', esc_url( 'https://mediaron.com/event-tracking-for-gravity-forms/?utm_source=wordpress_plugins_page&utm_medium=documentation&utm_campaign=event_tracking' ), _x( 'Documentation', 'Gravity Forms Event Tracking Documentation page', 'gravity-forms-google-analytics-event-tracking' ) );
|
| 100 |
|
| 101 |
-
$beta_link = sprintf( '<a href="%s" target="_blank" style="color: green; font-weight: 700;">%s</a>', esc_url( 'https://www.gravityforms.com/
|
| 102 |
$links[] = $docs_link;
|
| 103 |
$links[] = $beta_link;
|
| 104 |
|
|
@@ -1202,9 +1202,9 @@ gtag('config', '<?php echo esc_js( $ga_code ); ?>');
|
|
| 1202 |
?>
|
| 1203 |
|
| 1204 |
<div class="alert info">
|
| 1205 |
-
<div style="padding-top: 25px; padding-bottom: 25px"><a href="https://www.gravityforms.com/
|
| 1206 |
-
<h3 style="font-size: 18px; line-height: 1.2; font-weight: 400">The team behind Gravity Forms
|
| 1207 |
-
<p><a class="button primary" href="https://www.gravityforms.com/
|
| 1208 |
</div>
|
| 1209 |
<?php
|
| 1210 |
echo wp_kses_post( ob_get_clean() );
|
| 98 |
}
|
| 99 |
$docs_link = sprintf( '<a href="%s" target="_blank">%s</a>', esc_url( 'https://mediaron.com/event-tracking-for-gravity-forms/?utm_source=wordpress_plugins_page&utm_medium=documentation&utm_campaign=event_tracking' ), _x( 'Documentation', 'Gravity Forms Event Tracking Documentation page', 'gravity-forms-google-analytics-event-tracking' ) );
|
| 100 |
|
| 101 |
+
$beta_link = sprintf( '<a href="%s" target="_blank" style="color: green; font-weight: 700;">%s</a>', esc_url( 'https://www.gravityforms.com/add-ons/google-analytics/' ), _x( 'Get the Google Analytics Add-on', 'Gravity Forms Google Analytics Page', 'gravity-forms-google-analytics-event-tracking' ) );
|
| 102 |
$links[] = $docs_link;
|
| 103 |
$links[] = $beta_link;
|
| 104 |
|
| 1202 |
?>
|
| 1203 |
|
| 1204 |
<div class="alert info">
|
| 1205 |
+
<div style="padding-top: 25px; padding-bottom: 25px"><a href="https://www.gravityforms.com/add-ons/google-analytics/" target="_blank"><img src="<?php echo esc_url( GFGAET::get_plugin_url( '/img/gravity-forms-ga-addon-horizontal.png' ) ); ?>" width="800" height="214" /></a></div>
|
| 1206 |
+
<h3 style="font-size: 18px; line-height: 1.2; font-weight: 400">The team behind Gravity Forms has developed and released an official Google Analytics Add-on.</h3>
|
| 1207 |
+
<p><a class="button primary" href="https://www.gravityforms.com/add-ons/google-analytics/" target="_blank">Check out the new Google Analytics Add-On</a>
|
| 1208 |
</div>
|
| 1209 |
<?php
|
| 1210 |
echo wp_kses_post( ob_get_clean() );
|
includes/GFGAET_UA.php
CHANGED
|
@@ -49,9 +49,9 @@ class GFGAET_UA extends GFAddOn {
|
|
| 49 |
?>
|
| 50 |
|
| 51 |
<div class="alert info">
|
| 52 |
-
<div style="padding-top: 25px; padding-bottom: 25px"><a href="https://www.gravityforms.com/
|
| 53 |
-
<h3 style="font-size: 18px; line-height: 1.2; font-weight: 400">The team behind Gravity Forms
|
| 54 |
-
<p><a class="button primary" href="https://www.gravityforms.com/
|
| 55 |
</div>
|
| 56 |
<?php
|
| 57 |
echo wp_kses_post( ob_get_clean() );
|
|
@@ -75,7 +75,7 @@ class GFGAET_UA extends GFAddOn {
|
|
| 75 |
return array(
|
| 76 |
array(
|
| 77 |
'title' => __( 'Google Analytics and Google Tag Manager', 'gravity-forms-google-analytics-event-tracking' ),
|
| 78 |
-
'description' => '<p>' . __( 'By default, events are sent using the measurement protocol. You can change to using pure Google Analytics and Google Tag Manager if your forms are Ajax only.', 'gravity-forms-google-analytics-event-tracking' ) . '</p><p>' . __( '
|
| 79 |
'fields' => array(
|
| 80 |
array(
|
| 81 |
'name' => 'gravityforms_ga',
|
|
@@ -391,19 +391,19 @@ class GFGAET_UA extends GFAddOn {
|
|
| 391 |
'name' => 'beta_notification',
|
| 392 |
'horizontal' => false,
|
| 393 |
'default_value' => 'on',
|
| 394 |
-
'label' => '
|
| 395 |
'choices' => array(
|
| 396 |
array(
|
| 397 |
'name' => 'beta_notifications_on',
|
| 398 |
'label' => esc_html__( 'Turn On', 'gravity-forms-google-analytics-event-tracking' ),
|
| 399 |
'value' => 'on',
|
| 400 |
-
'tooltip' => 'If you would like to
|
| 401 |
),
|
| 402 |
array(
|
| 403 |
'name' => 'beta_notifications_off',
|
| 404 |
'label' => esc_html__( 'Turn Off', 'gravity-forms-google-analytics-event-tracking' ),
|
| 405 |
'value' => 'off',
|
| 406 |
-
'tooltip' => esc_html__( 'Turn off the
|
| 407 |
),
|
| 408 |
),
|
| 409 |
),
|
| 49 |
?>
|
| 50 |
|
| 51 |
<div class="alert info">
|
| 52 |
+
<div style="padding-top: 25px; padding-bottom: 25px"><a href="https://www.gravityforms.com/add-ons/google-analytics/" target="_blank"><img src="<?php echo esc_url( GFGAET::get_plugin_url( '/img/gravity-forms-ga-addon-horizontal.png' ) ); ?>" width="800" height="214" /></a></div>
|
| 53 |
+
<h3 style="font-size: 18px; line-height: 1.2; font-weight: 400">The team behind Gravity Forms has developed and released an official Google Analytics Add-on.</h3>
|
| 54 |
+
<p><a class="button primary" href="https://www.gravityforms.com/add-ons/google-analytics/" target="_blank">Check out the new Google Analytics Add-On</a>
|
| 55 |
</div>
|
| 56 |
<?php
|
| 57 |
echo wp_kses_post( ob_get_clean() );
|
| 75 |
return array(
|
| 76 |
array(
|
| 77 |
'title' => __( 'Google Analytics and Google Tag Manager', 'gravity-forms-google-analytics-event-tracking' ),
|
| 78 |
+
'description' => '<p>' . __( 'By default, events are sent using the measurement protocol. You can change to using pure Google Analytics and Google Tag Manager if your forms are Ajax only.', 'gravity-forms-google-analytics-event-tracking' ) . '</p><p>' . __( 'Do you need help? <a target="_blank" href="https://mediaron.com/event-tracking-for-gravity-forms/?utm_source=wordpress_admin&utm_medium=documentation&utm_campaign=event_tracking">Please see the documentation</a>.</p>', 'gravity-forms-google-analytics-event-tracking' ),
|
| 79 |
'fields' => array(
|
| 80 |
array(
|
| 81 |
'name' => 'gravityforms_ga',
|
| 391 |
'name' => 'beta_notification',
|
| 392 |
'horizontal' => false,
|
| 393 |
'default_value' => 'on',
|
| 394 |
+
'label' => 'Google Analytics Add-on Banner',
|
| 395 |
'choices' => array(
|
| 396 |
array(
|
| 397 |
'name' => 'beta_notifications_on',
|
| 398 |
'label' => esc_html__( 'Turn On', 'gravity-forms-google-analytics-event-tracking' ),
|
| 399 |
'value' => 'on',
|
| 400 |
+
'tooltip' => 'If you would like to check out the official Google Analytics Add-on, <a href="https://www.gravityforms.com/add-ons/google-analytics/" target="blank">please click here</a>.',
|
| 401 |
),
|
| 402 |
array(
|
| 403 |
'name' => 'beta_notifications_off',
|
| 404 |
'label' => esc_html__( 'Turn Off', 'gravity-forms-google-analytics-event-tracking' ),
|
| 405 |
'value' => 'off',
|
| 406 |
+
'tooltip' => esc_html__( 'Turn off the Google Analytics Add-on banner.', 'gravity-forms-google-analytics-event-tracking' ),
|
| 407 |
),
|
| 408 |
),
|
| 409 |
),
|
