This method requires jQuery
This is fairly simple, and the relevant comments are in-line. This also assumes _kmq has already been initialized earlier.
This will trigger a unique event for each form field that is filled out. The events will Filled Out Form Step FORM_STEP, where FORM_STEP is replaced by the Name attribute of each
Once people have successfully filled out the form, you can set up a Funnel Report to look at the micro-funnel of their progression from input to input.
As Duncan says, the code sample is a proof of concept, and we strongly suggest before installing it to your live site, that you test that the events you see are the ones you expect. This is important if you have many different forms to track so that you can anticipate creating more specifically-named events for each form:
- Filled Out Form Step FORM_STEP vs.
- Filled Out Registration Form Step FORM_STEP vs.
- Filled Out Checkout Form Step FORM_STEP
Updated about 1 month ago