├── README.md └── jquery.form-abandonment.js /README.md: -------------------------------------------------------------------------------- 1 | #jQuery-Form-Abandonment.js 2 | 3 | jQuery-Form-Abandonment is a simple jQuery plugin that makes tracking form engagement and abandonment a breeze. 4 | 5 | This project is in its early stages, but already gets the job done. You can use it to see whether users are filling out your forms, leaving half-way through filling out your forms, and what fields they're filling out when they submit them. 6 | 7 | Current version: 1.0.0. 8 | 9 | ###Requirements: 10 | 11 | * jQuery previously loaded in the page. Confirmed working 1.10 and 2.1.1. 12 | * Google Analytics Universal Web Tracking, aka Universal Analytics. Universal Analytics has been out since March 2013, so if you're using GA you're probably using it. Events are handled differently with the older versions. If adding support for the older versions is something you'd like, open an issue on GitHub to let me know. 13 | 14 | So, you need to have the GA snippet which looks something like: 15 | 16 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 17 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 18 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 19 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 20 | ga('create', 'UA-XXXXX-X', 'auto'); 21 | ga('send', 'pageview'); 22 | 23 | ### Installation 24 | 25 | Download jquery.form-abandonment.js and load it in a script tag AFTER jQuery has been loaded. 26 | 27 | ### Usage 28 | 29 | The plugin must be called on a \