Hi all,
We have a client unable to switch a form from POST to GET, at the moment we're tracking form submissions via an event tied to the 'Submit' button.
However, this tracks as a 'completed' form, someone who clicks submit but who might get the form returned with errors.
Normally I'd either AJAXify the form and prevent submission of the form until JS validation is complete, or alternatively use an unique 'Form Complete' URL and track as a goal (and an event with on DOM load JS triggering the event tracking), but that's not an option in this case.
How can I tie an event to the 'form success' content in this scenario? I know I can tie an event to an image load, but I'd need to dynamically generate the image name to prevent caching affecting the analytics.
Can I tie an event to text that's in POST robustly?