diff --git a/app/code/core/Mage/GoogleAnalytics/Block/Ga.php b/app/code/core/Mage/GoogleAnalytics/Block/Ga.php index 997cb7569c4..da8270dcea5 100644 --- a/app/code/core/Mage/GoogleAnalytics/Block/Ga.php +++ b/app/code/core/Mage/GoogleAnalytics/Block/Ga.php @@ -397,7 +397,7 @@ protected function _getOrdersTrackingCodeAnalytics4() 'item_id' => $_product->getSku(), 'item_name' => $_product->getName(), 'price' => number_format($_product->getFinalPrice(), 2), - 'quantity' => intval($productInCart->getQty()), + 'quantity' => (int) $productInCart->getQty(), ]; if ($_product->getAttributeText('manufacturer')) { $_item['item_brand'] = $_product->getAttributeText('manufacturer');