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

XF 1.5 Xenforo & Google Tag Manager similar placement as Analytics

Discussion in 'XenForo Questions and Support' started by Yvon, Feb 9, 2016.

  1. Yvon

    Yvon New Member


    I am trying to find a way to add Google Tag Manager to my Xenforo Install which would place the Tag Manager code on all of the pages within my Xenforo install automatically. Something similar to the placement of where the Google Analytics Web Property ID goes except I canĀ“t currently place Google Tag Manager there.

    Why? Because I am running ads and once I have the the Google Tag Manager installed I can place :
    • Facebook Pixel
    • Google Analytics
    • Remarketing

    How can I do this?
  2. Mike

    Mike XenForo Developer Staff Member

    If you want it on all pages, the PAGE_CONTAINER template is what you want.
    Yvon likes this.
  3. Yvon

    Yvon New Member

    It worked! Thanks... I confirmed with Google Tag Manager Chrome Plugin as well as Facebook Chrome Pixel Plugin: they read the tags firing and tell you if there are any problems with the placement or other details.

    Question, ... why is the Xenforo PAGE_CONTAINER option all red though?

    xenforo page.png
  4. Mike

    Mike XenForo Developer Staff Member

    That indicates you've customized the template.
    Yvon likes this.
  5. Yvon

    Yvon New Member

    Thanks Mike, awesome response time and support. Keep up the good work.
    Mike likes this.

Share This Page