Skip to content

Commit

Permalink
Ensure Google Analytics is passed the proper revenue amount. Prices f…
Browse files Browse the repository at this point in the history
…or cart items were calculated only once, not per quantity. Fixes #1718.
  • Loading branch information
JustinSainton committed Dec 22, 2014
1 parent 78a01b2 commit 61b977f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpsc-includes/google-analytics.class.php
Expand Up @@ -190,7 +190,7 @@ public function add_pushes( $session_id ) {

foreach ( $cart_items as $item ) {
$total_tax += $item['tax_charged'];
$total_price += $item['price'];
$total_price += absint( $item['quantity'] ) * $item['price'];
}

if ( $this->is_theme_tracking || $this->advanced_code ) {
Expand Down

0 comments on commit 61b977f

Please sign in to comment.