adding Facebook tracking code

Discussion in 'Templates customization' started by pascalevdb, Oct 9, 2013.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    I want to track conversations from my Facebook ads.

    1. it tells me to put the code in the conversion page between the <head> and </head> code.
    2. Am I supposed to put code in thanks.html or thanks.php
    3. And neither page has <head> code. Where do I put the code? I'm not a developer, so please provide details.

    Thank you in advance.

    BTW, this is the code I need to insert:

    <script type="text/javascript">
    var fb_param = {};
    fb_param.pixel_id = '6011514618198';
    fb_param.value = '0.00';
    fb_param.currency = 'USD';
    (function(){
    var fpw = document.createElement('script');
    fpw.async = true;
    fpw.src = '//connect.facebook.net/en_US/fp.js';
    var ref = document.getElementsByTagName('script')[0];
    ref.parentNode.insertBefore(fpw, ref);
    })();
    </script>
    <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=6011514618198&amp;value=0&amp;currency=USD" /></noscript>
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    I'll usually put code like this in a block, that way it doesn't get overwritten with an upgrade.

    David

Share This Page