Merge pull request #3533 from kloon/master

Google Analytics, Add to cart event uniformity for shop and single.
This commit is contained in:
Mike Jolley 2013-07-27 11:36:31 -07:00
commit 97f5ee7433
1 changed files with 1 additions and 1 deletions

View File

@ -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)' );