socialize Posted December 2, 2014 Share Posted December 2, 2014 Hello, guys! First of all, I read some topics here about adding the Facebook tracking pixel code, but I still have some questions without answers. I have 2 tracking pixels: one for tracking people who access the store <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', '6021633723609', {'value':'0.00','currency':'BRL'}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6021633723609&cd[value]=0.00&cd[currency]=BRL&noscript=1" /></noscript> and the other one for tracking people who abandon the cart <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', '6021633677009', {'value':'0.00','currency':'BRL'}]); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6021633677009&cd[value]=0.00&cd[currency]=BRL&noscript=1" /></noscript> Which .tpl file do I use to add the code? Thank you! Link to comment Share on other sites More sharing options...
renjii Posted December 11, 2014 Share Posted December 11, 2014 i search from previous thread it seems to be orderconfirmation.tpl but when i added the code to there facebook is unable to verify the code.. any advice? Link to comment Share on other sites More sharing options...
xiaochunn Posted February 5, 2015 Share Posted February 5, 2015 any updates on how to implant Facebook tracking pixel into prestashop? I'm facing the same problem now. could someone advise? Link to comment Share on other sites More sharing options...
Recommended Posts