I am trying to pass e-commerce order data from our custom ordering system to Google Analytics. Currently no data is being passed to the GA script. The system uses hidden forms to pass the data from page to page.

Here is the developer solution

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<HEAD><META HTTP-EQUIV="MSThemeCompatible" Content="yes"><META Name="GENERATOR" content="IntraWeb v9.0.42 Serial 2147416877"><META HTTP-EQUIV="imagetoolbar" CONTENT="no"><META HTTP-EQUIV="Expires" CONTENT="-1"><script type="text/javascript" src="/store/Store.dll/js/IWCommon.js_9.0.42"></script><script type="text/javascript" src="/store/Store.dll/js/IWCL.js_9.0.42"></script><script type="text/javascript" src="/luxbus/LuxBus.dll/js/IWAjax.js_9.0.42"></script><script type="text/javascript" src="/store/Store.dll/js/IWGecko.js_9.0.42"></script><style type="text/css"></style><script type="text/javascript" src="/store/Store.dll/js/IWPreScript.js_9.0.42"></script><script type="text/javascript">var LBLCONFIRMNUMIWCL = null;var BTNREVIEWIWCL = null;function 
function FormDefaultSubmit(){return false;}var GIsPartialUpdate=false;var GOnResizetimeout=1000;var GURLBase="/store/Store.dll";var GAppID="1xgxmkk05xaabp1dmxltk1bfk9if";var GTrackID=25;function IWTop(){return window;}var GActiveControl = null;var GActiveControl=null;history.go(1);function SendToGoogle()
   var conNumVal = document.getElementById('HIDDEN_reservationNo').value;
    var tourCodeVal = document.getElementById('HIDDEN_tourNo').value;
    var tourNoVal = document.getElementById('HIDDEN_fromTo').value;
    var tripTypeVal = document.getElementById('HIDDEN_tripType').value;
    var cityVal = document.getElementById('HIDDEN_city').value;
    var stateVal = document.getElementById('HIDDEN_state').value;
    var countryVal = document.getElementById('HIDDEN_country').value;
    var priceVal = document.getElementById('HIDDEN_price').value;
    var numTicketsVal = document.getElementById('HIDDEN_numTickets').value;
Here is the Google code with the variables near the bottom of the page

<!-- Google Analytics e-commerce --> 
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-516XXX-1");
   conNumVal,  // Order ID
   "",  // Affiliation - not used
   priceVal,  // Total
   "",  // Tax -not used
   "",  // Shipping - not used
   cityVal,  // City
   stateVal,  // State
   countryVal  // Country

   conNumVal,  // Order ID
   tourCodeVal,  // SKU - Tour Code
   tourNoVal,  // Product Name 
   tripTypeVal, // Category
   priceVal,  // Price
   numTicketsVal  // Quantity

The hidden form appears right before the body close, but the developer said he is getting the variables on document create and this should work.

Here is how order data gets spit out on our Yahoo stores and the GA code get e-commerce data just fine. The developer is telling us that he can't do that. Any help would be great.

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
  <head profile="http://smallbusiness.yahoo.com/merchant">
<script type="text/javascript">
<!-- //variables containing order information
   var orderSubTotal = '159.00';
   var orderTotal = '182.91';
   var numOfItems = '1';  
   var orderTax = '13.91';
   var orderShipping = '10.00';