? googleanalytics.patch
Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.14.2.3
diff -U3 -r1.14.2.3 googleanalytics.module
--- googleanalytics.module	3 May 2007 10:58:17 -0000	1.14.2.3
+++ googleanalytics.module	9 May 2007 04:07:16 -0000
@@ -80,8 +80,10 @@
 		// Add any custom code snippets if specified
 		$codesnippet = variable_get('googleanalytics_codesnippet', '');
 
-    $script = '<script type="text/javascript" src="http' . $prefix . ".google-analytics.com/urchin.js\"></script>\n";
-    $script .= '<script type="text/javascript">' . "<!--\n_uacct = \"".$id."\";{$segmentation}{$codesnippet}urchinTracker();\n// --></script><noscript></noscript>\n";
+    drupal_add_js("http". $prefix .".google-analytics.com/urchin.js");
+    drupal_add_js(array("basepath" => base_path(), "setting");
+    drupal_add_js(array("uacct" => $id, "setting");
+    $script .= '<script type="text/javascript">' . "<!--\n{$segmentation}{$codesnippet}\n// --></script><noscript></noscript>\n";
     return $script;
   }
 }
