1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

form post data

Discussion in 'Hire a Freelancer' started by 3kaday, Oct 19, 2013.

  1. 3kaday

    3kaday Regular Member

    Joined:
    Apr 28, 2009
    Messages:
    217
    Likes Received:
    52
    Location:
    London, EUSSR
    I'm trying to set up affiliate lead tracking using an unbounce page which appends the form data my thank you page. Postaffiliate pro is the script I'm using for the affiliate program. Tracking is working in that I get an email when a test lead is created, however I don't know how to edit the js in the thank you page so it can collect the name of the client/email/web url so that I can attribute the correct affiliate to the lead. Can anyone help with this? Here is the thank you page code with the dummy data in it:

    <script type="text/javascript">
    document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "mysite.postaffiliatepro.com/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E"));
    </script> <script type="text/javascript">
    PostAffTracker.setAccountId('default1');
    var sale = PostAffTracker.createSale();
    sale.setTotalCost('120.50');
    sale.setOrderID('ORD_12345XYZ');
    sale.setProductID('test product');
    PostAffTracker.register();
    </script>

    Thanks.