We have a similar requirement, but one that the functions.php solution does not cater for.
We have created multiple forms, and continue to create and archive forms on a continual basis (we use it for quick competition entry mechanisms and other on-the-fly usage).
Our requirement is to have tracking on each form and not just a single one - the solution above only allows you to track conversions for a single form, and if you want to track other forms you'd need to change the form ID's.
A simple solution for me would be to add tracking to the submit button that is something like this:
_gaq.push(['_trackEvent', 'Forms', 'Submission', '<form name variable']);
This then gets added to EVERY single submit button on every single form. The variable would allow you to track the different forms.
I would imagine that a simple checkbox in the admin panel that says "track submissions" would let you pick if you want to track submissions on that form or not.
Easier speculated than done, but this would be a fantastic feature or add-on.
Posted 12 years ago on Sunday August 19, 2012 |
Permalink