Jump to content

Facebook tracking pixel - which .tpl to include the code


Recommended Posts

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

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...