Skip to content

Force GF forms to use AJAX and pass data to Google Tag Manager for tracking.

License

Notifications You must be signed in to change notification settings

AvidlyWordPress/avidly-gf-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravity-Forms-tracking

Force GF forms to use AJAX and pass data to Google Tag Manager for tracking.

How it works

  1. Manipulate AJAX value for $form_args with 'gform_form_args' filter.
  2. Run dataLayer push script on AJAX forms $confirmation 'gform_confirmation'. Detects text and redirect based confirmations.

Usage

Download the plugin and activate it.

Translating with WP Cli

  1. Go to theme folder with SSH: cd wp-content/plugins/avidly-gf-tracking
  2. Create or update POT file: wp i18n make-pot ./ languages/avidly-gf-tracking.pot
  3. Open your PO file(s) with PoEdit & select from toolbar: Translation -> Update from POT file...
  4. Make your translations changes & save files

About

Force GF forms to use AJAX and pass data to Google Tag Manager for tracking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages