Andreas2003 Posted January 15, 2009 Share Posted January 15, 2009 Hi there, I'm struggling around with the integration of the Google Conversion Tracking Code in my checkout_success.php. I only want to submit the value of the shopping cart. Not the complete content of the cart. For the submission of the variable "conversion_value", I found several possibilities for the code and want to know, which one works correctly: 1. possibility if (1.0) { var google_conversion_value = <?php echo round($order_total['value'],2);?>; } 2. possibility if (total_cost) { google_conversion_value = total_cost; } 3.possibility if (total_cost) { var google_conversion_value = total_cost; } 4.possibility if (<?php echo $order->info['total']; ?>) { var google_conversion_value = <?php echo $order->info['total']; ?>; } 5.possibility if (<? echo $total ?>) { var google_conversion_value = <? echo $total ?>; } 6.possibility if (<?php echo $customer_info[value] ?>) { var google_conversion_value = <?php echo $customer_info[value] ?>; } The second question is, if the values have to be submitted in in "quotation marks" or not ?? var google_conversion_language = "en_GB" or var google_conversion_language = en_GB Thanks in advance, kind regards Andreas Link to comment Share on other sites More sharing options...
digitalTag Posted February 13, 2012 Share Posted February 13, 2012 Hi there, i am trying to do a similar thing and add the order total to the google_conversion_value Did you manage to find a solution for this? Kind regards Link to comment Share on other sites More sharing options...
digitalTag Posted February 13, 2012 Share Posted February 13, 2012 Done it, if anyone else stumbles across this then go here and read post #2. Worked for me. http://www.oscommerce.com/forums/topic/143887-order-total-in-checkout-successphp/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.