=== modified file 'uc_googleanalytics/uc_googleanalytics.module'
--- uc_googleanalytics/uc_googleanalytics.module	2009-01-09 16:36:57 +0000
+++ uc_googleanalytics/uc_googleanalytics.module	2009-02-03 19:56:26 +0000
@@ -161,14 +161,18 @@
   }
 
   foreach ($order->products as $product) {
-    // Try to find a category (term) for the product
-    // Since products most often only have one category, the first one returned (based on tid) is chosen
-    $terms = taxonomy_node_get_terms($product->nid);
-    if (count($terms)) {
-      $term = array_shift($terms);
-      $category = $term->name;
+    $category = '';
+
+    // Try to find a category (term) for the product. Since products most often
+    // only have one category, the first one returned (based on tid) is chosen.
+    if (module_exists('taxonomy')) {
+      $terms = taxonomy_node_get_terms($product->nid);
+      if (count($terms)) {
+        $term = array_shift($terms);
+        $category = $term->name;
+      }
     }
-    else {
+    if (empty($category)) {
       $category = t('No category');
     }
 

