Index: uc_googleanalytics.module
===================================================================
--- uc_googleanalytics.module	(revision 155)
+++ uc_googleanalytics.module	(working copy)
@@ -79,12 +79,14 @@ function _uc_googleanalytics_ecommerce_f
   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;
+    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');
     }
     // using the model field as SKU
