- Joined
- Mar 1, 2009
- Posts
- 2,061
- Reaction score
- 56
I'm trying to use the Google Analytics Event Tracking feature to track the total number of forms submitted on a page, but can't seem to get every submission to track (previously only needed to use this feature for text/image links and it's always worked perfectly).
Tried placing the the following within the <form> tag:
Also tried the alternative option of placing the following within the <input> tag for the button:
Does anyone know where I could be going wrong here? Having searched for answers, others have had similar difficulties but haven't found a solution either.
Thanks!
Tried placing the the following within the <form> tag:
Code:
onsubmit="javascript:_gaq.push(['_trackEvent', 'XXX', 'YYY']);"
Also tried the alternative option of placing the following within the <input> tag for the button:
Code:
onclick="javascript:_gaq.push(['_trackEvent', 'XXX', 'YYY']);"
Does anyone know where I could be going wrong here? Having searched for answers, others have had similar difficulties but haven't found a solution either.
Thanks!