Like Asheesh suggested here, you don't have to "let Adobe do all the heavy lifting", instead you can track all your Adobe Experience Manager forms at once using Insiteful.co's form abandonment plugin, no coding required.Otherwise, the accepted answer above is an excellent solution for any developers...