Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.14.2.84
diff -u -r1.14.2.84 googleanalytics.module
--- googleanalytics.module	26 Nov 2008 19:38:49 -0000	1.14.2.84
+++ googleanalytics.module	15 Dec 2008 18:38:51 -0000
@@ -80,6 +80,9 @@
         drupal_add_js(array('googleanalytics' => $link_settings), 'setting', 'header');
         drupal_add_js(drupal_get_path('module', 'googleanalytics') .'/googleanalytics.js', 'module', $scope);
       }
+      if(variable_get('googleanalytics_link_adsense', FALSE)) {
+        drupal_set_html_head("<script type=\"text/javascript\">window.google_analytics_uacct = \"$id\";</script>");
+      }
     }
   }
 
@@ -466,6 +469,13 @@
     ),
     '#default_value' => variable_get('googleanalytics_js_scope', 'footer'),
   );
+  
+    $form['advanced']['googleanalytics_link_adsense'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Link to AdSense'),
+    '#description' => t('If checked, it will link this account to AdSense.'),
+    '#default_value' => variable_get('googleanalytics_link_adsense', FALSE),
+  );
 
   return system_settings_form($form);
 }

