Now all Urchin script code appears in the HTML footer, rather than split between...
authorMike Carter
Tue, 15 Aug 2006 22:46:28 +0000 (22:46 +0000)
committerMike Carter
Tue, 15 Aug 2006 22:46:28 +0000 (22:46 +0000)
googleanalytics.module

index 7d10ae3..daef388 100644 (file)
@@ -42,8 +42,7 @@ function googleanalytics_footer($main = 0) {
       $prefix = 's://ssl';
     }
 
-    drupal_set_html_head('<script type="text/javascript" src="http' . $prefix . '.google-analytics.com/urchin.js"></script>');
-    return '<script type="text/javascript">_uacct = "'.$id.'";urchinTracker();</script>';
+    return '<script type="text/javascript" src="http' . $prefix . '.google-analytics.com/urchin.js"></script><script type="text/javascript">_uacct = "'.$id.'";urchinTracker();</script>';
   }
 }