--- googleanalytics.module
+++ googleanalytics.module
@@ -86,9 +86,12 @@
 
     // Add User profile segmentation values.
     $profile_fields = variable_get('googleanalytics_segmentation', array());
-    if (module_exists('profile') && !empty($profile_fields)) {
-      // Extend the $user object with profile data.
-      profile_load_profile($user);
+    if (!empty($profile_fields)) {
+
+      if (module_exists('profile')) {
+        // Extend the $user object with profile data.
+        profile_load_profile($user);
+      }
 
       $fields = array();
       foreach ($profile_fields as $field => $title) {
