From 9954c87fa6dadda467e052c4d899114ff72c9a5d Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 26 Jul 2013 09:10:12 +0200 Subject: [PATCH] Google Analytics, Add to cart event uniformity for shop and single. --- .../integrations/google-analytics/class-wc-google-analytics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/integrations/google-analytics/class-wc-google-analytics.php b/includes/integrations/google-analytics/class-wc-google-analytics.php index 9ff9e24081d..3da645b78f6 100644 --- a/includes/integrations/google-analytics/class-wc-google-analytics.php +++ b/includes/integrations/google-analytics/class-wc-google-analytics.php @@ -291,7 +291,7 @@ class WC_Google_Analytics extends WC_Integration { $parameters = array(); // Add single quotes to allow jQuery to be substituted into _trackEvent parameters $parameters['category'] = "'" . __( 'Products', 'woocommerce' ) . "'"; - $parameters['action'] = "'" . __( 'Add to Cart', 'woocommerce' ) . "'"; + $parameters['action'] = "'" . __( 'Add to cart', 'woocommerce' ) . "'"; $parameters['label'] = "($(this).data('product_sku')) ? ('SKU: ' + $(this).data('product_sku')) : ('#' + $(this).data('product_id'))"; // Product SKU or ID $this->event_tracking_code( $parameters, '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)' );