I have a theme (my first, using the blueprint framework) that is working on my local server, and I'm trying to adapt it for a client's site. The problem is that when I enable it (on a development site that is a mirror of their live site), what appears to be google analytics code is inserted into the meta description, but in a broken way, so that literally half the page is viewed as one big link, so that not only are my stylesheet links ignored, but half the content is, too. Here's what it looks like:

<meta name="description" content="var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "go..." />
<meta name="keywords" content="" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen, projection, tty, tv, print">

Notice the truncation of "go..."

GA content also appears halfway through the content as well as in the footer. In the live version of the site (or with my theme disabled), the code appears in the content and the footer but not in the head as shown above. I've tried disabling not only google analytics and fckeditor but ALL the modules, and it makes no difference. The site is running google analytics 6.x-2.0 on drupal 6.13. I don't have first-user access to update to the 2.2. version of GA but am asking the client to update the module to see if that makes a difference. There doesn't appear to be anything odd in the way GA is configured; it's set to be in the footer, no additional code, etc.

I've verified that $scripts and $closure are in the .tpl.php, and also tried moving $scripts to just before the close of the head tag, but no difference. Also tried removing print $meta from the head, again, no difference.

I'm a newbie themer, but as I said, the theme is working OK on my local server...it's when I marry it to my client's content and modules that it breaks...but it remains broken even if I disable every module I don't have running on the local version.