Need help setting up code to track orders
Need help setting up a pixel of code UTM tags, they are not working correctly. It is necessary to configure the appropriate variables to the parameters transactionID and transactionAmount.
the code itself
var ttConversionOptions = ttConversionOptions || []
ttConversionOptions.push({
type: sales,
campaignID: 32100,
productID: 49245,
transactionID: ORDER_ID,
transactionAmount: ORDER_AMOUNT,
quantity: 1,
descrMerchant: ,
descrAffiliate: ,
vc: ,
currency:
})
// No editing needed below this line.
(function(ttConversionOptions) {
var campaignID = campaignID in ttConversionOptions ? ttConversionOptions.campaignID : (length in ttConversionOptions && ttConversionOptions.length ? ttConversionOptions[0].campaignID : null)
var tt = document.createElement(script) tt.type = text/javascript tt.async = true, tt.src = //tm.tradetracker.net/conversion?s= encodeURIComponent(campaignID) &t=m
var s = document.getElementsByTagName(script) s = s[s.length – 1] s.parentNode.insertBefore(tt, s)
})(ttConversionOptions)
ORDER ID - order number/purchase that you transmit to us.
ORDER_AMOUNT – order amount
campaignID and productID – value constant!
21.03.2020 09:26