--- uc_googleanalytics.module.old	2011-03-29 04:18:40.319481991 +0200
+++ uc_googleanalytics.module	2011-03-29 04:27:00.539481997 +0200
@@ -159,9 +159,10 @@ function uc_googleanalytics_ecommerce_js
     // 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(node_load($product->nid));
-      if (count($terms)) {
-        $term = array_shift($terms);
+      $node = node_load($product->nid);
+      
+      if (isset($node->taxonomy_catalog[$node->language][0]['tid'])) {
+        $term = taxonomy_term_load($node->taxonomy_catalog[$node->language][0]['tid']);
         $product->category = $term->name;
       }
     }
