adding java script to every page

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Sat Jan 22, 2011 7:48 pm
i am using post affiliate pro4 for tracking sales. How do I add java script to the template so that the code they gave me will show up on everypage to track the clicks of my affiliates. here is the code i must add:
<script type="text/javascript"><!--
document.write(unescape("%3Cscript id='pap_t2s6r38z' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") +
"www.mysite.com/scripts/trackjs.js' type='text/javascript'%3E%3C/script%3E"));//-->
</script>
<script type="text/javascript"><!--
PostAffTracker.setAccountId('default1');
try {
PostAffTracker.track();
} catch (err) { }
//-->
</script>
User avatar
Senior Boarder

GK User
Sat Jan 22, 2011 8:06 pm
I got it. open the default.php file in the layout folder and insert the code just before the </body> close body tag. - case closed:woohoo:
User avatar
Senior Boarder


cron