WP Manifestindependent plugin directory
manifest / analytics / gravity-forms-data-layer-events

Gravity Forms Data Layer Events WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress Plugin to Fire off data layer events for Gravity Forms

★ 1stars
29release downloads
≈10active sites
2.1latest · 16d ago

Install

Download gravity-forms-data-layer-events.zip From the v2.0 release on GitHub, Apr 18, 2025

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/workhorsemarketing/gravity-forms-data-layer-events/releases/download/v2.0/gravity-forms-data-layer-events.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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 gf_form_submission and includes parameters:

  • gf_form_id : Form ID in Gravity Forms
  • gf_form_name : 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
  • emailX_hashed : SHA-256 hashed version of the email
  • gf_total : 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:

add_filter( 'gfdle_redirect_delay', function() {
    return 1500; // 1.5 seconds
} );

Example dataLayer push

<script>
if(window.self === window.top){
            window.dataLayer = window.dataLayer || [];
            window.dataLayer.push({
                "event": "gf_form_submission",
                "gf_form_id": 2,
                "gf_form_name": "Form Name Here",
                "email": "testing1@builtbyworkhorse.com",
                "email_hashed": "499039d0728c90994ac99e6ea50355450676bd434a11ec6f86d1f5477429b8c2",
                "email2": "testing2@builtbyworkhorse.com",
                "email2_hashed": "ad0f329c326e80765127fd3019336aac74092fc32fe41e435d38f96cfbacc277",
                "gf_total": 10                
            });
        }
</script>

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 Add-on
  • PHP 7.4+
  • Common caching and optimization plugins
  • Works with AJAX submission (recommended)
  • All Confirmation Types: Text, Page, and Redirect

License

This plugin is released under the MIT License.

See the LICENSE file for the full license text, including the warranty disclaimer and limitation of liability.

PII Disclaimer

Do not send PII to third-party services unless you know what you're doing and have consent. Email address should be hashed first in GTM via a User-Provided Data variable or other method. Review Google Analytics policies, for example.

Releases

5 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
2.1 latest
Oct 7, 2026 16d ago
tag only
—
Apr 18, 2025 1 year ago
gravity-forms-data-layer-events.zip
20
1.7
Mar 25, 2025 1 year ago
gravity-forms-data-layer-events.zip
3
1.4
Feb 6, 2025 1 year ago
gravity-forms-data-layer-events.zip
6
1.3
Nov 11, 2024 1 year ago
tag only
—

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

Gravity Forms Data Layer Events 2.0 · audited by WP Registry

No security issues found.

Audited release
2.0
Findings
none
Worst severity
—
Content hash
82f0aefa6ee459739d2edbec…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.