Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jul 26, 2015

Automated form abandonment tracking for GTM

Based on work by Simo Ahava: http://www.simoahava.com/analytics/track-form-abandonment-with-google-tag-manager/

This script will automatically track all forms on your pages. When a user changes input values on a form, it will be tracked unless the form is the one being submitted. Form and input 'name' attributes are used by default.

See index.html for an example.

Prerequisites

  1. Add form submit trigger in GTM (either on all forms or the subset you want to track)
  2. Add trigger for custom event 'formAbandonment'
  3. Add data layer variables 'eventAction' and 'eventCategory'
  4. Add tag to trigger a GA event on formAbandonment trigger with event category and action taken from data layer variables
  5. Include auto-ga-form-abandonment.js script
  6. Observe form abandonment events in GA!

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published