Gravity Forms Data Layer Events
WordPress Plugin to Fire off data layer events for Gravity Forms
by Workhorse · github.com/workhorsemarketing/gravity-forms-data-layer-events · website
★ 1stars
25release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/workhorsemarketing/gravity-forms-data-layer-events/releases/download/v2.0/gravity-forms-data-layer-events.zipDeclares an update source (https://github.com/workhorsemarketing/Gravity-Forms-Data-Layer-Events), so updates arrive through the plugin's own updater.
From the readme
Gravity Forms Data Layer Events for WordPress
A very simple WordPress Plugin to Fire off data layer events for Gravity Forms.
Features
Fires off a Google Tag Manager data layer event gfformsubmission and includes parameters:
gfformid : Form ID in Gravity Forms
gfformname : form name as it exists in Gravity Forms
emailX : plain text email. If there are multiple email fields on the form it will increment X and add a new key/value for each
emailXhashed : SHA-256 hashed version of the email
gftotal : Form total if form collects $ / is selling a product
Customizable Redirect delay
When using a redirect confirmation, there is a 1 second delay to give time for tags to fire in GTM. if you'd like to delay the submission longer you can add this filter to your theme:
Example dataLayer push
Email Normalization
In addition email addresses are normalized before hashing to ensure accurate matching:
Converts to lowercase
Plus addressing removed (myemail+something@domain.com becomes myemail@domain.com)
Gmail addresses also have dots remove from local part (my.email@gmail.com becomes myemail@gmail.com
Compatibility
WordPress 5.0+
Gravity Forms 2.4+
Gravity Forms Stripe Ad
Read the full README on GitHub →