hi can i put variables inside custom tracking code java script

i have this js code i put in custom code tracking for thank you page i want to place total cost and invoice id or order id
<script id="pap_x2s6df8d" src="https://www.linkaraby.com/scripts/2xjh8l8dq0" type="text/javascript"></script>

<script type="text/javascript">

PostAffTracker.setAccountId('65465');

var sale = PostAffTracker.createSale();

sale.setTotalCost('Total Cost');

sale.setOrderID('Order ID');



PostAffTracker.register();



</script>
 
A

Avneesh

Guest
Hey Khaled, this couldn't be done before. But our team made some changes and now you can put Invoice ID and Total amount for tracking purposes on the thank you page.

1648040939852.png
 
Top