1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 facebook conversion-tracking pixel

Discussion in 'XenForo Questions and Support' started by 5fyf, May 12, 2014.

  1. 5fyf

    5fyf Member

    Now I want to advertise on Facebook and I have to verify the conversion-tracking pixel by adding the provided code to track the action which I chose to be registration.

    It says:

    Copy and paste the following code between <head> and </head> on the page of your website you want to track actions. For example, to track registrations, place the code on your 'registration completed' web page.

    but I'm not able to do this I have added the code to
    and added a condition
    <xen:if is="{$contentTemplate} == 'register_process'">
    the code here
    but the code can't be verified..

    is there anything else I should do?
    or is there anything that I'm doing wrong here?
  2. Mike

    Mike XenForo Developer Staff Member

    If you register and view the page source, can you see the code there? Also, look at the <div id="content"> entry as that will show you the value of the $contentTemplate variable, but it should be what you expect.
  3. 5fyf

    5fyf Member

    Now it is fixed thanks to you @Mike
    the problem was that I didn't place it within the hook tags :oops:

Share This Page