Adobe Contribute and Google Analytics Code Don’t play Nice

The standard Google Analytics code contains auto-detection for HTTP/HTTPS. Unfortunately Adobe contribute enforces a level of XHTML compliance that exceeds the level built into the Analytics code causing corruption of the HTML, leaving “)); at the bottom of a page after it has been edited.

The solution to this is to remove the auto-detection and document.write. Read the Analytics Help Forum Archive for more details.