I would like to add my Google Analytics tracking event code inline to my input html tag :
<input class="addtobag">
to have something
<input class="addtobag" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">
I'm asking this as I don't have access to the file that contains the tag so I'm unable to make the change manually so I'm looking for a javascript code that I will put in the head so when that page load, the tracking event code would be injected automatically.
I want the call to be by my input class and not by id.