tracking code problems

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

tracking code problems

Postby maiklseglitis@.....com » Fri Aug 24, 2012 10:50 am

Hello, I`m trying to integrate the following tracking code:

Code: Select all
<script type="text/javascript">
document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "my.goaff.com/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E"));
</script>
<script type="text/javascript">
PostAffTracker.setAccountId('3be8fb64');
var sale = PostAffTracker.createSale();

sale.setCurrency('LVL');
sale.setTotalCost('120.50');
sale.setOrderID('30D1234');

PostAffTracker.register();
</script>


There is Pre-selected order total field where I can enter the TotalCost from the script, but the affiliate system also require order_id. Is there a way I can set the pre-selected orderID and the checkout would search and replace it too?

I pasted the script into the textarea and saved, but now it appears all messed up.
where should be
Code: Select all
<script type="text/javascript">

now is
Code: Select all
<script type=\\\"text/javascript\\\">
and so on.
I try to correct it, but if I do and press save nothing changes.
Could you please help me with this?
maiklseglitis@.....com
 
Posts: 9
Joined: Mon Jun 11, 2012 6:55 pm

Return to One Page Checkout for Virtuemart 2