A customer pasted her Google Analytics script into the html view (along with some regular html content) and saved it. However, when opening the editor to edit the content, she got a 'permission denied' error in scriptresource.axd. The design view was empty, and she could not switch to html view. The editor content (html and javascript) was properly saved to our backend db. This occurred in IE7 and IE8. In Firefox, there was no problem.
Here is the Google code (slightly edited to remove identifiers). This was obtained directly from Google and pasted in without changes.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("id_cide_here");
pageTracker._trackPageview();
} catch(err) {}</script>
EDIT: using version 2009.1.402.20
Here is the Google code (slightly edited to remove identifiers). This was obtained directly from Google and pasted in without changes.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("id_cide_here");
pageTracker._trackPageview();
} catch(err) {}</script>
EDIT: using version 2009.1.402.20