The code I am entering creates a link that tracks in google analytics as a google event.
<a href="eblink/mydomain/file.pdf?forcedownload=1" onClick="_gaq.push(['_trackEvent', 'Downloads','Label 1 ', 'Label 2']);">Label 2 - </a><br>
the problem is that when I go to edit this again, extra characters and all things nasty gets added into the code by the html editor. Is there anyway of getting moodle to stop doing this. Its driving me mad!