Adding another "onsubmit" attribute
-
I’d like to add Google event tracking to my form. Doing so requires me to add a particular value to the ‘onsubmit’ attribute of the <form> element. Am I correct that I need to edit the cp-public-int.inc.php file to do this? Or do I carry this out via a different method?
The above file does indeed contain a line with a <form> element. But that element already has an ‘onsubmit’ attribute defined. When I delete that attribute and enter the required Google code, nothing happens when I click the ‘Submit’ button (i.e. form does not submit, ‘Thank You’ page does not load, etc).
Any ideas how I can accomplish this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding another "onsubmit" attribute’ is closed to new replies.