Index: googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.36.2.31
diff -u -r1.36.2.31 googleanalytics.module
--- googleanalytics.module	30 Jan 2011 14:16:39 -0000	1.36.2.31
+++ googleanalytics.module	30 Jan 2011 14:31:47 -0000
@@ -481,7 +481,7 @@
  */
 function googleanalytics_token_values($type, $object = NULL, $options = array()) {
   if ($type == 'user') {
-    if (!empty($object)) {
+    if (!empty($object->roles)) {
       $account = $object;
     }
     else {
