Affiliate marketers, search engine marketers (SEMs) and web analytic providers enable merchants to track page views and conversions on their websites. Pixel tracking refers to putting 1x1 sized IMG calls on other servers that record stats (hits or sales) to your web application.
T3Leads' forms support a callback function that is called after the server has responded a sale price to the form.
Possible variables:
- Status (Sold, Rejected)
- Price (The value for which the lead was sold)
If the lead has been sold, the client will be redirected to the Buyer's site in order to complete the sale. Do not add any code to the Callback feature that will redirect the lead to another page other than the Buyer's. This will result in an unfinished sale and it will not be counted.
Sample 1:
How to call your custom code after the form received a report on sales from the server.
var inputOptions = { ... 'userCallBack': function(status, price){ alert('User Callback Function. Post Result: '+status+', Price: '+price+' USD'); }, };
Sample 2:
How to set the Pixel Image and pass a sale price if the lead has been sold.
var inputOptions = { ... 'userCallBack': function(status, price){ if(price > 0){ pixeltracking= new Image(1,1); pixeltracking.src="http://conversion.ppc.com/service/?price="+price; } }, };
Sample 3:
How to create the conversion tracking in Google PPC if my currency is not in USD.
var inputOptions = { ... 'userCallBack': function(status, price){ if(price > 0){ var KursEuro = 0.82345 ; var Price_Euro = Math.round(price * KursEuro * 100) / 100; pixeltracking= new Image(1,1); pixeltracking.src="http://www.googleadservices.com/pagead/conversion/0000000000/?value="+Price_Euro+"&label=00000000000000000&guid=ON&script=0"; } }, };