Hi,
We need to send data back to some tracking software supplied by an affiliate to monitor sales. We have been given some sample code but it is in ASP. Can someone help us and let us know which page to integrate the details or if it is possible to integrate this code.
The following is some sample code provided to us.
***************************************************
***************************************************
Example “Step 3 ASP” (Trackback-Sale)
***************************************************
***************************************************
<%
dim TD, ordernumber, ordervalue, organization
dim curr, eventid
'This part should be implemented after you have retrieved all variables and displayed
'the receipt.
ordernumber = "111"
'ordervalue = total including shipping and taxes. Cannot consist of , (comma) or spaces.
'Decimal sign is . (dot).
'Shall be 1 if tracking a lead
ordervalue = "102.50"
'organization = id number, provided by TradeDoubler
organization = 51
//Supplied by TradeDoubler
eventid = 5
'curr = 3-letter code for currency of value1. Only needed if tracking a sale.
curr = "GBP"
'///////////////////////(Optional feature)//////////////////////////////
'Product report
'Example product (you can add multiple products.
'Add | between them (f1...&f2...&f3...|f1...&f2...&f3...) )
'f1 is product number
'f2 is product name
'f3 is product value. Use dot (.) as decimal sign and no thousand separators.
reportInfo = "f1=ProdNR01&f2=ProdName1&f3=100.00|f1=ProdNR02&f2=ProdName2&f3=1000.00"
'Important! reportInfo parameter need to be URLEncoded in UTF-8 format.
reportInfo = Server.URLEncode(reportInfo)
'//////////////////////////////////////////////////////////////////////
%>
<img src="http://tracker.tradedoubler.com/report?organization=<%=organization%>&event=<%=eventid%>&orderNumber=<%=ordernumber%>&orderValue=<%=ordervalue%>¤cy=<%=curr%>&reportInfo=<%=reportInfo%>" HEIGHT="1" WIDTH="1">
We need to send data back to some tracking software supplied by an affiliate to monitor sales. We have been given some sample code but it is in ASP. Can someone help us and let us know which page to integrate the details or if it is possible to integrate this code.
The following is some sample code provided to us.
***************************************************
***************************************************
Example “Step 3 ASP” (Trackback-Sale)
***************************************************
***************************************************
<%
dim TD, ordernumber, ordervalue, organization
dim curr, eventid
'This part should be implemented after you have retrieved all variables and displayed
'the receipt.
ordernumber = "111"
'ordervalue = total including shipping and taxes. Cannot consist of , (comma) or spaces.
'Decimal sign is . (dot).
'Shall be 1 if tracking a lead
ordervalue = "102.50"
'organization = id number, provided by TradeDoubler
organization = 51
//Supplied by TradeDoubler
eventid = 5
'curr = 3-letter code for currency of value1. Only needed if tracking a sale.
curr = "GBP"
'///////////////////////(Optional feature)//////////////////////////////
'Product report
'Example product (you can add multiple products.
'Add | between them (f1...&f2...&f3...|f1...&f2...&f3...) )
'f1 is product number
'f2 is product name
'f3 is product value. Use dot (.) as decimal sign and no thousand separators.
reportInfo = "f1=ProdNR01&f2=ProdName1&f3=100.00|f1=ProdNR02&f2=ProdName2&f3=1000.00"
'Important! reportInfo parameter need to be URLEncoded in UTF-8 format.
reportInfo = Server.URLEncode(reportInfo)
'//////////////////////////////////////////////////////////////////////
%>
<img src="http://tracker.tradedoubler.com/report?organization=<%=organization%>&event=<%=eventid%>&orderNumber=<%=ordernumber%>&orderValue=<%=ordervalue%>¤cy=<%=curr%>&reportInfo=<%=reportInfo%>" HEIGHT="1" WIDTH="1">
Comment