Felgall,
I’m not allowed in over at the JavaScript forum but from time to time I take a peek. Your answer to [url]http://www.webdeveloper.com/forum/showthread.php?p=979498#post979498
The long and short of it is that there is no way to make the Google analytics JavaScript XHTML compliant and it’s invalid for HTML as well.
In XHTML you don’t [i]have
Now, “document.write” will work in XHTML if the browser is treating it as HTML. But not that script. In HTML the SCRIPT and STYLE elements are defined a special cases of CDATA, so you don’t need the CDATA marks. And so the browser knows when to resume parsing as HTML, and what makes this CDATA special, the end is marked by the “ETAGO (‘</’) delimiters followed immediately by a name character [a-zA-Z]”. ( [url]http://www.w3.org/TR/REC-html32#script
If you want to use that you’ll have to switch to HTML, no great loss, [i]and