• (In the payed “Pro” version) the google tracking is not working correctly!

    Only the single line item price is used on the analytics cart code.

    example if you put 2 (or more) €5,- items in your cart the total value is still 5 instead of 10.

    example:

    
    {
    	0: "event",
    	1: "begin_checkout",
    	2: {
    		send_to: "AW-1233456",
    		event_category: "ecommerce",
    		value: 12,                      /// <----- this should be 17
    		items: [
    			{
    				id: "1",
    				name: "Product 1",
    				category: "custom",
    				quantity: "2",
    				price: "5",
    				google_business_vertical: "custom"
    			},
    			{
    				id: "2",
    				name: "Product 2",
    				category: "custom",
    				quantity: "1",
    				price: "7",
    				google_business_vertical: "custom"
    			}
    		]
    	}
    }
    

    // Please Fix:

    google_ads.php: line 868
    ga.php: line 833

    $total_value should be a calculation of $item[‘price’] * $cart_item[‘quantity’] or $cart_item[‘line_total’]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wrong total price with product quantity > 1’ is closed to new replies.