You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Access Store / Component / Settings / Affiliate Settings. Add whatever you like in the 'Custom Script' field, and set 'Affiliate Order Reporting' to 'Custom Script'. This works for the facebook pixel you're referring to:
<?php $order = $this->globals('ecom.thirdpartyaff_order'); $fbid = 'ENTERFACEBOOKEVIDHERE'; $currency = 'USD'; ?> <script>(function() { var _fbq = window._fbq || (window._fbq = []); if (!_fbq.loaded) { var fbds = document.createElement('script'); fbds.async = true; fbds.src = '//connect.facebook.net/en_US/fbds.js <http://connect.facebook.net/en_US/fbds.js>'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fbds, s); _fbq.loaded = true; } })(); window._fbq = window._fbq || []; window._fbq.push(['track', '<?php print $this->xhtml_encode($fbid); ?>', {'value':'<?php print $this->xhtml_encode($order['ordertotal']); ?>','currency':'<?php print $this->xhtml_encode($currency); ?>'}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=<?php print $this->xhtml_encode($fbid); ?>&cd[value]=<?php print $this->xhtml_encode($order['ordertotal']); ?>&cd[currency]=<?php print $this->xhtml_encode($currency); ?>&noscript=1" /></noscript>
Offline