diff --git a/sites/all/modules/contrib/commerce_google_analytics/commerce_google_analytics.module b/sites/all/modules/contrib/commerce_google_analytics/commerce_google_analytics.module
index f98cbd1..1174d9d 100644
--- a/sites/all/modules/contrib/commerce_google_analytics/commerce_google_analytics.module
+++ b/sites/all/modules/contrib/commerce_google_analytics/commerce_google_analytics.module
@@ -68,7 +68,10 @@ function commerce_google_analytics_ecommerce_js($order) {
     foreach (commerce_tax_rates() as $name => $tax_rate) {
       if ($tax_rate['price_component']) {
         $tax_component = commerce_price_component_load($order->commerce_order_total->value(), $tax_rate['price_component']);
-        $tax_sum += commerce_currency_amount_to_decimal($tax_component[0]['price']['amount'], $tax_component[0]['price']['currency_code']);  
+        // Some taxes may not have been applied.
+        if (isset($tax_component[0]['price']['amount'])) {
+          $tax_sum += commerce_currency_amount_to_decimal($tax_component[0]['price']['amount'], $tax_component[0]['price']['currency_code']);
+        }
       }
     }
   }

