Google Analytics, Add to cart event uniformity for shop and single.

This commit is contained in:
Gerhard 2013-07-26 09:10:12 +02:00
parent 17da2c0c44
commit 9954c87fa6
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)' );