-- url of the page with the problem -- :
epensare.com/
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.4.28
-- Browser(s) name and version -- : Chrome 35.0
-- Error-message(debug-mod must be tuned on) -- :N/A
Hello
I would like to know how to add this facebook tracking code at the end of check out:
<!-- Facebook Conversion Code for Compras Pensare -->
<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';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '123456789', {'value':'0.00','currency':'USD'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=123456789&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript>
In the line:
window._fbq.push(); the "value" must be the price of the item that was purchased by the user. Also, this code must be placed between the head tags of the site.
I'm using bank transfer and Paypal as payment methods.
Thanks,
RJ