Force GF forms to use AJAX and pass data to Google Tag Manager for tracking.
- Manipulate AJAX value for $form_args with 'gform_form_args' filter.
- Run dataLayer push script on AJAX forms $confirmation 'gform_confirmation'. Detects text and redirect based confirmations.
Download the plugin and activate it.
- Go to theme folder with SSH:
cd wp-content/plugins/avidly-gf-tracking
- Create or update POT file:
wp i18n make-pot ./ languages/avidly-gf-tracking.pot
- Open your PO file(s) with PoEdit & select from toolbar: Translation -> Update from POT file...
- Make your translations changes & save files