E-Junkie Forum http://www.e-junkie.com/bb/ E-Junkie Forum RSS en-us Copyright 2012, 19.5 Degrees. All rights reserved. webmaster@e-junkie.com webmaster@e-junkie.com Mon, 11 Feb 2008 09:13:03 GMT Fri, 10 Feb 2012 18:52:53 GMT 681 E-JUNKIE 5 E-Junkie Forum http://www.e-junkie.com/bb/ http://www.e-junkie.com/ej/logo.gif 290 104 Post #2 http://www.e-junkie.com/bb/topic/1801/pg/0#post4374 http://www.e-junkie.com/bb/topic/1801/pg/0#post4374 Mon, 11 Feb 2008 09:13:03 GMT
Well, E-junkie will display the JavaScript tracking code that you have entered on the thank you page.

To avoid that, you can use a JavaScript condition around the JavaScript code (apart from includes) to not run the code in case it's a free transaction. Our free transactions start with "j".

So, if the code that they have give you to place in the thank you page is:

<script type="text/javascript" src="http://somedomain/somefile.js"></script>
<script language="javascript" type="text/javascript">
- lines of code -
</script>

then, your code will become

<script type="text/javascript" src="http://somedomain/somefile.js"></script>
<script language="javascript" type="text/javascript">
var txn_id;
txn_id='[%txn_id%]';
if (txn_id.substring(0,1)!="j") {
- lines of code -
}
</script>

Please note, [%txn_id%] is an E-junkie template variable which will be replaced by actual transaction ID when E-junkie renders the thank you page.]]>
E-junkie Discussions; E-JunkieExpert
Post #1 http://www.e-junkie.com/bb/topic/1801/pg/0#post4374 http://www.e-junkie.com/bb/topic/1801/pg/0#post4374 Mon, 11 Feb 2008 09:07:01 GMT
Let's say the customer had clicked on a banner which had a ninety day cookie. Then I happen to send them a free link to a product. They are still going to the same download page. Wouldn't the code on the download page then link with the ninety day cookie and make it look like a sale has occurred? So I'm worried about paying commission on products I give for free.]]>
E-junkie Discussions; GuestUser