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

XF 1.5 Facebook Pixel for Registration

Discussion in 'XenForo Questions and Support' started by Okenyon, Dec 16, 2015.

  1. Okenyon

    Okenyon Active Member

    Hey guys, i'm looking at running some ads to my forum where should I place a tracking pixel to fire a pixel when someone registers?
     
  2. Mike

    Mike XenForo Developer Staff Member

    The register_confirm template should work.
     
  3. Okenyon

    Okenyon Active Member

    Thanks Mike, one issue is it asks me to place it between the <head></head> tags, do I have these specific to that template as I can't place on all as it would fire on every page visit.
     
  4. Mike

    Mike XenForo Developer Staff Member

    Do:
    Code:
    <xen:container var="$head.tracker">Your code here</xen:container>
     
    Kintaro likes this.
  5. Okenyon

    Okenyon Active Member

    Thank you, this will place it in the head of JUST this page?
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

  7. Kintaro

    Kintaro Well-Known Member

    the ".tracker" is a custom label or "$head.tracking" is specified for tracking?
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Custom element, but handled in the PAGE_CONTAINER template:
    Code:
        <xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
    
     
    Kintaro likes this.

Share This Page