? .svn
? translations/.svn
Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.55
diff -u -r1.55 googleanalytics.module
--- googleanalytics.module	6 Oct 2010 23:14:02 -0000	1.55
+++ googleanalytics.module	19 Oct 2010 20:02:34 -0000
@@ -72,11 +72,11 @@
   if (!empty($id) && (_googleanalytics_visibility_pages() || in_array($status, $trackable_status_codes)) && _googleanalytics_visibility_user($user)) {
 
     // We allow different scopes. Default to 'footer' but allow user to override if they really need to.
-    $scope = variable_get('googleanalytics_js_scope', 'header');
+    $scope = variable_get('googleanalytics_js_scope', 'footer');
 
     // Custom tracking. Prepend before all other JavaScript.
     if (variable_get('googleanalytics_trackadsense', FALSE)) {
-      $page['footer']['googleanalytics']['#attached']['js']['window.google_analytics_uacct = ' . drupal_json_encode($id) . ';'] = array(
+      $page['page_bottom']['googleanalytics']['#attached']['js']['window.google_analytics_uacct = ' . drupal_json_encode($id) . ';'] = array(
         'type' => 'inline',
         'scope' => 'header',
         'weight' => JS_LIBRARY - 21,
@@ -96,11 +96,11 @@
       $link_settings['trackDownloadExtensions'] = $trackfiles_extensions;
     }
     if (!empty($link_settings)) {
-      $page['footer']['googleanalytics']['#attached']['js'][] = array(
+      $page['page_bottom']['googleanalytics']['#attached']['js'][] = array(
         'type' => 'setting',
         'data' => array('googleanalytics' => $link_settings),
       );
-      $page['footer']['googleanalytics']['#attached']['js'][drupal_get_path('module', 'googleanalytics') .'/googleanalytics.js'] = array('scope' => $scope);
+      $page['page_bottom']['googleanalytics']['#attached']['js'][drupal_get_path('module', 'googleanalytics') .'/googleanalytics.js'] = array('scope' => $scope);
     }
 
     // Add User profile segmentation values.
@@ -196,7 +196,7 @@
     $script .= '})();';
 
     // Add tracker code to scope.
-    $page['footer']['googleanalytics']['#attached']['js'][$script] = array(
+    $page['page_bottom']['googleanalytics']['#attached']['js'][$script] = array(
       'type' => 'inline',
       'scope' => $scope,
     );
