Friday, 16 July 2010

Tracking Order Numbers Into WhosOn


If you want to track order numbers, or some other generic field, which you may then want to query from the database, you can use code similar to the below in your page.

This executes the standard form code, which is set up to store and show inside WhosOn already.

<script type='text/javascript' src='http://gateway.yourserver.com/include.js?domain=www.yourdomain.com'></script>
<script type='text/javascript' >
sWOImageLoaded = function () {
var imOrder = document.createElement('IMG');
imOrder.src = sWOProtocol+"//"+sWOGateway+"/form.gif?d="+sWODomain+"&u="+sWOSession+"&frm=Order&frn=OrderID&frd=WOTEST";
document.body.appendChild(imOrder);
}
if(typeof sWOTrackPage=='function')sWOTrackPage();
</script>

No comments:

Post a Comment