View Single Post
  #37  
Old 02-28-2013, 09:45 AM
Anabolic Designs's Avatar
Anabolic Designs Anabolic Designs is offline
Junior Member
 
Join Date: Oct 2012
Posts: 15
Default

Hi, we want to track sales coming from FB store fronts. So we want to integrate the catalogue onto FB and so customers can buy from FB on fb pages.

I didn't remove any code, I simply ensured that the code was cut and pasted EXACTLY as it appears inside the back end log in for PAP.

I have done this with the clicks tracking and sale tracking code.

Could you please take a look now and explain in really simply terms as I am not a coder and this is like talking a foreign language to me. Please be very specific in the code what needs changing. We can talk over private message if that helps?

Here is the code for the clicks and sales tracking now installed in FB custom html, exactly as it appears in the back end of PAP.

<div>
<script type="text/javascript" src="https://app.ecwid.com/script.js?1575325" charset="utf-8"></script>
<script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(3 ,3) list(10) table(20)","categoryView=grid","searchView=list"," style="); </script>
<noscript>Your browser does not support JavaScript. Please proceed to <a href="https://anabolic-designs.ecwid.com">HTML version of Anabolic Designs™ | Perform and Transform</a></noscript>
</div>
<script type="text/javascript"><!--
document.write(unescape("%3Cscript id='pap_x2s6df8d' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") +
"anabolic-designs.postaffiliatepro.com/scripts/trackjs.js' type='text/javascript'%3E%3C/script%3E"));//-->
</script>
<script type="text/javascript"><!--
PostAffTracker.setAccountId('12345');
try {
PostAffTracker.track();
} catch (err) { }
//-->
</script>
<script id="pap_x2s6df8d" src="https://anabolic-designs.postaffiliatepro.com/scripts/salejs.php" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('default1');

var sale = PostAffTracker.createSale();
sale.setTotalCost("%order_total%");
sale.setOrderID("%order_id%");

PostAffTracker.register();
</script>