? .svn
? translations/.svn
Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.65
diff -u -p -r1.65 googleanalytics.module
--- googleanalytics.module	20 Oct 2010 23:36:45 -0000	1.65
+++ googleanalytics.module	22 Oct 2010 14:12:11 -0000
@@ -71,12 +71,12 @@ function googleanalytics_page_alter(&$pa
   // 4. Ignore pages visibility filter for 404 or 403 status codes.
   if (!empty($id) && (_googleanalytics_visibility_pages() || in_array($status, $trackable_status_codes)) && _googleanalytics_visibility_user($user)) {
 
-    // We allow different scopes. Default to 'header' but allow user to override if they really need to.
-    $scope = variable_get('googleanalytics_js_scope', 'header');
+    // We allow different scopes. Default to 'page_bottom' but allow user to override if they really need to.
+    $scope = variable_get('googleanalytics_js_scope', 'page_bottom');
 
     // 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 @@ function googleanalytics_page_alter(&$pa
       $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.
@@ -202,7 +202,7 @@ function googleanalytics_page_alter(&$pa
     $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,
     );
